-
Notifications
You must be signed in to change notification settings - Fork 8
/
unstyle.css
124 lines (104 loc) · 2.03 KB
/
unstyle.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* Unstyle.css, pure HTML semantics */
@layer unstyle {
:root {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
* {
min-width: 0;
padding: unset;
border: unset;
margin: unset;
color: inherit;
font: inherit;
}
section, article, header, main, footer, aside, p, details, address, nav, figure, figcaption, canvas, img, video, audio, progress, fieldset, legend {
display: block;
}
button, input, select {
all: unset;
display: inline-block;
cursor: pointer;
}
button::-moz-focus-inner, input::-moz-focus-inner {
padding: 0;
border: 0;
}
input[type="search"] {
box-sizing: content-box;
-webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
textarea {
border-radius: 0;
vertical-align: top;
}
textarea, pre {
overflow: auto;
}
ol, ul, li, dl, dt, dd {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
hr {
box-sizing: content-box;
height: 0;
}
a, a:hover, a:active {
text-decoration: none;
}
b {
font-weight: bolder;
}
i {
font-style: italic;
}
svg {
fill: currentColor;
}
svg:not(:root) {
overflow: hidden;
}
/* Consistent superscript/subscript, font-size based on PhotoShop algorithm */
sup, sub {
position: relative;
vertical-align: middle;
font-size: 58.3%;
line-height: 0;
}
/* ~33.3% up or down for superscript and subscript; You may need to adjust for custom fonts */
sup {
top: -0.33333em;
}
sub {
top: 0.33333em;
}
html, body {
height: 100%;
width: 100%;
}
html {
font: 20px/1.5 sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: subpixel-antialiased;
text-overflow: ellipsis;
}
body {
overflow-x: hidden;
overflow-y: scroll;
}
}