|
1 | 1 | /* stylelint-disable */
|
2 | 2 | /***
|
3 |
| - The new CSS reset - version 1.11.3 (last updated 25.08.2024) |
4 |
| - GitHub page: https://github.com/elad2412/the-new-css-reset |
| 3 | + The new CSS reset - version 1.11.3 (last updated 25.08.2024) |
| 4 | + GitHub page: https://github.com/elad2412/the-new-css-reset |
5 | 5 | ***/
|
6 | 6 |
|
7 | 7 | /*
|
8 |
| - Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property |
9 |
| - - The "symbol *" part is to solve Firefox SVG sprite bug |
10 |
| - - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36) |
| 8 | + Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property |
| 9 | + - The "symbol *" part is to solve Firefox SVG sprite bug |
| 10 | + - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36) |
11 | 11 | */
|
12 | 12 | *:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
|
13 |
| - all: unset; |
14 |
| - display: revert; |
| 13 | + all: unset; |
| 14 | + display: revert; |
15 | 15 | }
|
16 | 16 |
|
17 | 17 | /* Preferred box-sizing value */
|
18 | 18 | *,
|
19 | 19 | *::before,
|
20 | 20 | *::after {
|
21 |
| - box-sizing: border-box; |
| 21 | + box-sizing: border-box; |
22 | 22 | }
|
23 | 23 |
|
24 | 24 | /* Fix mobile Safari increase font-size on landscape mode */
|
25 | 25 | html {
|
26 |
| - -moz-text-size-adjust: none; |
27 |
| - -webkit-text-size-adjust: none; |
28 |
| - text-size-adjust: none; |
| 26 | + -moz-text-size-adjust: none; |
| 27 | + -webkit-text-size-adjust: none; |
| 28 | + text-size-adjust: none; |
29 | 29 | }
|
30 | 30 |
|
31 | 31 | /* Reapply the pointer cursor for anchor tags */
|
32 | 32 | a, button {
|
33 |
| - cursor: revert; |
| 33 | + cursor: revert; |
34 | 34 | }
|
35 | 35 |
|
36 | 36 | /* Remove list styles (bullets/numbers) */
|
37 | 37 | ol, ul, menu, summary {
|
38 |
| - list-style: none; |
| 38 | + list-style: none; |
39 | 39 | }
|
40 | 40 |
|
41 | 41 | /* Firefox: solve issue where nested ordered lists continue numbering from parent (https://bugzilla.mozilla.org/show_bug.cgi?id=1881517) */
|
42 | 42 | ol {
|
43 |
| - counter-reset: revert; |
| 43 | + counter-reset: revert; |
44 | 44 | }
|
45 | 45 |
|
46 | 46 | /* For images to not be able to exceed their container */
|
47 | 47 | img {
|
48 |
| - max-inline-size: 100%; |
49 |
| - max-block-size: 100%; |
| 48 | + max-inline-size: 100%; |
| 49 | + max-block-size: 100%; |
50 | 50 | }
|
51 | 51 |
|
52 | 52 | /* removes spacing between cells in tables */
|
53 | 53 | table {
|
54 |
| - border-collapse: collapse; |
| 54 | + border-collapse: collapse; |
55 | 55 | }
|
56 | 56 |
|
57 | 57 | /* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
|
58 | 58 | input, textarea {
|
59 |
| - -webkit-user-select: auto; |
| 59 | + -webkit-user-select: auto; |
60 | 60 | }
|
61 | 61 |
|
62 | 62 | /* revert the 'white-space' property for textarea elements on Safari */
|
63 | 63 | textarea {
|
64 |
| - white-space: revert; |
| 64 | + white-space: revert; |
65 | 65 | }
|
66 | 66 |
|
67 | 67 | /* minimum style to allow to style meter element */
|
68 | 68 | meter {
|
69 |
| - -webkit-appearance: revert; |
70 |
| - appearance: revert; |
| 69 | + -webkit-appearance: revert; |
| 70 | + appearance: revert; |
71 | 71 | }
|
72 | 72 |
|
73 | 73 | /* preformatted text - use only for this feature */
|
74 | 74 | :where(pre) {
|
75 |
| - all: revert; |
76 |
| - box-sizing: border-box; |
| 75 | + all: revert; |
| 76 | + box-sizing: border-box; |
77 | 77 | }
|
78 | 78 |
|
79 | 79 | /* reset default text opacity of input placeholder */
|
80 | 80 | ::placeholder {
|
81 |
| - color: unset; |
| 81 | + color: unset; |
82 | 82 | }
|
83 | 83 |
|
84 | 84 | /* fix the feature of 'hidden' attribute.
|
85 | 85 | display:revert; revert to element instead of attribute */
|
86 | 86 | :where([hidden]) {
|
87 |
| - display: none; |
| 87 | + display: none; |
88 | 88 | }
|
89 | 89 |
|
90 | 90 | /* revert for bug in Chromium browsers
|
91 | 91 | - fix for the content editable attribute will work properly.
|
92 | 92 | - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
|
93 | 93 | :where([contenteditable]:not([contenteditable="false"])) {
|
94 |
| - -moz-user-modify: read-write; |
95 |
| - -webkit-user-modify: read-write; |
96 |
| - overflow-wrap: break-word; |
97 |
| - -webkit-line-break: after-white-space; |
98 |
| - -webkit-user-select: auto; |
| 94 | + -moz-user-modify: read-write; |
| 95 | + -webkit-user-modify: read-write; |
| 96 | + overflow-wrap: break-word; |
| 97 | + -webkit-line-break: after-white-space; |
| 98 | + -webkit-user-select: auto; |
99 | 99 | }
|
100 | 100 |
|
101 | 101 | /* apply back the draggable feature - exist only in Chromium and Safari */
|
102 | 102 | :where([draggable="true"]) {
|
103 |
| - -webkit-user-drag: element; |
| 103 | + -webkit-user-drag: element; |
104 | 104 | }
|
105 | 105 |
|
106 | 106 | /* Revert Modal native behavior */
|
107 | 107 | :where(dialog:modal) {
|
108 |
| - all: revert; |
109 |
| - box-sizing: border-box; |
| 108 | + all: revert; |
| 109 | + box-sizing: border-box; |
110 | 110 | }
|
111 | 111 |
|
112 | 112 | /* Remove details summary webkit styles */
|
113 | 113 | ::-webkit-details-marker {
|
114 |
| - display: none; |
| 114 | + display: none; |
115 | 115 | }
|
0 commit comments