Skip to content

Commit 8873788

Browse files
authored
Small dark mode and mobile fixes (#90)
* Change color palette Change to the palette that has light/dark mode variations * Update custom.css * Update custom.css * Fix padding on smaller screens
1 parent 33d0129 commit 8873788

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

src/styles/custom.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,21 @@
147147
font-family: 'AeonikFono', sans-serif !important;
148148
font-size: 15px !important;
149149
font-weight:500;
150-
color: var(--gray-neutral-400);
150+
color: var(--sl-color-gray-3);
151151
}
152152

153153
.sidebar-content .top-level li details ul > li > a:hover,
154154
.sidebar-content .top-level li details ul > li > details > summary:hover,
155155
.sidebar-content .top-level > li .large:hover,
156156
.sidebar-content .top-level > li summary:hover {
157-
background-color: var(--gray-neutral-100) !important;
157+
background-color: var(--sl-color-gray-5) !important;
158158
border-radius: 4px;
159159
}
160160

161161
/* Third level navigation text styles */
162162
.sidebar-content .top-level li details ul li details ul li a span {
163163
font-size: 14px !important;
164-
color: var(--gray-neutral-500) !important;
164+
color: var(--sl-color-gray-3) !important;
165165
font-weight: normal !important;
166166
}
167167

@@ -174,15 +174,15 @@
174174
font-size: 16px !important;
175175
font-weight:500;
176176
line-height: 1.0;
177-
color: var(--gray-neutral-400);
177+
color: var(--sl-color-gray-3);
178178
letter-spacing: -0.15%;
179179
line-height: 1.4;
180180
}
181181

182182
select.astro-oojz3yon {
183183
border-radius: 6px;
184184
border: 1px solid #999CAD;
185-
color: var(--gray-neutral-400);
185+
color: var(--sl-color-gray-3);
186186
font-family: 'Aeonikpro', sans-serif;
187187
font-size: 18px;
188188
}
@@ -234,12 +234,12 @@ a[rel="prev"], a[rel="next"] {
234234
}
235235

236236
a[rel="prev"] span, a[rel="next"] span {
237-
color: #707385;
237+
color: var(--sl-color-gray-4);
238238
font-size: 12px;
239239
}
240240

241241
a[rel="prev"] span span, a[rel="next"] span span {
242-
color: #4B4E5C;
242+
color: var(--sl-color-gray-2);
243243
font-family: "Aeonikpro";
244244
font-size: 16px;
245245
font-weight: 400;
@@ -256,7 +256,7 @@ footer .pagination-links {
256256
}
257257

258258
h2#starlight__on-this-page {
259-
color: #707385;
259+
color: var(--sl-color-gray-4);
260260
font-family: "Aeonikpro";
261261
font-size: 16px;
262262
font-style: normal;

src/styles/global.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
--sl-color-gray-1: #24272f;
3636
--sl-color-gray-2: #4B4E5C;
3737
--sl-color-gray-3: #545861;
38-
--sl-color-gray-4: #888b96;
38+
--sl-color-gray-4: #707385;
3939
--sl-color-gray-5: #c0c2c7;
4040
--sl-color-gray-6: #eceef2;
4141
--sl-color-gray-7: #f5f6f8;
@@ -67,6 +67,13 @@ h3 {
6767
padding-right: 7rem;
6868
}
6969

70+
@media (max-width: 1024px) {
71+
.main-pane {
72+
padding-left: 2rem;
73+
padding-right: 2rem;
74+
}
75+
}
76+
7077
/* Product Cards Styles */
7178
.product-card {
7279
color: #ffffff !important;

0 commit comments

Comments
 (0)