bulma/sass/elements/box.sass

24 lines
589 B
Sass
Raw Normal View History

2017-07-13 18:44:35 +00:00
$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
2016-09-22 22:14:18 +00:00
+block
2017-07-13 18:44:35 +00:00
background-color: $box-background
border-radius: $box-radius
box-shadow: $box-shadow
color: $box
display: block
2016-10-29 17:53:30 +00:00
padding: 1.25rem
a.box
&:hover,
&:focus
2017-07-13 18:44:35 +00:00
box-shadow: $box-link-hover-shadow
&:active
2017-07-13 18:44:35 +00:00
box-shadow: $box-link-active-shadow