forked from naradesign/css-reset-by-class
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss-reset-by-class.css
More file actions
52 lines (48 loc) · 1.33 KB
/
css-reset-by-class.css
File metadata and controls
52 lines (48 loc) · 1.33 KB
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
/* Reset body */
body {
margin: 0;
overflow-wrap: break-word;
}
/* Do not break Korean words */
:lang(ko) { word-break: keep-all; }
/* Reset img */
img {
max-width: 100%;
height: auto;
}
/* CSS Reset by [class] */
[class] {
margin: 0;
padding: 0;
box-sizing: border-box;
list-style: none; /* ol, ul */
border: 0; /* button, fieldset, iframe, input, select, table, textarea */
background-color: transparent; /* button, dialog, mark, meter, progress */
border-collapse: collapse; /* table */
border-spacing: 0; /* table */
-webkit-appearance: none;
appearance: none; /* button, input, meter, progress, select, textarea */
}
[class]::before,
[class]::after { box-sizing: border-box; }
/* CSS Reset by [class] - Will be used when Samsung Internet supports it.
[class] {
margin: 0;
padding: 0;
box-sizing: border-box;
}
[class]::before,
[class]::after { box-sizing: border-box; }
[class]:where(ol, ul) { list-style: none; }
[class]:where(button, fieldset, iframe, input, select, textarea) { border: 0; }
[class]:where(button, dialog, input, mark, meter, progress) { background-color: transparent; }
[class]:where(table) {
border: 0;
border-collapse: collapse;
border-spacing: 0;
}
[class]:where(button, input, meter, progress, select, textarea) {
-webkit-appearance: none;
appearance: none;
}
*/