bulma/sass/base/generic.sass

143 lines
2.5 KiB
Sass
Raw Normal View History

$body-background-color: $white !default
2017-07-28 20:44:46 +00:00
$body-size: 16px !default
2019-05-17 12:50:39 +00:00
$body-min-width: 300px !default
2017-07-28 20:44:46 +00:00
$body-rendering: optimizeLegibility !default
2017-08-14 10:26:48 +00:00
$body-family: $family-primary !default
2019-05-17 12:50:39 +00:00
$body-overflow-x: hidden !default
$body-overflow-y: scroll !default
2017-07-28 20:44:46 +00:00
$body-color: $text !default
2019-05-17 12:50:39 +00:00
$body-font-size: 1em !default
2017-07-28 20:44:46 +00:00
$body-weight: $weight-normal !default
$body-line-height: 1.5 !default
2017-08-14 10:26:48 +00:00
$code-family: $family-code !default
2017-07-28 20:44:46 +00:00
$code-padding: 0.25em 0.5em 0.25em !default
$code-weight: normal !default
$code-size: 0.875em !default
2019-05-17 12:50:39 +00:00
$small-font-size: 0.875em !default
2018-04-09 11:45:52 +00:00
$hr-background-color: $background !default
$hr-height: 2px !default
2017-07-28 20:44:46 +00:00
$hr-margin: 1.5rem 0 !default
$strong-color: $text-strong !default
$strong-weight: $weight-bold !default
2019-05-17 12:50:39 +00:00
$pre-font-size: 0.875em !default
$pre-padding: 1.25rem 1.5rem !default
$pre-code-font-size: 1em !default
2016-01-24 00:03:43 +00:00
html
2017-07-28 20:44:46 +00:00
background-color: $body-background-color
2016-10-30 19:20:51 +00:00
font-size: $body-size
2016-01-24 00:03:43 +00:00
-moz-osx-font-smoothing: grayscale
-webkit-font-smoothing: antialiased
2019-05-17 12:50:39 +00:00
min-width: $body-min-width
overflow-x: $body-overflow-x
overflow-y: $body-overflow-y
2017-07-28 20:44:46 +00:00
text-rendering: $body-rendering
text-size-adjust: 100%
2016-01-24 00:03:43 +00:00
2016-04-10 15:56:27 +00:00
article,
aside,
figure,
footer,
header,
hgroup,
section
display: block
2016-01-24 00:03:43 +00:00
body,
button,
input,
select,
textarea
2017-07-28 20:44:46 +00:00
font-family: $body-family
2016-01-24 00:03:43 +00:00
code,
pre
-moz-osx-font-smoothing: auto
-webkit-font-smoothing: auto
2017-07-28 20:44:46 +00:00
font-family: $code-family
2016-01-24 00:03:43 +00:00
body
2017-07-28 20:44:46 +00:00
color: $body-color
2019-05-17 12:50:39 +00:00
font-size: $body-font-size
2017-07-28 20:44:46 +00:00
font-weight: $body-weight
line-height: $body-line-height
2016-01-24 00:03:43 +00:00
2016-04-10 15:56:27 +00:00
// Inline
2016-01-24 00:03:43 +00:00
a
color: $link
cursor: pointer
text-decoration: none
2017-07-29 22:46:27 +00:00
strong
color: currentColor
2016-01-24 00:03:43 +00:00
&:hover
color: $link-hover
code
2016-06-29 22:59:48 +00:00
background-color: $code-background
2016-01-24 00:03:43 +00:00
color: $code
2017-07-28 20:44:46 +00:00
font-size: $code-size
font-weight: $code-weight
padding: $code-padding
2016-01-24 00:03:43 +00:00
hr
2017-07-28 20:44:46 +00:00
background-color: $hr-background-color
2016-09-22 22:14:18 +00:00
border: none
display: block
2017-07-28 20:44:46 +00:00
height: $hr-height
margin: $hr-margin
2016-01-24 00:03:43 +00:00
img
2017-07-19 21:52:22 +00:00
height: auto
2016-01-24 00:03:43 +00:00
max-width: 100%
input[type="checkbox"],
input[type="radio"]
vertical-align: baseline
small
2019-05-17 12:50:39 +00:00
font-size: $small-font-size
2016-01-24 00:03:43 +00:00
2016-05-05 21:23:08 +00:00
span
font-style: inherit
font-weight: inherit
2016-01-24 00:03:43 +00:00
strong
2017-07-28 20:44:46 +00:00
color: $strong-color
font-weight: $strong-weight
2016-01-24 00:03:43 +00:00
2016-04-10 15:56:27 +00:00
// Block
2016-01-24 00:03:43 +00:00
fieldset
border: none
2016-01-24 00:03:43 +00:00
pre
2017-09-18 21:54:26 +00:00
+overflow-touch
2016-06-29 22:59:48 +00:00
background-color: $pre-background
2016-01-24 00:03:43 +00:00
color: $pre
2019-05-17 12:50:39 +00:00
font-size: $pre-font-size
2017-09-18 21:54:26 +00:00
overflow-x: auto
2019-05-17 12:50:39 +00:00
padding: $pre-padding
2016-01-24 00:03:43 +00:00
white-space: pre
word-wrap: normal
code
2017-09-18 21:54:26 +00:00
background-color: transparent
color: currentColor
2019-05-17 12:50:39 +00:00
font-size: $pre-code-font-size
2017-09-18 21:54:26 +00:00
padding: 0
2016-01-24 00:03:43 +00:00
table
2016-04-10 15:56:27 +00:00
td,
th
2016-01-24 00:03:43 +00:00
vertical-align: top
&:not([align])
text-align: left
2016-01-24 00:03:43 +00:00
th
color: $text-strong