BlueGit

timfa 66wiki

Files

66wiki / web / main.css

main.css

main.css 4.3 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.nextChapterButton {
161 margin-bottom: 50px;
162 max-width: 900px;
163 min-width: 400px;
164 height: 50px;
165}
166
167.menuButton:hover {
168 background: #f2f2f2;
169}
170
171.chapterPicker {
172 position: relative;
173}
174
175.chapterDropdown {
176 display: none;
177 position: absolute;
178 top: calc(100% + 0.4rem);
179 left: 0;
180 width: min(360px, 85vw);
181 max-height: 55vh;
182 overflow: auto;
183 border: 1px solid #ddd;
184 border-radius: 12px;
185 background: #fff;
186 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
187 padding: 0.35rem;
188}
189
190.inlineNavigatorSelect,
191.chapterDropdown.open {
192 display: block;
193}
194
195.inlineNavigatorBtn button,
196.chapterDropdown button {
197 width: 100%;
198 text-align: left;
199 border: 0;
200 background: transparent;
201 padding: 0.55rem 0.6rem;
202 border-radius: 10px;
203 cursor: pointer;
204}
205
206
207.inlineNavigatorBtn button:hover,
208.chapterDropdown button:hover {
209 background: #f3f3f3;
210}
211
212.searchForm {
213 margin-left: auto;
214 display: flex;
215 gap: 0.5rem;
216 align-items: center;
217}
218
219.headerImage {
220 max-height: 32px;
221}
222
223.inlineImage {
224 align-content: center;
225 text-align: center;
226}
227
228.inlineImage>img {
229 max-width: 800px;
230}
231
232.scrollLink {
233 cursor: pointer;
234}
235
236.searchResultArticle {
237 border: 1px solid #ddd;
238 border-radius: 12px;
239 padding: 1rem;
240 margin: 0.75rem 0;
241}
242
243.searchResult {
244 display: flex;
245 gap: 0.75rem;
246 flex-wrap: wrap;
247 align-items: baseline;
248}
249
250hit {
251 border-bottom: 2px groove red;
252}
253
254table {
255 width: 100%;
256 border-collapse: collapse;
257 table-layout: fixed;
258}
259
260td {
261 align-items: start;
262 align-content: start;
263 vertical-align: top;
264 width: 50%;
265 padding-right: 2%;
266}
267
268.searchInput {
269 width: min(420px, 45vw);
270 border: 1px solid #bbb;
271 border-radius: 999px;
272 padding: 0.45rem 0.75rem;
273}
274
275.searchSubmit {
276 border: 1px solid #bbb;
277 border-radius: 999px;
278 padding: 0.45rem 0.75rem;
279 cursor: pointer;
280}
281
282.searchSubmit:hover {
283 background: #f2f2f2;
284}
285
286/* Make sure content doesn't hide behind sticky bar when using anchor links */
287:target {
288 scroll-margin-top: 60px;
289}