forked from sveltejs/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
98 lines (82 loc) · 1.07 KB
/
styles.css
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
/* RESET */
*,
*::before,
*::after {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
height: 100%;
font-family: sans-serif;
}
html:focus-within {
scroll-behavior: smooth;
}
body {
line-height: 1.5;
}
a:not([class]) {
text-decoration-skip-ink: auto;
}
img,
picture,
video,
canvas {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select,
input[type='file']::file-selector-button {
font: inherit;
}
label,
textarea,
progress,
input:where(
[type='email'],
[type='password'],
[type='search'],
[type='tel'],
[type='text'],
[type='url'],
[type='file']
) {
display: block;
width: 100%;
}
textarea {
box-sizing: content-box;
min-height: 5em;
resize: block;
resize: vertical;
}
/* THEME */
h1 {
margin-block-end: 2rem;
}
h2,
h3 {
margin-block-end: 1rem;
}
label {
font-weight: 700;
margin-block-end: 0.25rem;
}
button,
input[type='file']::file-selector-button {
padding-inline: 0.5rem;
padding-block: 0.2rem;
cursor: pointer;
}
button:hover {
filter: brightness(1.1);
}
button.--loading {
cursor: wait;
opacity: 0.6;
}