|
1 | 1 | /** |
2 | 2 | * Any CSS included here will be global. The classic template |
3 | | - * bundles Infima by default. Infima is a CSS framework designed to |
| 3 | + * bundles Infira by default. Infima is a CSS framework designed to |
4 | 4 | * work well for content-centric websites. |
5 | 5 | * |
6 | | - * Color scheme: dark-first with amber accent. |
| 6 | + * Color scheme: rose accent. |
7 | 7 | */ |
8 | 8 |
|
9 | 9 | :root { |
10 | | - --primary: #F59E0B; |
11 | | - --primary-dark: #D97706; |
12 | | - --primary-deeper: #B45309; |
13 | | - --primary-light: #FBBF24; |
14 | | - --primary-soft: rgba(245, 158, 11, 0.12); |
| 10 | + --primary: #AF788B; |
| 11 | + --primary-dark: #8B5E6F; |
| 12 | + --primary-deeper: #6D4A58; |
| 13 | + --primary-light: #C9A0AE; |
| 14 | + --primary-soft: rgba(175, 120, 139, 0.12); |
15 | 15 | --accent-tech: #5E6AD2; |
16 | 16 | --accent-green: #10B981; |
17 | | - --text: #1F2937; |
18 | | - --text-light: #6B7280; |
| 17 | + --text: #1E293B; |
| 18 | + --text-light: #5B6E8C; |
19 | 19 | --bg: #FFFFFF; |
20 | | - --bg-secondary: #F9FAFB; |
21 | | - --bg-offset: #F3F4F6; |
| 20 | + --bg-secondary: #F6F8FA; |
| 21 | + --bg-offset: #F6F8FA; |
22 | 22 | --card-bg: #FFFFFF; |
23 | | - --border: #E5E7EB; |
| 23 | + --border: #E2E8F0; |
24 | 24 | --code-bg: #0F172A; |
25 | 25 | --code-text: #E2E8F0; |
26 | | - --code-comment: #6B7280; |
27 | | - --code-keyword: #5E6AD2; |
28 | | - |
29 | | - --ifm-color-primary: #F59E0B; |
30 | | - --ifm-color-primary-dark: #D97706; |
31 | | - --ifm-color-primary-darker: #B45309; |
32 | | - --ifm-color-primary-darkest: #92400E; |
33 | | - --ifm-color-primary-light: #FBBF24; |
34 | | - --ifm-color-primary-lighter: #FCD34D; |
35 | | - --ifm-color-primary-lightest: #FDE68A; |
| 26 | + --code-comment: #6272A4; |
| 27 | + --code-keyword: #FF79C6; |
| 28 | + |
| 29 | + --ifm-color-primary: #AF788B; |
| 30 | + --ifm-color-primary-dark: #8B5E6F; |
| 31 | + --ifm-color-primary-darker: #6D4A58; |
| 32 | + --ifm-color-primary-darkest: #573D4A; |
| 33 | + --ifm-color-primary-light: #C9A0AE; |
| 34 | + --ifm-color-primary-lighter: #D4B3BF; |
| 35 | + --ifm-color-primary-lightest: #E6CDD6; |
36 | 36 | --ifm-code-font-size: 95%; |
37 | 37 | --ifm-background-color: #FFFFFF; |
38 | | - --docusaurus-highlighted-code-line-bg: rgba(245, 158, 11, 0.08); |
| 38 | + --docusaurus-highlighted-code-line-bg: rgba(175, 120, 139, 0.08); |
39 | 39 | } |
40 | 40 |
|
41 | 41 | [data-theme='dark'] { |
42 | | - --text: #EDF2F8; |
43 | | - --text-light: #9AA4BF; |
44 | | - --bg: #141720; |
45 | | - --bg-secondary: #1A1F27; |
46 | | - --bg-offset: #1A1F27; |
47 | | - --card-bg: #1E2430; |
48 | | - --border: #2A3040; |
49 | | - --primary-soft: rgba(245, 158, 11, 0.12); |
50 | | - --code-bg: #0E1117; |
51 | | - --code-text: #CBD5E1; |
52 | | - --code-comment: #6B7280; |
53 | | - --code-keyword: #5E6AD2; |
54 | | - |
55 | | - --ifm-color-primary: #FBBF24; |
56 | | - --ifm-color-primary-dark: #F59E0B; |
57 | | - --ifm-color-primary-darker: #D97706; |
58 | | - --ifm-color-primary-darkest: #B45309; |
59 | | - --ifm-color-primary-light: #FCD34D; |
60 | | - --ifm-color-primary-lighter: #FDE68A; |
61 | | - --ifm-color-primary-lightest: #FEF3C7; |
62 | | - --docusaurus-highlighted-code-line-bg: rgba(245, 158, 11, 0.15); |
63 | | - --ifm-background-color: #141720; |
| 42 | + --text: #EEF2FF; |
| 43 | + --text-light: #8B9AB0; |
| 44 | + --bg: #0A0C10; |
| 45 | + --bg-secondary: #11151A; |
| 46 | + --bg-offset: #11151A; |
| 47 | + --card-bg: #131720; |
| 48 | + --border: #1E293B; |
| 49 | + --primary-soft: rgba(201, 160, 174, 0.15); |
| 50 | + --code-bg: #010409; |
| 51 | + --code-text: #E2E8F0; |
| 52 | + --code-comment: #6272A4; |
| 53 | + --code-keyword: #FF79C6; |
| 54 | + |
| 55 | + --ifm-color-primary: #C9A0AE; |
| 56 | + --ifm-color-primary-dark: #AF788B; |
| 57 | + --ifm-color-primary-darker: #8B5E6F; |
| 58 | + --ifm-color-primary-darkest: #6D4A58; |
| 59 | + --ifm-color-primary-light: #D4B3BF; |
| 60 | + --ifm-color-primary-lighter: #E0C5CE; |
| 61 | + --ifm-color-primary-lightest: #E6CDD6; |
| 62 | + --docusaurus-highlighted-code-line-bg: rgba(175, 120, 139, 0.15); |
| 63 | + --ifm-background-color: #0A0C10; |
64 | 64 | } |
65 | 65 |
|
66 | 66 | /* ===== Navbar ===== */ |
|
69 | 69 | border-bottom: none !important; |
70 | 70 | box-shadow: none !important; |
71 | 71 | height: 68px !important; |
72 | | - padding: 0 1.5rem !important; |
| 72 | + padding: 0 !important; |
73 | 73 | } |
74 | 74 |
|
75 | 75 | .navbar__inner { |
76 | 76 | height: 68px !important; |
77 | 77 | max-width: 1280px; |
78 | 78 | margin: 0 auto; |
| 79 | + display: flex; |
| 80 | + align-items: center; |
| 81 | + width: 100%; |
| 82 | +} |
| 83 | + |
| 84 | +.navbar__items { |
| 85 | + flex: 1; |
| 86 | + display: flex; |
| 87 | + justify-content: center; |
| 88 | +} |
| 89 | + |
| 90 | +.navbar__items--right { |
| 91 | + flex: 0; |
79 | 92 | } |
80 | 93 |
|
81 | 94 | .navbar__brand { |
|
109 | 122 | color: var(--primary) !important; |
110 | 123 | } |
111 | 124 |
|
112 | | -[data-theme='dark'] .navbar { |
113 | | - background-color: var(--bg) !important; |
114 | | - border-bottom-color: var(--border) !important; |
115 | | -} |
116 | | - |
117 | | -[data-theme='dark'] .navbar__title { |
118 | | - color: var(--text) !important; |
119 | | -} |
120 | | - |
121 | | -[data-theme='dark'] .navbar__link { |
122 | | - color: var(--text-light) !important; |
123 | | -} |
124 | | - |
125 | | -[data-theme='dark'] .navbar__link:hover { |
126 | | - color: var(--primary) !important; |
127 | | -} |
128 | | - |
129 | | -[data-theme='dark'] .navbar__link--active { |
130 | | - color: var(--primary) !important; |
131 | | -} |
132 | | - |
133 | | -/* ===== Footer ===== */ |
134 | | -.footer { |
135 | | - background-color: transparent !important; |
136 | | - padding: 5rem 1.5rem 1.5rem; |
137 | | -} |
138 | | - |
139 | | -.footer__title { |
140 | | - font-size: 0.85rem; |
141 | | - font-weight: 700; |
142 | | - text-transform: uppercase; |
143 | | - letter-spacing: 0.08em; |
144 | | - color: var(--text); |
145 | | - margin-bottom: 1rem; |
146 | | -} |
147 | | - |
148 | | -.footer__link-item { |
149 | | - font-size: 0.92rem; |
150 | | - color: var(--text-light); |
151 | | - line-height: 2; |
152 | | - transition: color 0.15s; |
153 | | -} |
154 | | - |
155 | | -.footer__link-item:hover { |
156 | | - color: var(--primary); |
157 | | -} |
158 | | - |
159 | | -.footer__link-item svg { |
160 | | - display: none; |
| 125 | +/* ===== Prevent scroll on homepage ===== */ |
| 126 | +html:has(.heroBanner) { |
| 127 | + overflow: hidden; |
161 | 128 | } |
162 | 129 |
|
163 | | -.footer__copyright { |
164 | | - font-size: 0.88rem; |
165 | | - color: var(--text-light); |
| 130 | +html:has(.heroBanner) body { |
| 131 | + overflow: hidden; |
166 | 132 | } |
0 commit comments