@unocss/reset 0.4.12 → 0.4.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  None (public domain)
7
7
 
8
+ ----
9
+
8
10
  ## [normalize.css](https://github.com/necolas/normalize.css/blob/master/normalize.css)
9
11
 
10
12
  The MIT License (MIT)
@@ -29,6 +31,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
31
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
32
  SOFTWARE.
31
33
 
34
+ ----
35
+
32
36
  ## [tailwind.css](https://github.com/tailwindlabs/tailwindcss/blob/master/src/css/preflight.css)
33
37
 
34
38
  MIT License
@@ -56,3 +60,116 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56
60
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57
61
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
58
62
  SOFTWARE.
63
+
64
+ ----
65
+
66
+ ## [sanitize.css](https://github.com/csstools/sanitize.css)
67
+
68
+ # CC0 1.0 Universal
69
+
70
+ ## Statement of Purpose
71
+
72
+ The laws of most jurisdictions throughout the world automatically confer
73
+ exclusive Copyright and Related Rights (defined below) upon the creator and
74
+ subsequent owner(s) (each and all, an “owner”) of an original work of
75
+ authorship and/or a database (each, a “Work”).
76
+
77
+ Certain owners wish to permanently relinquish those rights to a Work for the
78
+ purpose of contributing to a commons of creative, cultural and scientific works
79
+ (“Commons”) that the public can reliably and without fear of later claims of
80
+ infringement build upon, modify, incorporate in other works, reuse and
81
+ redistribute as freely as possible in any form whatsoever and for any purposes,
82
+ including without limitation commercial purposes. These owners may contribute
83
+ to the Commons to promote the ideal of a free culture and the further
84
+ production of creative, cultural and scientific works, or to gain reputation or
85
+ greater distribution for their Work in part through the use and efforts of
86
+ others.
87
+
88
+ For these and/or other purposes and motivations, and without any expectation of
89
+ additional consideration or compensation, the person associating CC0 with a
90
+ Work (the “Affirmer”), to the extent that he or she is an owner of Copyright
91
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and
92
+ publicly distribute the Work under its terms, with knowledge of his or her
93
+ Copyright and Related Rights in the Work and the meaning and intended legal
94
+ effect of CC0 on those rights.
95
+
96
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
97
+ protected by copyright and related or neighboring rights (“Copyright and
98
+ Related Rights”). Copyright and Related Rights include, but are not limited
99
+ to, the following:
100
+ 1. the right to reproduce, adapt, distribute, perform, display, communicate,
101
+ and translate a Work;
102
+ 2. moral rights retained by the original author(s) and/or performer(s);
103
+ 3. publicity and privacy rights pertaining to a person’s image or likeness
104
+ depicted in a Work;
105
+ 4. rights protecting against unfair competition in regards to a Work,
106
+ subject to the limitations in paragraph 4(i), below;
107
+ 5. rights protecting the extraction, dissemination, use and reuse of data in
108
+ a Work;
109
+ 6. database rights (such as those arising under Directive 96/9/EC of the
110
+ European Parliament and of the Council of 11 March 1996 on the legal
111
+ protection of databases, and under any national implementation thereof,
112
+ including any amended or successor version of such directive); and
113
+ 7. other similar, equivalent or corresponding rights throughout the world
114
+ based on applicable law or treaty, and any national implementations
115
+ thereof.
116
+
117
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
118
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
119
+ unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright
120
+ and Related Rights and associated claims and causes of action, whether now
121
+ known or unknown (including existing as well as future claims and causes of
122
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
123
+ duration provided by applicable law or treaty (including future time
124
+ extensions), (iii) in any current or future medium and for any number of
125
+ copies, and (iv) for any purpose whatsoever, including without limitation
126
+ commercial, advertising or promotional purposes (the “Waiver”). Affirmer
127
+ makes the Waiver for the benefit of each member of the public at large and
128
+ to the detriment of Affirmer’s heirs and successors, fully intending that
129
+ such Waiver shall not be subject to revocation, rescission, cancellation,
130
+ termination, or any other legal or equitable action to disrupt the quiet
131
+ enjoyment of the Work by the public as contemplated by Affirmer’s express
132
+ Statement of Purpose.
133
+
134
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
135
+ judged legally invalid or ineffective under applicable law, then the Waiver
136
+ shall be preserved to the maximum extent permitted taking into account
137
+ Affirmer’s express Statement of Purpose. In addition, to the extent the
138
+ Waiver is so judged Affirmer hereby grants to each affected person a
139
+ royalty-free, non transferable, non sublicensable, non exclusive,
140
+ irrevocable and unconditional license to exercise Affirmer’s Copyright and
141
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
142
+ maximum duration provided by applicable law or treaty (including future time
143
+ extensions), (iii) in any current or future medium and for any number of
144
+ copies, and (iv) for any purpose whatsoever, including without limitation
145
+ commercial, advertising or promotional purposes (the “License”). The License
146
+ shall be deemed effective as of the date CC0 was applied by Affirmer to the
147
+ Work. Should any part of the License for any reason be judged legally
148
+ invalid or ineffective under applicable law, such partial invalidity or
149
+ ineffectiveness shall not invalidate the remainder of the License, and in
150
+ such case Affirmer hereby affirms that he or she will not (i) exercise any
151
+ of his or her remaining Copyright and Related Rights in the Work or (ii)
152
+ assert any associated claims and causes of action with respect to the Work,
153
+ in either case contrary to Affirmer’s express Statement of Purpose.
154
+
155
+ 4. Limitations and Disclaimers.
156
+ 1. No trademark or patent rights held by Affirmer are waived, abandoned,
157
+ surrendered, licensed or otherwise affected by this document.
158
+ 2. Affirmer offers the Work as-is and makes no representations or warranties
159
+ of any kind concerning the Work, express, implied, statutory or
160
+ otherwise, including without limitation warranties of title,
161
+ merchantability, fitness for a particular purpose, non infringement, or
162
+ the absence of latent or other defects, accuracy, or the present or
163
+ absence of errors, whether or not discoverable, all to the greatest
164
+ extent permissible under applicable law.
165
+ 3. Affirmer disclaims responsibility for clearing rights of other persons
166
+ that may apply to the Work or any use thereof, including without
167
+ limitation any person’s Copyright and Related Rights in the Work.
168
+ Further, Affirmer disclaims responsibility for obtaining any necessary
169
+ consents, permissions or other rights required for any use of the Work.
170
+ 4. Affirmer understands and acknowledges that Creative Commons is not a
171
+ party to this document and has no duty or obligation with respect to this
172
+ CC0 or use of the Work.
173
+
174
+ For more information, please see
175
+ http://creativecommons.org/publicdomain/zero/1.0/.
package/README.md CHANGED
@@ -10,10 +10,16 @@ npm i @unocss/reset
10
10
  // main.js
11
11
  // pick one of the following
12
12
 
13
- // normalize.css
13
+ // normalize.css https://necolas.github.io/normalize.css/
14
14
  import '@unocss/reset/normalize.css'
15
+
16
+ // sanitize.css https://github.com/csstools/sanitize.css#usage
17
+ import '@unocss/reset/sanitize/sanitize.css'
18
+ import '@unocss/reset/sanitize/assets.css'
19
+
15
20
  // reset.css by Eric Meyer https://meyerweb.com/eric/tools/css/reset/index.html
16
21
  import '@unocss/reset/eric-meyer.css'
22
+
17
23
  // preflights from tailwind
18
24
  import '@unocss/reset/tailwind.css'
19
25
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/reset",
3
- "version": "0.4.12",
3
+ "version": "0.4.16",
4
4
  "description": "Collection of CSS reseting",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/antfu/unocss#readme",
@@ -18,10 +18,11 @@
18
18
  "./*": "./*"
19
19
  },
20
20
  "files": [
21
- "*.css"
21
+ "**/*.css"
22
22
  ],
23
23
  "devDependencies": {
24
- "@csstools/normalize.css": "^12.0.0"
24
+ "@csstools/normalize.css": "^12.0.0",
25
+ "sanitize.css": "^13.0.0"
25
26
  },
26
27
  "scripts": {
27
28
  "build": "esno scripts/copy.ts"
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Restrict sizing to the page width in all browsers (opinionated).
3
+ */
4
+
5
+ :where(iframe, img, input, video, select, textarea) {
6
+ height: auto;
7
+ max-width: 100%;
8
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * 1. Change the inconsistent appearance in all browsers (opinionated).
3
+ * 2. Add typography inheritance in all browsers (opinionated).
4
+ */
5
+
6
+ :where(button, input, select, textarea) {
7
+ background-color: transparent; /* 1 */
8
+ border: 1px solid WindowFrame; /* 1 */
9
+ color: inherit; /* 1 */
10
+ font: inherit; /* 2 */
11
+ letter-spacing: inherit; /* 2 */
12
+ padding: 0.25em 0.375em; /* 1 */
13
+ }
14
+
15
+ /**
16
+ * Change the inconsistent appearance in all browsers (opinionated).
17
+ */
18
+
19
+ :where(select) {
20
+ appearance: none;
21
+ background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em;
22
+ border-radius: 0;
23
+ padding-right: 1em;
24
+ }
25
+
26
+ /**
27
+ * Don't show the arrow for multiple choice selects
28
+ */
29
+
30
+ :where(select[multiple]) {
31
+ background-image: none;
32
+ }
33
+
34
+ /**
35
+ * Remove the border and padding in all browsers (opinionated).
36
+ */
37
+
38
+ :where([type="color" i], [type="range" i]) {
39
+ border-width: 0;
40
+ padding: 0;
41
+ }
@@ -0,0 +1,20 @@
1
+ /*
2
+ * 1. Remove animations when motion is reduced (opinionated).
3
+ * 2. Remove fixed background attachments when motion is reduced (opinionated).
4
+ * 3. Remove timed scrolling behaviors when motion is reduced (opinionated).
5
+ * 4. Remove transitions when motion is reduced (opinionated).
6
+ */
7
+
8
+ @media (prefers-reduced-motion: reduce) {
9
+ *,
10
+ ::before,
11
+ ::after {
12
+ animation-delay: -1ms !important; /* 1 */
13
+ animation-duration: 1ms !important; /* 1 */
14
+ animation-iteration-count: 1 !important; /* 1 */
15
+ background-attachment: initial !important; /* 2 */
16
+ scroll-behavior: auto !important; /* 3 */
17
+ transition-delay: 0s !important; /* 4 */
18
+ transition-duration: 0s !important; /* 4 */
19
+ }
20
+ }
@@ -0,0 +1,363 @@
1
+ /* Document
2
+ * ========================================================================== */
3
+
4
+ /**
5
+ * 1. Add border box sizing in all browsers (opinionated).
6
+ * 2. Backgrounds do not repeat by default (opinionated).
7
+ */
8
+
9
+ *,
10
+ ::before,
11
+ ::after {
12
+ box-sizing: border-box; /* 1 */
13
+ background-repeat: no-repeat; /* 2 */
14
+ }
15
+
16
+ /**
17
+ * 1. Add text decoration inheritance in all browsers (opinionated).
18
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
19
+ */
20
+
21
+ ::before,
22
+ ::after {
23
+ text-decoration: inherit; /* 1 */
24
+ vertical-align: inherit; /* 2 */
25
+ }
26
+
27
+ /**
28
+ * 1. Use the default cursor in all browsers (opinionated).
29
+ * 2. Change the line height in all browsers (opinionated).
30
+ * 3. Breaks words to prevent overflow in all browsers (opinionated).
31
+ * 4. Use a 4-space tab width in all browsers (opinionated).
32
+ * 5. Remove the grey highlight on links in iOS (opinionated).
33
+ * 6. Prevent adjustments of font size after orientation changes in iOS.
34
+ */
35
+
36
+ :where(:root) {
37
+ cursor: default; /* 1 */
38
+ line-height: 1.5; /* 2 */
39
+ overflow-wrap: break-word; /* 3 */
40
+ -moz-tab-size: 4; /* 4 */
41
+ tab-size: 4; /* 4 */
42
+ -webkit-tap-highlight-color: transparent; /* 5 */
43
+ -webkit-text-size-adjust: 100%; /* 6 */
44
+ }
45
+
46
+ /* Sections
47
+ * ========================================================================== */
48
+
49
+ /**
50
+ * Remove the margin in all browsers (opinionated).
51
+ */
52
+
53
+ :where(body) {
54
+ margin: 0;
55
+ }
56
+
57
+ /**
58
+ * Correct the font size and margin on `h1` elements within `section` and
59
+ * `article` contexts in Chrome, Edge, Firefox, and Safari.
60
+ */
61
+
62
+ :where(h1) {
63
+ font-size: 2em;
64
+ margin: 0.67em 0;
65
+ }
66
+
67
+ /* Grouping content
68
+ * ========================================================================== */
69
+
70
+ /**
71
+ * Remove the margin on nested lists in Chrome, Edge, and Safari.
72
+ */
73
+
74
+ :where(dl, ol, ul) :where(dl, ol, ul) {
75
+ margin: 0;
76
+ }
77
+
78
+ /**
79
+ * 1. Correct the inheritance of border color in Firefox.
80
+ * 2. Add the correct box sizing in Firefox.
81
+ */
82
+
83
+ :where(hr) {
84
+ color: inherit; /* 1 */
85
+ height: 0; /* 2 */
86
+ }
87
+
88
+ /**
89
+ * Remove the list style on navigation lists in all browsers (opinionated).
90
+ */
91
+
92
+ :where(nav) :where(ol, ul) {
93
+ list-style-type: none;
94
+ padding: 0;
95
+ }
96
+
97
+ /**
98
+ * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).
99
+ */
100
+
101
+ :where(nav li)::before {
102
+ content: "\200B";
103
+ float: left;
104
+ }
105
+
106
+ /**
107
+ * 1. Correct the inheritance and scaling of font size in all browsers.
108
+ * 2. Correct the odd `em` font sizing in all browsers.
109
+ * 3. Prevent overflow of the container in all browsers (opinionated).
110
+ */
111
+
112
+ :where(pre) {
113
+ font-family: monospace, monospace; /* 1 */
114
+ font-size: 1em; /* 2 */
115
+ overflow: auto; /* 3 */
116
+ }
117
+
118
+ /* Text-level semantics
119
+ * ========================================================================== */
120
+
121
+ /**
122
+ * Add the correct text decoration in Safari.
123
+ */
124
+
125
+ :where(abbr[title]) {
126
+ text-decoration: underline;
127
+ text-decoration: underline dotted;
128
+ }
129
+
130
+ /**
131
+ * Add the correct font weight in Chrome, Edge, and Safari.
132
+ */
133
+
134
+ :where(b, strong) {
135
+ font-weight: bolder;
136
+ }
137
+
138
+ /**
139
+ * 1. Correct the inheritance and scaling of font size in all browsers.
140
+ * 2. Correct the odd `em` font sizing in all browsers.
141
+ */
142
+
143
+ :where(code, kbd, samp) {
144
+ font-family: monospace, monospace; /* 1 */
145
+ font-size: 1em; /* 2 */
146
+ }
147
+
148
+ /**
149
+ * Add the correct font size in all browsers.
150
+ */
151
+
152
+ :where(small) {
153
+ font-size: 80%;
154
+ }
155
+
156
+ /* Embedded content
157
+ * ========================================================================== */
158
+
159
+ /*
160
+ * Change the alignment on media elements in all browsers (opinionated).
161
+ */
162
+
163
+ :where(audio, canvas, iframe, img, svg, video) {
164
+ vertical-align: middle;
165
+ }
166
+
167
+ /**
168
+ * Remove the border on iframes in all browsers (opinionated).
169
+ */
170
+
171
+ :where(iframe) {
172
+ border-style: none;
173
+ }
174
+
175
+ /**
176
+ * Change the fill color to match the text color in all browsers (opinionated).
177
+ */
178
+
179
+ :where(svg:not([fill])) {
180
+ fill: currentColor;
181
+ }
182
+
183
+ /* Tabular data
184
+ * ========================================================================== */
185
+
186
+ /**
187
+ * 1. Collapse border spacing in all browsers (opinionated).
188
+ * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.
189
+ * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.
190
+ */
191
+
192
+ :where(table) {
193
+ border-collapse: collapse; /* 1 */
194
+ border-color: inherit; /* 2 */
195
+ text-indent: 0; /* 3 */
196
+ }
197
+
198
+ /* Forms
199
+ * ========================================================================== */
200
+
201
+ /**
202
+ * Remove the margin on controls in Safari.
203
+ */
204
+
205
+ :where(button, input, select) {
206
+ margin: 0;
207
+ }
208
+
209
+ /**
210
+ * Correct the inability to style buttons in iOS and Safari.
211
+ */
212
+
213
+ :where(button, [type="button" i], [type="reset" i], [type="submit" i]) {
214
+ -webkit-appearance: button;
215
+ }
216
+
217
+ /**
218
+ * Change the inconsistent appearance in all browsers (opinionated).
219
+ */
220
+
221
+ :where(fieldset) {
222
+ border: 1px solid #a0a0a0;
223
+ }
224
+
225
+ /**
226
+ * Add the correct vertical alignment in Chrome, Edge, and Firefox.
227
+ */
228
+
229
+ :where(progress) {
230
+ vertical-align: baseline;
231
+ }
232
+
233
+ /**
234
+ * 1. Remove the margin in Firefox and Safari.
235
+ * 3. Change the resize direction in all browsers (opinionated).
236
+ */
237
+
238
+ :where(textarea) {
239
+ margin: 0; /* 1 */
240
+ resize: vertical; /* 3 */
241
+ }
242
+
243
+ /**
244
+ * 1. Correct the odd appearance in Chrome, Edge, and Safari.
245
+ * 2. Correct the outline style in Safari.
246
+ */
247
+
248
+ :where([type="search" i]) {
249
+ -webkit-appearance: textfield; /* 1 */
250
+ outline-offset: -2px; /* 2 */
251
+ }
252
+
253
+ /**
254
+ * Correct the cursor style of increment and decrement buttons in Safari.
255
+ */
256
+
257
+ ::-webkit-inner-spin-button,
258
+ ::-webkit-outer-spin-button {
259
+ height: auto;
260
+ }
261
+
262
+ /**
263
+ * Correct the text style of placeholders in Chrome, Edge, and Safari.
264
+ */
265
+
266
+ ::-webkit-input-placeholder {
267
+ color: inherit;
268
+ opacity: 0.54;
269
+ }
270
+
271
+ /**
272
+ * Remove the inner padding in Chrome, Edge, and Safari on macOS.
273
+ */
274
+
275
+ ::-webkit-search-decoration {
276
+ -webkit-appearance: none;
277
+ }
278
+
279
+ /**
280
+ * 1. Correct the inability to style upload buttons in iOS and Safari.
281
+ * 2. Change font properties to `inherit` in Safari.
282
+ */
283
+
284
+ ::-webkit-file-upload-button {
285
+ -webkit-appearance: button; /* 1 */
286
+ font: inherit; /* 2 */
287
+ }
288
+
289
+ /* Interactive
290
+ * ========================================================================== */
291
+
292
+ /*
293
+ * Add the correct styles in Safari.
294
+ */
295
+
296
+ :where(dialog) {
297
+ background-color: white;
298
+ border: solid;
299
+ color: black;
300
+ height: -moz-fit-content;
301
+ height: fit-content;
302
+ left: 0;
303
+ margin: auto;
304
+ padding: 1em;
305
+ position: absolute;
306
+ right: 0;
307
+ width: -moz-fit-content;
308
+ width: fit-content;
309
+ }
310
+
311
+ :where(dialog:not([open])) {
312
+ display: none;
313
+ }
314
+
315
+ /*
316
+ * Add the correct display in Safari.
317
+ */
318
+
319
+ :where(details > summary:first-of-type) {
320
+ display: list-item;
321
+ }
322
+
323
+ /* Accessibility
324
+ * ========================================================================== */
325
+
326
+ /**
327
+ * Change the cursor on busy elements in all browsers (opinionated).
328
+ */
329
+
330
+ :where([aria-busy="true" i]) {
331
+ cursor: progress;
332
+ }
333
+
334
+ /*
335
+ * Change the cursor on control elements in all browsers (opinionated).
336
+ */
337
+
338
+ :where([aria-controls]) {
339
+ cursor: pointer;
340
+ }
341
+
342
+ /*
343
+ * Change the cursor on disabled, not-editable, or otherwise
344
+ * inoperable elements in all browsers (opinionated).
345
+ */
346
+
347
+ :where([aria-disabled="true" i], [disabled]) {
348
+ cursor: not-allowed;
349
+ }
350
+
351
+ /*
352
+ * Change the display on visually hidden accessible elements
353
+ * in all browsers (opinionated).
354
+ */
355
+
356
+ :where([aria-hidden="false" i][hidden]) {
357
+ display: initial;
358
+ }
359
+
360
+ :where([aria-hidden="false" i][hidden]:not(:focus)) {
361
+ clip: rect(0, 0, 0, 0);
362
+ position: absolute;
363
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Add the correct system-ui font-family in Firefox.
3
+ */
4
+
5
+ @font-face {
6
+ font-family: system-ui;
7
+ src: local(".AppleSystemUIFont"), local("Segoe UI"), local("Ubuntu"), local("Roboto-Regular"), local("HelveticaNeue");
8
+ }
9
+
10
+ @font-face {
11
+ font-family: system-ui;
12
+ font-style: italic;
13
+ src: local(".AppleSystemUIFont"), local("Segoe UI Italic"), local("Ubuntu-Italic"), local("Roboto-Italic"), local("HelveticaNeue-Italic");
14
+ }
15
+
16
+ @font-face {
17
+ font-family: system-ui;
18
+ font-weight: bold;
19
+ src: local(".AppleSystemUIFont"), local("Segoe UI Bold"), local("Ubuntu-Bold"), local("Roboto-Bold"), local("HelveticaNeue-Bold");
20
+ }
21
+
22
+ @font-face {
23
+ font-family: system-ui;
24
+ font-style: italic;
25
+ font-weight: bold;
26
+ src: local(".AppleSystemUIFont"), local("Segoe UI Bold Italic"), local("Ubuntu-BoldItalic"), local("Roboto-BoldItalic"), local("HelveticaNeue-BoldItalic");
27
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Use the default user interface font in all browsers (opinionated).
3
+ */
4
+
5
+ html {
6
+ font-family:
7
+ system-ui,
8
+ /* macOS 10.11-10.12 */ -apple-system,
9
+ /* Windows 6+ */ "Segoe UI",
10
+ /* Android 4+ */ "Roboto",
11
+ /* Ubuntu 10.10+ */ "Ubuntu",
12
+ /* Gnome 3+ */ "Cantarell",
13
+ /* KDE Plasma 5+ */ "Noto Sans",
14
+ /* fallback */ sans-serif,
15
+ /* macOS emoji */ "Apple Color Emoji",
16
+ /* Windows emoji */ "Segoe UI Emoji",
17
+ /* Windows emoji */ "Segoe UI Symbol",
18
+ /* Linux emoji */ "Noto Color Emoji";
19
+ }
20
+
21
+ /**
22
+ * Use the default monospace user interface font in all browsers (opinionated).
23
+ */
24
+
25
+ code,
26
+ kbd,
27
+ samp,
28
+ pre {
29
+ font-family:
30
+ ui-monospace,
31
+ /* macOS 10.10+ */ "Menlo",
32
+ /* Windows 6+ */ "Consolas",
33
+ /* Android 4+ */ "Roboto Mono",
34
+ /* Ubuntu 10.10+ */ "Ubuntu Monospace",
35
+ /* KDE Plasma 5+ */ "Noto Mono",
36
+ /* KDE Plasma 4+ */ "Oxygen Mono",
37
+ /* Linux/OpenOffice fallback */ "Liberation Mono",
38
+ /* fallback */ monospace,
39
+ /* macOS emoji */ "Apple Color Emoji",
40
+ /* Windows emoji */ "Segoe UI Emoji",
41
+ /* Windows emoji */ "Segoe UI Symbol",
42
+ /* Linux emoji */ "Noto Color Emoji";
43
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Add the correct system-ui font-family in Chrome, Edge, and Firefox.
3
+ */
4
+
5
+ @font-face {
6
+ font-family: ui-monospace;
7
+ src: local(".AppleSystemUIFontMonospaced-Regular"), local("Segoe UI Mono"), local("UbuntuMono"), local("Roboto-Mono"), local("Menlo");
8
+ }
9
+
10
+ @font-face {
11
+ font-family: ui-monospace;
12
+ font-style: italic;
13
+ src: local(".AppleSystemUIFontMonospaced-RegularItalic"), local("Segoe UI Mono Italic"), local("UbuntuMono-Italic"), local("Roboto-Mono-Italic"), local("Menlo-Italic");
14
+ }
15
+
16
+ @font-face {
17
+ font-family: ui-monospace;
18
+ font-weight: bold;
19
+ src: local(".AppleSystemUIFontMonospaced-Bold"), local("Segoe UI Mono Bold"), local("UbuntuMono-Bold"), local("Roboto-Mono-Bold"), local("Menlo-Bold");
20
+ }
21
+
22
+ @font-face {
23
+ font-family: ui-monospace;
24
+ font-style: italic;
25
+ font-weight: bold;
26
+ src: local(".AppleSystemUIFontMonospaced-BoldItalic"), local("Segoe UI Mono Bold Italic"), local("UbuntuMono-BoldItalic"), local("Roboto-Mono-BoldItalic"), local("Menlo-BoldItalic");
27
+ }