bulma/sass/elements/box.sass
Jeremy Thomas fccdedc66b Fix #861
2017-07-13 19:44:35 +01:00

24 lines
589 B
Sass

$box: $text !default
$box-background: $white !default
$box-radius: $radius-large !default
$box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
$box-link-hover-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link
$box-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link
.box
+block
background-color: $box-background
border-radius: $box-radius
box-shadow: $box-shadow
color: $box
display: block
padding: 1.25rem
a.box
&:hover,
&:focus
box-shadow: $box-link-hover-shadow
&:active
box-shadow: $box-link-active-shadow