|
| 1 | +/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */ |
| 2 | + |
| 3 | +/* |
| 4 | +Document |
| 5 | +======== |
| 6 | +*/ |
| 7 | + |
| 8 | +/** |
| 9 | +Use a better box model (opinionated). |
| 10 | +*/ |
| 11 | + |
| 12 | +*, |
| 13 | +::before, |
| 14 | +::after { |
| 15 | + box-sizing: border-box; |
| 16 | +} |
| 17 | + |
| 18 | +/** |
| 19 | +1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) |
| 20 | +2. Correct the line height in all browsers. |
| 21 | +3. Prevent adjustments of font size after orientation changes in iOS. |
| 22 | +4. Use a more readable tab size (opinionated). |
| 23 | +*/ |
| 24 | + |
| 25 | +html { |
| 26 | + font-family: |
| 27 | + system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, |
| 28 | + "Apple Color Emoji", "Segoe UI Emoji"; /* 1 */ |
| 29 | + line-height: 1.15; /* 2 */ |
| 30 | + -webkit-text-size-adjust: 100%; /* 3 */ |
| 31 | + tab-size: 4; /* 4 */ |
| 32 | +} |
| 33 | + |
| 34 | +/* |
| 35 | +Sections |
| 36 | +======== |
| 37 | +*/ |
| 38 | + |
| 39 | +/** |
| 40 | +Remove the margin in all browsers. |
| 41 | +*/ |
| 42 | + |
| 43 | +body { |
| 44 | + margin: 0; |
| 45 | +} |
| 46 | + |
| 47 | +/* |
| 48 | +Text-level semantics |
| 49 | +==================== |
| 50 | +*/ |
| 51 | + |
| 52 | +/** |
| 53 | +Add the correct font weight in Chrome and Safari. |
| 54 | +*/ |
| 55 | + |
| 56 | +b, |
| 57 | +strong { |
| 58 | + font-weight: bolder; |
| 59 | +} |
| 60 | + |
| 61 | +/** |
| 62 | +1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) |
| 63 | +2. Correct the odd 'em' font sizing in all browsers. |
| 64 | +*/ |
| 65 | + |
| 66 | +code, |
| 67 | +kbd, |
| 68 | +samp, |
| 69 | +pre { |
| 70 | + font-family: |
| 71 | + ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, |
| 72 | + monospace; /* 1 */ |
| 73 | + font-size: 1em; /* 2 */ |
| 74 | +} |
| 75 | + |
| 76 | +/** |
| 77 | +Add the correct font size in all browsers. |
| 78 | +*/ |
| 79 | + |
| 80 | +small { |
| 81 | + font-size: 80%; |
| 82 | +} |
| 83 | + |
| 84 | +/** |
| 85 | +Prevent 'sub' and 'sup' elements from affecting the line height in all browsers. |
| 86 | +*/ |
| 87 | + |
| 88 | +sub, |
| 89 | +sup { |
| 90 | + font-size: 75%; |
| 91 | + line-height: 0; |
| 92 | + position: relative; |
| 93 | + vertical-align: baseline; |
| 94 | +} |
| 95 | + |
| 96 | +sub { |
| 97 | + bottom: -0.25em; |
| 98 | +} |
| 99 | + |
| 100 | +sup { |
| 101 | + top: -0.5em; |
| 102 | +} |
| 103 | + |
| 104 | +/* |
| 105 | +Tabular data |
| 106 | +============ |
| 107 | +*/ |
| 108 | + |
| 109 | +/** |
| 110 | +Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016) |
| 111 | +*/ |
| 112 | + |
| 113 | +table { |
| 114 | + border-color: currentcolor; |
| 115 | +} |
| 116 | + |
| 117 | +/* |
| 118 | +Forms |
| 119 | +===== |
| 120 | +*/ |
| 121 | + |
| 122 | +/** |
| 123 | +1. Change the font styles in all browsers. |
| 124 | +2. Remove the margin in Firefox and Safari. |
| 125 | +*/ |
| 126 | + |
| 127 | +button, |
| 128 | +input, |
| 129 | +optgroup, |
| 130 | +select, |
| 131 | +textarea { |
| 132 | + font-family: inherit; /* 1 */ |
| 133 | + font-size: 100%; /* 1 */ |
| 134 | + line-height: 1.15; /* 1 */ |
| 135 | + margin: 0; /* 2 */ |
| 136 | +} |
| 137 | + |
| 138 | +/** |
| 139 | +Correct the inability to style clickable types in iOS and Safari. |
| 140 | +*/ |
| 141 | + |
| 142 | +button, |
| 143 | +[type="button"], |
| 144 | +[type="reset"], |
| 145 | +[type="submit"] { |
| 146 | + -webkit-appearance: button; |
| 147 | +} |
| 148 | + |
| 149 | +/** |
| 150 | +Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers. |
| 151 | +*/ |
| 152 | + |
| 153 | +legend { |
| 154 | + padding: 0; |
| 155 | +} |
| 156 | + |
| 157 | +/** |
| 158 | +Add the correct vertical alignment in Chrome and Firefox. |
| 159 | +*/ |
| 160 | + |
| 161 | +progress { |
| 162 | + vertical-align: baseline; |
| 163 | +} |
| 164 | + |
| 165 | +/** |
| 166 | +Correct the cursor style of increment and decrement buttons in Safari. |
| 167 | +*/ |
| 168 | + |
| 169 | +::-webkit-inner-spin-button, |
| 170 | +::-webkit-outer-spin-button { |
| 171 | + height: auto; |
| 172 | +} |
| 173 | + |
| 174 | +/** |
| 175 | +1. Correct the odd appearance in Chrome and Safari. |
| 176 | +2. Correct the outline style in Safari. |
| 177 | +*/ |
| 178 | + |
| 179 | +[type="search"] { |
| 180 | + -webkit-appearance: textfield; /* 1 */ |
| 181 | + outline-offset: -2px; /* 2 */ |
| 182 | +} |
| 183 | + |
| 184 | +/** |
| 185 | +Remove the inner padding in Chrome and Safari on macOS. |
| 186 | +*/ |
| 187 | + |
| 188 | +::-webkit-search-decoration { |
| 189 | + -webkit-appearance: none; |
| 190 | +} |
| 191 | + |
| 192 | +/** |
| 193 | +1. Correct the inability to style clickable types in iOS and Safari. |
| 194 | +2. Change font properties to 'inherit' in Safari. |
| 195 | +*/ |
| 196 | + |
| 197 | +::-webkit-file-upload-button { |
| 198 | + -webkit-appearance: button; /* 1 */ |
| 199 | + font: inherit; /* 2 */ |
| 200 | +} |
| 201 | + |
| 202 | +/* |
| 203 | +Interactive |
| 204 | +=========== |
| 205 | +*/ |
| 206 | + |
| 207 | +/* |
| 208 | +Add the correct display in Chrome and Safari. |
| 209 | +*/ |
| 210 | + |
| 211 | +summary { |
| 212 | + display: list-item; |
| 213 | +} |
0 commit comments