Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
88 lines (73 loc) · 2.34 KB
/
Copy pathstyle.css
File metadata and controls
88 lines (73 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
:root {
--bg: #ffffff;
--fg: #1b1f24;
--muted: #5b6573;
--card: #f5f7fa;
--line: #e1e5ea;
--accent: #2563eb;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0f1216;
--fg: #e8ebef;
--muted: #9aa4b2;
--card: #181c22;
--line: #2a303a;
--accent: #6ea0ff;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--fg);
font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 760px;
margin: 0 auto;
padding: 20px 16px;
}
.brand { font-weight: 700; letter-spacing: .02em; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button {
border: 0;
background: transparent;
color: var(--muted);
padding: 6px 12px;
font: inherit;
font-size: 14px;
cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }
main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }
section { padding: 24px 0; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
display: block;
padding: 16px;
background: var(--card);
border: 1px solid var(--line);
border-radius: 12px;
color: inherit;
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.card.static:hover { border-color: var(--line); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.tags { font-size: .8rem; color: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { padding: 4px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.links { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
footer { padding: 32px 16px 48px; color: var(--muted); }
.feat { padding-left: 1.2em; margin: 0; }
.feat li { margin-bottom: 10px; }