BlueGit

timfa 66wiki

Files

66wiki / web / main.css

main.css

Initial commit
timfa Tim · pushed by timfa · 11 months ago
dd360904 History
main.css 1.8 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}