Skip to content

Commit 566f48c

Browse files
committed
Improve details group colors.
1 parent 79c6e47 commit 566f48c

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

dev/sass/colors.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ $title-bg: $doc-light;
3333
$tooltip-bg: rgba($doc-black,0.9);
3434
$selected-stroke-color: rgba($doc-black, 0.3);
3535
$match-color: rgba($theme-color, 0.5);
36+
3637
$dark-shadow: rgba(0,0,0, 0.25);
3738
$light-shadow: rgba(0,0,0, 0.1);
3839
$strong-shadow: rgba(0,0,0, 0.45);
3940

41+
$details-group-alpha: 0.5;
42+
4043
// notice colors:
4144
$error-color: #D22;
4245
$warning-color: $error-color;

dev/sass/colors_dark.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ $title-bg: $doc-light;
2525
$tooltip-bg: rgba($doc-black,0.9);
2626
$selected-stroke-color: rgba($doc-black, 0.4);
2727
$match-color: rgba($theme-color, 0.6);
28+
29+
$details-group-alpha: 0.33;
30+
2831
// shadows inherited
2932

3033
// notice colors:
@@ -33,4 +36,4 @@ $match-color: rgba($theme-color, 0.6);
3336
// inherited
3437

3538
// invisible char color:
36-
// inherited
39+
// inherited

dev/sass/views/tools/details.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@
6464
@extend %selected-token;
6565
}
6666

67-
$details-group-color: hsla(-20, 80, 70, 1);
68-
$details-hue-adj: 60;
69-
.group-0 { background: adjust-color($details-group-color, $hue: $details-hue-adj*0); }
70-
.group-1 { background: adjust-color($details-group-color, $hue: $details-hue-adj*1); }
71-
.group-2 { background: adjust-color($details-group-color, $hue: $details-hue-adj*2); }
72-
.group-3 { background: adjust-color($details-group-color, $hue: $details-hue-adj*3); }
73-
.group-4 { background: adjust-color($details-group-color, $hue: $details-hue-adj*4); }
74-
.group-5 { background: adjust-color($details-group-color, $hue: $details-hue-adj*5); }
67+
.group-1 { background: hsla(60, 100, 50, $details-group-alpha); }
68+
.group-2 { background: hsla(120, 100, 50, $details-group-alpha); }
69+
.group-3 { background: hsla(230, 100, 70, $details-group-alpha); }
70+
.group-4 { background: hsla(280, 100, 60, $details-group-alpha); }
71+
.group-5 { background: hsla(-10, 100, 60, $details-group-alpha); }
72+
.group-0 { background: hsla(30, 100, 50, $details-group-alpha); }
73+
.group-0, .group-1, .group-2, .group-3, .group-4, .group-5 { outline: 0.5px solid rgba($doc-black, 0.25); }
7574

7675
}

0 commit comments

Comments
 (0)