Skip to content

Commit d9983be

Browse files
authored
Tailwind-like default line heights.
1 parent 166f981 commit d9983be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

reset.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* ♻️ Tiny CSS Reset (https://github.com/gnat/css-reset-tiny) */
2-
*,*::before,*::after { box-sizing: border-box; margin: 0; min-width: 0; } /* Prevent padding and border from affecting element width. Remove margins. Remove random default min widths for input etc. */
3-
html { text-size-adjust: none; -webkit-text-size-adjust: none; -moz-text-size-adjust: none; tab-size: 4; } /* Prevent font size inflation on mobile. Sane tab size. */
4-
html,body { background: #aaa; } /* Disable screen flashbang. */
2+
*,::before,::after,::backdrop,::file-selector-button { box-sizing: border-box; margin: 0; } /* Prevent padding and border from affecting element width. Remove margins. */
3+
html { text-size-adjust: none; -webkit-text-size-adjust: none; -moz-text-size-adjust: none; tab-size: 4; line-height: 1.5; } /* Prevent font size inflation on mobile. Sane tab size, line height. */
4+
html,body { background: #aaa; line-height: inherit; } /* Disable screen flashbang. */
55
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6,label,table,td,th { padding: 0; } /* No padding. */
66
h1,h2,h3,h4,h5,h6,p { font-size: inherit; font-weight: inherit; overflow-wrap: break-word; } /* Reset all headers and <p>. */
7-
h1,h2,h3,h4 { text-wrap: balance; } /* Balance text on big headers. */
7+
h1,h2,h3,h4 { text-wrap: balance; line-height: 1; } /* Balance text on big headers. Reset line height. */
88
button,input,select,textarea { font: inherit; } /* No custom font on forms. */
99
img,picture,svg,video { height: auto; max-width: 100%; } /* Media should not break outside of parent. */
1010
audio,canvas,embed,iframe,img,object,svg,video { vertical-align: middle; } /* Removes tiny space on bottom. */
1111
table { text-indent: 0; border-color: inherit; border-collapse: collapse; border-spacing: 0; } /* Modern tables. */
12-
[hidden], style { display: none !important; } /* Hidden elements stay hidden. */
12+
[hidden],style { display: none !important; } /* Hidden elements stay hidden. */

0 commit comments

Comments
 (0)