Skip to content

Commit c503e7d

Browse files
committed
Tweak styling
1 parent 73a935a commit c503e7d

File tree

2 files changed

+99
-23
lines changed

2 files changed

+99
-23
lines changed

src/css/custom.css

+98-22
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,58 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #6b52ae;
10-
--ifm-color-primary-dark: #60499d;
11-
--ifm-color-primary-darker: #5b4594;
12-
--ifm-color-primary-darkest: #4b397a;
13-
--ifm-color-primary-light: #7a63b6;
14-
--ifm-color-primary-lighter: #816cba;
15-
--ifm-color-primary-lightest: #9886c6;
16-
17-
--ifm-hero-background-color: #6b52ae;
18-
--ifm-hero-text-color: #fff;
19-
--ifm-footer-background-color: #f7f7ff;
9+
--primary-hue: 256.3;
10+
--primary-saturation: 53.2%;
11+
--primary-lightness: 50.2%;
12+
13+
--ifm-color-primary: hsl(
14+
var(--primary-hue),
15+
var(--primary-saturation),
16+
var(--primary-lightness)
17+
);
18+
19+
--ifm-color-primary-dark: hsl(
20+
var(--primary-hue),
21+
var(--primary-saturation),
22+
45.1%
23+
);
24+
25+
--ifm-color-primary-darker: hsl(
26+
var(--primary-hue),
27+
var(--primary-saturation),
28+
40.1%
29+
);
30+
31+
--ifm-color-primary-darkest: hsl(
32+
var(--primary-hue),
33+
var(--primary-saturation),
34+
35.1%
35+
);
36+
37+
--ifm-color-primary-light: hsl(
38+
var(--primary-hue),
39+
var(--primary-saturation),
40+
55.2%
41+
);
42+
43+
--ifm-color-primary-lighter: hsl(
44+
var(--primary-hue),
45+
var(--primary-saturation),
46+
60.2%
47+
);
48+
49+
--ifm-color-primary-lightest: hsl(
50+
var(--primary-hue),
51+
var(--primary-saturation),
52+
77.6%
53+
);
54+
55+
--ifm-hero-background-color: var(--ifm-color-primary);
56+
--ifm-footer-background-color: #f7f7ff;
2057
--ifm-home-color-text: #414360;
2158
--ifm-home-color-background: #f7f7ff;
2259
--ifm-home-color-background-secondary: #d5d6f5;
23-
--ifm-home-color-highlight: #8c90e0;
60+
--ifm-home-color-highlight: hsl(var(--primary-hue), 57.5%, 71.4%);
2461
--ifm-home-color-border: #414360;
2562
--ifm-home-color-black: #25292e;
2663
--ifm-home-color-white: #f7f7ff;
@@ -33,25 +70,57 @@
3370
}
3471

3572
:root[data-theme='dark'] {
36-
--ifm-color-primary: #a697ce;
37-
--ifm-color-primary-dark: #917fc3;
38-
--ifm-color-primary-darker: #8773bd;
39-
--ifm-color-primary-darkest: #6950aa;
40-
--ifm-color-primary-light: #bbafd9;
41-
--ifm-color-primary-lighter: #c5bbdf;
42-
--ifm-color-primary-lightest: #e4e0f0;
73+
--primary-saturation: 35.9%;
74+
--primary-lightness: 70%;
75+
76+
--ifm-color-primary-dark: hsl(
77+
var(--primary-hue),
78+
var(--primary-saturation),
79+
63.1%
80+
);
81+
82+
--ifm-color-primary-darker: hsl(
83+
var(--primary-hue),
84+
var(--primary-saturation),
85+
59.6%
86+
);
87+
88+
--ifm-color-primary-darkest: hsl(
89+
var(--primary-hue),
90+
var(--primary-saturation),
91+
49%
92+
);
93+
94+
--ifm-color-primary-light: hsl(
95+
var(--primary-hue),
96+
var(--primary-saturation),
97+
76.9%
98+
);
99+
100+
--ifm-color-primary-lighter: hsl(
101+
var(--primary-hue),
102+
var(--primary-saturation),
103+
80.4%
104+
);
105+
106+
--ifm-color-primary-lightest: hsl(
107+
var(--primary-hue),
108+
var(--primary-saturation),
109+
91%
110+
);
43111

44112
--ifm-footer-background-color: #25292f;
45113
--ifm-home-color-text: #f7f7ff;
46114
--ifm-home-color-background: #414360;
47115
--ifm-home-color-background-secondary: #585b82;
48-
--ifm-home-color-highlight: #9692ff;
116+
--ifm-home-color-highlight: hsl(var(--primary-hue), 100%, 78.6%);
49117
--ifm-home-color-border: #f7f7ff;
50118

51119
--docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.07);
52120
}
53121

54122
.menu {
123+
font-size: 93.75%;
55124
font-weight: var(--ifm-font-weight-normal);
56125
}
57126

@@ -61,6 +130,11 @@
61130

62131
.menu__list-item-collapsible > .menu__link {
63132
font-weight: var(--ifm-font-weight-semibold);
133+
color: var(--ifm-color-emphasis-1000);
134+
}
135+
136+
.menu__list-item-collapsible > .menu__link--active {
137+
color: var(--ifm-color-primary);
64138
}
65139

66140
.menu__link--sublist-caret:after {
@@ -80,7 +154,8 @@
80154
border: none;
81155
}
82156

83-
.pagination-nav__label::before, .pagination-nav__label::after {
157+
.pagination-nav__label::before,
158+
.pagination-nav__label::after {
84159
display: none;
85160
}
86161

@@ -96,7 +171,8 @@
96171
border-bottom-width: 2px;
97172
}
98173

99-
.theme-edit-this-page svg, .theme-admonition svg {
174+
.theme-edit-this-page svg,
175+
.theme-admonition svg {
100176
transform: scale(0.8);
101177
}
102178

0 commit comments

Comments
 (0)