bulma/sass/elements/box.sass

38 lines
1.6 KiB
Sass
Raw Normal View History

2020-08-15 07:46:34 +00:00
$box-color: var(--text, #{$text}) !default
$box-background-color: var(--scheme-main, #{$scheme-main}) !default
$box-radius: var(--radius-large, #{$radius-large}) !default
2020-08-15 15:47:59 +00:00
$box-shadow-color: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.1) !default
$box-shadow-color-bis: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.02) !default
$box-shadow: 0 0.5em 1em -0.125em $box-shadow-color, 0 0px 0 1px $box-shadow-color-bis !default
$box-padding: 1.25rem !default
2017-07-13 18:44:35 +00:00
2020-08-15 15:47:59 +00:00
$box-link-hover-shadow-color: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.1) !default
$box-link-hover-shadow-color-bis: var(--link, #{$link}) !default
$box-link-hover-shadow: 0 0.5em 1em -0.125em $box-link-hover-shadow-color, 0 0 0 1px $box-link-hover-shadow-color-bis !default
$box-link-active-shadow-color: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.2) !default
$box-link-active-shadow-color-bis: var(--link, #{$link}) !default
$box-link-active-shadow: inset 0 1px 2px $box-link-active-shadow-color, 0 0 0 1px $box-link-active-shadow-color-bis !default
2017-07-13 18:44:35 +00:00
.box
2020-08-15 07:46:34 +00:00
--box-background-color: #{$box-background-color}
--box-radius: #{$box-radius}
--box-shadow: #{$box-shadow}
--box-color: #{$box-color}
--box-padding: #{$box-padding}
--box-link-hover-shadow: #{$box-link-hover-shadow}
--box-link-active-shadow: #{$box-link-active-shadow}
2018-09-04 13:24:50 +00:00
@extend %block
2020-08-15 07:46:34 +00:00
background-color: var(--box-background-color)
border-radius: var(--box-radius)
box-shadow: var(--box-shadow)
color: var(--box-color)
display: block
2020-08-15 07:46:34 +00:00
padding: var(--box-padding)
a.box
&:hover,
&:focus
2020-08-15 07:46:34 +00:00
box-shadow: var(--box-link-hover-shadow)
&:active
2020-08-15 07:46:34 +00:00
box-shadow: var(--box-link-active-shadow)