-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.css
More file actions
99 lines (90 loc) · 1.79 KB
/
index.css
File metadata and controls
99 lines (90 loc) · 1.79 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
89
90
91
92
93
94
95
96
97
98
99
/* Base resets and modern defaults. Design tokens are defined in styles/tokens.css */
*,
*::before,
*::after {
box-sizing: border-box;
}
:root {
font-family: var(--font-sans);
line-height: var(--lh-normal);
font-weight: 400;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Document */
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
margin: 0;
min-width: 320px;
min-height: 100dvh;
background-color: var(--color-bg);
color: var(--color-text);
}
/* Typography */
h1, h2, h3, h4 {
margin: 0 0 var(--space-4);
}
p {
margin: 0 0 var(--space-4);
}
/* Links */
a {
color: var(--color-link);
text-decoration: none;
transition: color var(--motion-duration-fast) var(--motion-ease-standard);
}
a:hover {
color: var(--color-link-hover);
text-decoration: underline;
}
/* Media */
img, svg, video, canvas {
display: block;
max-width: 100%;
height: auto;
}
/* Forms */
button, input, textarea, select {
font: inherit;
}
:focus-visible {
outline: none;
box-shadow: 0 0 0 3px var(--focus-ring-color);
}
/* Skip link (for keyboard users) */
.skip-link {
position: absolute;
left: -9999px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
.skip-link:focus {
position: fixed;
left: var(--space-4);
top: var(--space-4);
width: auto;
height: auto;
padding: var(--space-2) var(--space-3);
background: var(--color-surface);
color: var(--color-text);
border-radius: var(--radius-md);
box-shadow: var(--shadow-2);
z-index: 10000;
}
/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}