main
v0.0.1arrow_drop_down- Correct the line height in all browsers.
- Prevent adjustments of font size after orientation changes in iOS.
Remove the margin in all browsers.
Render the main
element consistently in IE.
Correct the font size and margin on h1
elements within section
and
article
contexts in Chrome, Firefox, and Safari.
- Add the correct box sizing in Firefox.
- Show the overflow in Edge and IE.
- Correct the inheritance and scaling of font size in all browsers.
- Correct the odd
em
font sizing in all browsers.
Remove the gray background on active links in IE 10.
- Remove the bottom border in Chrome 57-
- Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
Add the correct font weight in Chrome, Edge, and Safari.
- Correct the inheritance and scaling of font size in all browsers.
- Correct the odd
em
font sizing in all browsers.
Add the correct font size in all browsers.
Prevent sub
and sup
elements from affecting the line height in
all browsers.
Remove the border on images inside links in IE 10.
- Change the font styles in all browsers.
- Remove the margin in Firefox and Safari.
Show the overflow in IE.
- Show the overflow in Edge.
Remove the inheritance of text transform in Edge, Firefox, and IE.
- Remove the inheritance of text transform in Firefox.
Correct the inability to style clickable types in iOS and Safari.
Remove the inner border and padding in Firefox.
Restore the focus styles unset by the previous rule.
Correct the padding in Firefox.
- Correct the text wrapping in Edge and IE.
- Correct the color inheritance from
fieldset
elements in IE. - Remove the padding so developers are not caught out when they zero out
fieldset
elements in all browsers.
Add the correct vertical alignment in Chrome, Firefox, and Opera.
Remove the default vertical scrollbar in IE 10+.
- Add the correct box sizing in IE 10.
- Remove the padding in IE 10.
Correct the cursor style of increment and decrement buttons in Chrome.
- Correct the odd appearance in Chrome and Safari.
- Correct the outline style in Safari.
Remove the inner padding in Chrome and Safari on macOS.
- Correct the inability to style clickable types in iOS and Safari.
- Change font properties to
inherit
in Safari.
Add the correct display in IE 10+.
Add the correct display in IE 10.
Manually forked from SUIT CSS Base: https://github.com/suitcss/base A thin layer on top of normalize.css that provides a starting point more suitable for web applications.
Removes the default spacing and border for appropriate elements.
Work around a Firefox/IE bug where the transparent button
background
results in a loss of the default button
focus styles.
Tailwind custom reset styles
- Use the user’s configured
sans
font-family (with Tailwind’s default sans-serif font stack as a fallback) as a sane default. - Use Tailwind’s default “normal” line-height so the user isn’t forced to override it to ensure consistency even when using the default theme.
Prevent padding and border from affecting element width.
We used to set this in the html element and inherit from the parent element for everything else. This caused issues in shadow-dom-enhanced elements like
where the content is wrapped by a div with box-sizing set tocontent-box
.
Allow adding a border to an element by just adding a border-width.
By default, the way the browser specifies that an element should have no border is by setting it’s border-style to
none
in the user-agent stylesheet.In order to easily add borders to elements by just setting the
border-width
property, we change the default border-style for all elements tosolid
, and use border-width to hide them instead. This way ourborder
utilities only need to set theborder-width
property instead of the entireborder
shorthand, making our border utilities much more straightforward to compose.
Undo the border-style: none
reset that Normalize applies to images so that
our border-{width}
utilities have the expected effect.
The Normalize reset is unnecessary for us since we default the border-width to 0 on all elements.
Reset links to optimize for opt-in styling instead of opt-out.
Reset form element properties that are easy to forget to style explicitly so you don’t inadvertently introduce styles that deviate from your design system. These styles supplement a partial reset that is already applied by normalize.css.
Use the configured ‘mono’ font family for elements that are expected to be rendered with a monospace font, falling back to the system monospace stack if there is no configured ‘mono’ font family.
Make replaced elements display: block
by default as that’s
the behavior you want almost all of the time. Inspired by
CSS Remedy, with svg
added as well.
Constrain images and videos to the parent width and preserve their instrinsic aspect ratio.