Skip to content

Commit 4c6ed64

Browse files
authored
Fix docs navbar on mobile (#541)
1 parent 53f89b1 commit 4c6ed64

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

docs/src/css/custom.css

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
--ifm-color-primary-darkest: #4d34c4;
2828

2929
/* Typography */
30-
--ifm-font-family-base: "Euclid Circular A", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
31-
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
30+
--ifm-font-family-base: "Euclid Circular A", "Poppins", -apple-system,
31+
BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
32+
"Open Sans", "Helvetica Neue", sans-serif;
3233
--ifm-heading-font-weight: 700;
3334
--ifm-font-weight-bold: 600;
3435

@@ -64,7 +65,8 @@ body {
6465

6566
/* Smooth transition for theme switch & interactive elements */
6667
* {
67-
transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
68+
transition: color 0.15s ease, background-color 0.15s ease,
69+
border-color 0.15s ease;
6870
}
6971

7072
/* Custom scrollbar – slim & subtle */
@@ -94,17 +96,24 @@ body {
9496

9597
/* Buttons (using Infima classes) */
9698
.button--primary {
97-
background: linear-gradient(135deg, var(--astro-blue) 0%, var(--graph-purple) 100%);
99+
background: linear-gradient(
100+
135deg,
101+
var(--astro-blue) 0%,
102+
var(--graph-purple) 100%
103+
);
98104
color: #fff;
99105
border: none;
100106
}
101107
.button--primary:hover {
102-
background: linear-gradient(135deg, var(--astro-blue) -20%, var(--graph-purple) 120%);
108+
background: linear-gradient(
109+
135deg,
110+
var(--astro-blue) -20%,
111+
var(--graph-purple) 120%
112+
);
103113
}
104114

105115
/* Navbar translucency & blur */
106116
.navbar {
107-
backdrop-filter: blur(12px);
108117
background-color: var(--ifm-navbar-background-color);
109118
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
110119
}
@@ -194,7 +203,7 @@ blockquote {
194203
code
195204
.token.keyword,
196205
.plugin-docs .plugin-id-default [data-path*="api-reference"] .token.keyword {
197-
color: #c792ea;
206+
color: #c792ea;
198207
}
199208

200209
.plugin-docs
@@ -204,7 +213,7 @@ blockquote {
204213
code
205214
.token.type,
206215
.plugin-docs .plugin-id-default [data-path*="api-reference"] .token.type {
207-
color: #82aaff;
216+
color: #82aaff;
208217
}
209218

210219
.plugin-docs
@@ -214,7 +223,7 @@ blockquote {
214223
code
215224
.token.string,
216225
.plugin-docs .plugin-id-default [data-path*="api-reference"] .token.string {
217-
color: #c3e88d;
226+
color: #c3e88d;
218227
}
219228

220229
.plugin-docs
@@ -224,7 +233,7 @@ blockquote {
224233
code
225234
.token.property,
226235
.plugin-docs .plugin-id-default [data-path*="api-reference"] .token.property {
227-
color: #ff9cac;
236+
color: #ff9cac;
228237
}
229238

230239
.plugin-docs
@@ -349,4 +358,4 @@ blockquote {
349358
background: rgba(255, 255, 255, 0.06);
350359
padding: 0.1rem 0.3rem;
351360
border-radius: 0.2rem;
352-
}
361+
}

0 commit comments

Comments
 (0)