| 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 | html { |
| 19 | /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */ |
| 20 | font-family: |
| 21 | system-ui, |
| 22 | 'Segoe UI', |
| 23 | Roboto, |
| 24 | Helvetica, |
| 25 | Arial, |
| 26 | sans-serif, |
| 27 | 'Apple Color Emoji', |
| 28 | 'Segoe UI Emoji'; |
| 29 | line-height: 1.15; /* 1. Correct the line height in all browsers. */ |
| 30 | -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */ |
| 31 | tab-size: 4; /* 3. Use a more readable tab size (opinionated). */ |
| 32 | } |
| 33 | |
| 34 | /* |
| 35 | Sections |
| 36 | ======== |
| 37 | */ |
| 38 | |
| 39 | body { |
| 40 | margin: 0; /* Remove the margin in all browsers. */ |
| 41 | } |
| 42 | |
| 43 | /* |
| 44 | Text-level semantics |
| 45 | ==================== |
| 46 | */ |
| 47 | |
| 48 | /** |
| 49 | Add the correct font weight in Chrome and Safari. |
| 50 | */ |
| 51 | |
| 52 | b, |
| 53 | strong { |
| 54 | font-weight: bolder; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) |
| 59 | 2. Correct the odd 'em' font sizing in all browsers. |
| 60 | */ |
| 61 | |
| 62 | code, |
| 63 | kbd, |
| 64 | samp, |
| 65 | pre { |
| 66 | font-family: |
| 67 | ui-monospace, |
| 68 | SFMono-Regular, |
| 69 | Consolas, |
| 70 | 'Liberation Mono', |
| 71 | 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 | } |