2018-11-23 05:41:34 +00:00
|
|
|
// Default styles for all elements.
|
|
|
|
*
|
|
|
|
margin 0
|
|
|
|
padding 0
|
2016-11-27 14:28:22 +00:00
|
|
|
border 0
|
2018-11-23 05:41:34 +00:00
|
|
|
outline 0
|
|
|
|
box-sizing inherit
|
2016-11-27 14:28:22 +00:00
|
|
|
font inherit
|
|
|
|
|
2019-08-29 03:23:58 +00:00
|
|
|
// This breaks accessibility, but is needed to ensure a consistent style.
|
|
|
|
// Make sure you add your own focus styles.
|
|
|
|
::-moz-focus-inner
|
|
|
|
border 0
|
|
|
|
|
2018-11-23 05:41:34 +00:00
|
|
|
// Set root element to use border-box sizing,
|
|
|
|
// all sub-elements will inherit this property.
|
2016-11-27 14:28:22 +00:00
|
|
|
html
|
|
|
|
box-sizing border-box
|
|
|
|
|
2018-11-23 05:41:34 +00:00
|
|
|
// Make sure that textarea is resized vertically only
|
2016-11-27 14:28:22 +00:00
|
|
|
textarea
|
|
|
|
resize vertical
|
|
|
|
|
2018-11-23 05:41:34 +00:00
|
|
|
// Set default line height and font smoothing
|
2016-11-27 14:28:22 +00:00
|
|
|
body
|
|
|
|
line-height 1
|
|
|
|
-webkit-font-smoothing antialiased
|
|
|
|
-moz-osx-font-smoothing grayscale
|
|
|
|
|
2018-11-23 05:41:34 +00:00
|
|
|
// Without this, table borders aren't shown
|
2016-11-27 14:28:22 +00:00
|
|
|
table
|
|
|
|
border-collapse collapse
|
|
|
|
border-spacing 0
|
|
|
|
|
2018-11-23 05:41:34 +00:00
|
|
|
// Align these elements in the vertical center of the text flow
|
2016-11-27 14:28:22 +00:00
|
|
|
audio, canvas, img, video, input, select
|
|
|
|
vertical-align middle
|