main
css 160 lines 1.82 KB
Raw
1 *,
2 ::after,
3 ::before {
4 box-sizing: border-box;
5 }
6
7 html {
8 -webkit-tap-highlight-color: transparent;
9 overflow-y: scroll;
10 -webkit-text-size-adjust: 100%;
11 text-size-adjust: 100%;
12 }
13
14 a,
15 button,
16 body,
17 h1,
18 h2,
19 h3,
20 h4,
21 h5,
22 h6 {
23 color: var(--primary);
24 }
25
26 body {
27 font-family: var(--font-body);
28 font-size: var(--text-base);
29 line-height: var(--leading-relaxed);
30 word-break: break-word;
31 background: var(--color-bg);
32 }
33
34 article,
35 aside,
36 figcaption,
37 figure,
38 footer,
39 header,
40 hgroup,
41 main,
42 nav,
43 section,
44 table {
45 display: block;
46 }
47
48 h1,
49 h2,
50 h3,
51 h4,
52 h5,
53 h6 {
54 font-family: var(--font-display);
55 line-height: var(--leading-tight);
56 }
57
58 h1 {
59 font-size: var(--text-3xl);
60 font-weight: 700;
61 }
62
63 h2 {
64 font-size: var(--text-2xl);
65 font-weight: 600;
66 }
67
68 h3 {
69 font-size: var(--text-xl);
70 line-height: 1.3;
71 font-weight: 600;
72 }
73
74 h4 {
75 font-size: var(--text-lg);
76 line-height: 1.35;
77 font-weight: 600;
78 }
79
80 h5,
81 h6 {
82 font-size: var(--text-sm);
83 line-height: var(--leading-normal);
84 font-weight: 600;
85 }
86
87 small {
88 font-size: var(--text-sm);
89 line-height: var(--leading-normal);
90 }
91
92 h1,
93 h2,
94 h3,
95 h4,
96 h5,
97 h6,
98 p {
99 margin-top: 0;
100 margin-bottom: 0;
101 }
102
103 ul {
104 padding: 0;
105 }
106
107 a {
108 text-decoration: none;
109 }
110
111 body,
112 figure,
113 ul {
114 margin: 0;
115 }
116
117 table {
118 width: 100%;
119 border-collapse: collapse;
120 border-spacing: 0;
121 overflow-x: auto;
122 word-break: keep-all;
123 }
124
125 button,
126 input,
127 textarea {
128 padding: 0;
129 font: inherit;
130 background: 0 0;
131 border: 0;
132 }
133
134 code,
135 kbd,
136 pre,
137 samp {
138 font-family: var(--font-mono);
139 }
140
141 input,
142 textarea {
143 outline: 0;
144 }
145
146 button,
147 input[type=button],
148 input[type=submit] {
149 cursor: pointer;
150 }
151
152 input:-webkit-autofill,
153 textarea:-webkit-autofill {
154 box-shadow: 0 0 0 50px var(--theme) inset;
155 }
156
157 img {
158 display: block;
159 max-width: 100%;
160 }