Skip to content

Instantly share code, notes, and snippets.

@joallard
Last active May 20, 2020 22:57
Show Gist options
  • Save joallard/06f113b690d5553d90187a53bc38cb15 to your computer and use it in GitHub Desktop.
Save joallard/06f113b690d5553d90187a53bc38cb15 to your computer and use it in GitHub Desktop.
Bulma Dereset - Set, reset... dereset!
html
background: unset
li + li
margin-top: 0.25em
// Block
p,
dl,
ol,
ul,
blockquote,
pre,
table
&:not(:last-child)
margin-bottom: 1em
h1,
h2,
h3,
h4,
h5,
h6
color: #111
font-weight: bold
line-height: 1.125
h1
font-size: 2em
margin-bottom: 0.5em
&:not(:first-child)
margin-top: 1em
h2
font-size: 1.75em
margin-bottom: 0.5714em
&:not(:first-child)
margin-top: 1.1428em
h3
font-size: 1.5em
margin-bottom: 0.6666em
&:not(:first-child)
margin-top: 1.3333em
h4
font-size: 1.25em
margin-bottom: 0.8em
h5
font-size: 1.125em
margin-bottom: 0.8888em
ol
list-style-position: outside
margin-left: 2em
margin-top: 1em
&:not([type])
list-style-type: decimal
&.is-lower-alpha
list-style-type: lower-alpha
&.is-lower-roman
list-style-type: lower-roman
&.is-upper-alpha
list-style-type: upper-alpha
&.is-upper-roman
list-style-type: upper-roman
ul
list-style: disc outside
margin-left: 2em
margin-top: 1em
ul
list-style-type: circle
margin-top: 0.5em
ul
list-style-type: square
// Reasonable styles
blockquote
border-left: 3px solid hsl(0, 0%, 85.9%)
padding: 1.0em 1.5em
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment