Skip to content

Commit 25ba8ba

Browse files
committed
fix(panorama): fix combo viewer
1 parent 2fc1bdf commit 25ba8ba

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

src/content/panorama/styles/_vars.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ $bg-viewer: asset.custom-img-url("viewer/paper-bg.png");
147147
$mask-gradient-left-right: asset.game-img-url("masks/gradient_leftright_png.vtex");
148148
$mask-softedge-box: asset.game-img-url("masks/softedge_box_png.vtex");
149149
$mask-softedge-box-irregular: asset.game-img-url("masks/softedge_box_irregular_png.vtex");
150+
$mask-softedge-vertical: asset.game-img-url("masks/softedge_vertical_png.vtex");
150151
$mask-softedge-vscroll: asset.game-img-url("masks/softedge_vertical_vscroll_psd.vtex");
151152
$mask-softedge-vscroll-wide: asset.game-img-url("masks/softedge_vertical_vscroll_wide_psd.vtex");
152153

src/content/panorama/styles/custom_game/ui/talents_display.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ $class-right-selected: "right-branch-selected";
7474
horizontal-align: right;
7575
}
7676

77-
&.#{$class-left-selected} .pip-left,
78-
&.#{$class-right-selected} .pip-right {
77+
.#{$class-left-selected} .pip-left,
78+
.#{$class-right-selected} .pip-right {
7979
opacity: 1;
8080
}
8181

src/content/panorama/styles/custom_game/viewer.scss

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// * Combo Viewer (shamelessly rippped from Invoker kid persona page)
33
// ******************************************************************************
44

5+
@use "sass:color";
6+
57
@use "../button" as btn;
68
@use "../dota2";
79
@use "../layout";
@@ -12,7 +14,8 @@
1214
@include dota2.style;
1315
@include layout.flow;
1416

15-
$cl-text: #3c1b18;
17+
$cl-accent: #af5417;
18+
$cl-text: color.change($cl-accent, $lightness: 17%);
1619

1720
.--viewer {
1821
width: 100%;
@@ -41,7 +44,6 @@ $cl-text: #3c1b18;
4144
margin-top: -4px;
4245
margin-right: -4px;
4346
horizontal-align: right;
44-
wash-color: #fff;
4547
}
4648

4749
#btn-reload {
@@ -52,7 +54,6 @@ $cl-text: #3c1b18;
5254
height: 36px;
5355
margin-top: -4px;
5456
margin-left: -4px;
55-
wash-color: #fff;
5657
}
5758

5859
&.development #btn-reload {
@@ -95,7 +96,17 @@ $cl-text: #3c1b18;
9596
padding-right: 20px;
9697
padding-bottom: 10px;
9798
overflow: squish scroll;
98-
opacity-mask: v.$mask-softedge-vscroll-wide;
99+
opacity-mask: v.$mask-softedge-vertical;
100+
101+
#VerticalScrollBar {
102+
.ScrollThumb {
103+
background-color: color.change($cl-accent, $alpha: 0.66);
104+
105+
&:hover {
106+
background-color: color.change($cl-accent, $alpha: 0.95);
107+
}
108+
}
109+
}
99110
}
100111

101112
#properties-section {
@@ -196,15 +207,15 @@ $cl-text: #3c1b18;
196207
width: 206px;
197208
height: 49px;
198209
border-top: 1px solid #faa46a;
199-
background-color: util.gradient-vertical(#af5417cc, #af5417cc);
210+
background-color: util.gradient-vertical(#af541766, #af5417cc, $top: 100%, $bottom: 0%);
200211
box-shadow: #27110250 0 0 12px;
201212
opacity: 0.9;
202213
wash-color: #9992;
203214
transition-duration: 0.2s;
204215
transition-property: background-color;
205216

206217
&:hover {
207-
background-color: util.gradient-vertical(#af5417, #af5417);
218+
background-color: #af5417;
208219
}
209220

210221
&:active {

0 commit comments

Comments
 (0)