BlueGit

timfa 66wiki

Files

66wiki / web / main.css

main.css

Add jump to links
timfa ruud · pushed by timfa · 11 months ago
e43828c5 History
main.css 4.0 KiB Download Raw
1/* -------- Reset / Base -------- */
2
3*,
4*::before,
5*::after {
6 box-sizing: border-box;
7}
8
9html {
10 font-size: 16px;
11}
12
13body {
14 margin: 0;
15 padding: 0;
16 font-family: system-ui, -apple-system, BlinkMacSystemFont,
17 "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
18 "Helvetica Neue", Arial, sans-serif;
19 line-height: 1.55;
20 color: #1f1f1f;
21 background-color: #f7f7f8;
22}
23
24/* -------- Text -------- */
25
26h1,
27h2,
28h3,
29h4,
30h5,
31h6 {
32 font-weight: 600;
33 line-height: 1.25;
34 margin: 0;
35}
36
37h1 {
38 font-size: 2rem;
39}
40
41h2 {
42 font-size: 1.4rem;
43}
44
45h3 {
46 font-size: 1.15rem;
47}
48
49p {
50 margin: 0.5rem 0;
51}
52
53small {
54 font-size: 0.85rem;
55 opacity: 0.85;
56}
57
58/* -------- Links -------- */
59
60a {
61 color: #2c5ec2;
62 text-decoration: none;
63}
64
65a:hover {
66 text-decoration: underline;
67}
68
69/* -------- Lists -------- */
70
71ul,
72ol {
73 margin: 0.5rem 0;
74 padding-left: 1.25rem;
75}
76
77/* -------- Utility -------- */
78
79code,
80pre {
81 font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
82 Consolas, "Liberation Mono", "Courier New", monospace;
83 font-size: 0.95em;
84}
85
86pre {
87 background: #eee;
88 padding: 0.75rem;
89 border-radius: 8px;
90 overflow-x: auto;
91}
92
93/* -------- Page Containers -------- */
94
95.page {
96 max-width: 1200px;
97 margin: 0 auto;
98 padding: 1rem;
99}
100
101/* -------- Cards (shared feel) -------- */
102
103article {
104 background: #ffffff;
105}
106
107/* -------- Accessibility -------- */
108
109:focus-visible {
110 outline: 2px solid #5a8dee;
111 outline-offset: 2px;
112}
113
114/* -------- Dark-mode friendly base -------- */
115/* (Optional – remove if unwanted) */
116@media (prefers-color-scheme: dark) {
117 body {
118 background-color: #141416;
119 color: #e8e8ea;
120 }
121
122 article {
123 background: #1c1c1f;
124 }
125
126 a {
127 color: #7aa2ff;
128 }
129
130 pre {
131 background: #26262a;
132 }
133}
134
135.topBar {
136 position: sticky;
137 top: 0;
138 z-index: 999;
139 background: #ffffff;
140 border-bottom: 1px solid #ddd;
141}
142
143.topBarInner {
144 max-width: 1200px;
145 margin: 0 auto;
146 padding: 0.6rem 1rem;
147 display: flex;
148 align-items: center;
149 gap: 0.75rem;
150}
151
152.menuButton {
153 border: 1px solid #bbb;
154 background: #fff;
155 border-radius: 10px;
156 padding: 0.45rem 0.7rem;
157 cursor: pointer;
158}
159
160.menuButton:hover {
161 background: #f2f2f2;
162}
163
164.chapterPicker {
165 position: relative;
166}
167
168.chapterDropdown {
169 display: none;
170 position: absolute;
171 top: calc(100% + 0.4rem);
172 left: 0;
173 width: min(360px, 85vw);
174 max-height: 55vh;
175 overflow: auto;
176 border: 1px solid #ddd;
177 border-radius: 12px;
178 background: #fff;
179 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
180 padding: 0.35rem;
181}
182
183.inlineNavigatorSelect,
184.chapterDropdown.open {
185 display: block;
186}
187
188.inlineNavigatorBtn button,
189.chapterDropdown button {
190 width: 100%;
191 text-align: left;
192 border: 0;
193 background: transparent;
194 padding: 0.55rem 0.6rem;
195 border-radius: 10px;
196 cursor: pointer;
197}
198
199
200.inlineNavigatorBtn button:hover,
201.chapterDropdown button:hover {
202 background: #f3f3f3;
203}
204
205.searchForm {
206 margin-left: auto;
207 display: flex;
208 gap: 0.5rem;
209 align-items: center;
210}
211
212.headerImage {
213 max-height: 32px;
214}
215
216.inlineImage {
217 align-content: center;
218 text-align: center;
219}
220
221.inlineImage>img {
222 max-width: 800px;
223}
224
225.scrollLink {
226 cursor: pointer;
227}
228
229.searchResultArticle {
230 border: 1px solid #ddd;
231 border-radius: 12px;
232 padding: 1rem;
233 margin: 0.75rem 0;
234}
235
236.searchResult {
237 display: flex;
238 gap: 0.75rem;
239 flex-wrap: wrap;
240 align-items: baseline;
241}
242
243hit {
244 border-bottom: 2px groove red;
245}
246
247.searchInput {
248 width: min(420px, 45vw);
249 border: 1px solid #bbb;
250 border-radius: 999px;
251 padding: 0.45rem 0.75rem;
252}
253
254.searchSubmit {
255 border: 1px solid #bbb;
256 border-radius: 999px;
257 padding: 0.45rem 0.75rem;
258 cursor: pointer;
259}
260
261.searchSubmit:hover {
262 background: #f2f2f2;
263}
264
265/* Make sure content doesn't hide behind sticky bar when using anchor links */
266:target {
267 scroll-margin-top: 60px;
268}