2019-05-17 12:50:39 +00:00
|
|
|
$dropdown-menu-min-width: 12rem !default
|
|
|
|
|
2020-08-22 09:19:21 +00:00
|
|
|
$dropdown-content-background-color: var(--scheme-main, #{$scheme-main}) !default
|
|
|
|
$dropdown-content-arrow: var(--link, #{$link}) !default
|
2017-07-20 19:01:55 +00:00
|
|
|
$dropdown-content-offset: 4px !default
|
2019-05-17 12:50:39 +00:00
|
|
|
$dropdown-content-padding-bottom: 0.5rem !default
|
|
|
|
$dropdown-content-padding-top: 0.5rem !default
|
2020-08-22 09:19:21 +00:00
|
|
|
$dropdown-content-radius: var(--radius, #{$radius}) !default
|
|
|
|
$dropdown-content-shadow-color: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.1) !default
|
|
|
|
$dropdown-content-shadow-color-bis: rgba(var(--scheme-invert-rgb, #{bulmaToRGB($black)}), 0.02) !default
|
|
|
|
$dropdown-content-shadow: 0 0.5em 1em -0.125em $dropdown-content-shadow-color, 0 0px 0 1px $dropdown-content-shadow-color-bis !default
|
2017-07-20 19:01:55 +00:00
|
|
|
$dropdown-content-z: 20 !default
|
|
|
|
|
2020-08-22 09:19:21 +00:00
|
|
|
$dropdown-item-color: var(--text, #{$text}) !default
|
|
|
|
$dropdown-item-hover-color: var(--scheme-invert, #{$scheme-invert}) !default
|
|
|
|
$dropdown-item-hover-background-color: var(--background, #{$background}) !default
|
|
|
|
$dropdown-item-active-color: var(--link-invert, #{$link-invert}) !default
|
|
|
|
$dropdown-item-active-background-color: var(--link, #{$link}) !default
|
2017-07-20 19:01:55 +00:00
|
|
|
|
2020-08-22 09:19:21 +00:00
|
|
|
$dropdown-divider-background-color: var(--border-light, #{$border-light}) !default
|
2017-07-20 19:01:55 +00:00
|
|
|
|
|
|
|
.dropdown
|
2020-08-22 09:19:21 +00:00
|
|
|
--dropdown-content-offset: #{$dropdown-content-offset}
|
|
|
|
--dropdown-menu-min-width: #{$dropdown-menu-min-width}
|
|
|
|
--dropdown-content-offset: #{$dropdown-content-offset}
|
|
|
|
--dropdown-content-z: #{$dropdown-content-z}
|
|
|
|
--dropdown-content-background-color: #{$dropdown-content-background-color}
|
|
|
|
--dropdown-content-radius: #{$dropdown-content-radius}
|
|
|
|
--dropdown-content-shadow: #{$dropdown-content-shadow}
|
|
|
|
--dropdown-content-padding-bottom: #{$dropdown-content-padding-bottom}
|
|
|
|
--dropdown-content-padding-top: #{$dropdown-content-padding-top}
|
|
|
|
--dropdown-item-color: #{$dropdown-item-color}
|
|
|
|
--dropdown-item-hover-background-color: #{$dropdown-item-hover-background-color}
|
|
|
|
--dropdown-item-hover-color: #{$dropdown-item-hover-color}
|
|
|
|
--dropdown-item-active-background-color: #{$dropdown-item-active-background-color}
|
|
|
|
--dropdown-item-active-color: #{$dropdown-item-active-color}
|
|
|
|
--dropdown-divider-background-color: #{$dropdown-divider-background-color}
|
2017-07-20 19:01:55 +00:00
|
|
|
display: inline-flex
|
|
|
|
position: relative
|
|
|
|
vertical-align: top
|
|
|
|
&.is-active,
|
|
|
|
&.is-hoverable:hover
|
2017-07-21 09:44:49 +00:00
|
|
|
.dropdown-menu
|
2017-07-20 19:01:55 +00:00
|
|
|
display: block
|
2017-07-24 10:54:00 +00:00
|
|
|
&.is-right
|
|
|
|
.dropdown-menu
|
|
|
|
left: auto
|
|
|
|
right: 0
|
2017-10-07 16:02:49 +00:00
|
|
|
&.is-up
|
|
|
|
.dropdown-menu
|
|
|
|
bottom: 100%
|
2020-08-22 09:19:21 +00:00
|
|
|
padding-bottom: var(--dropdown-content-offset)
|
2018-02-02 15:23:34 +00:00
|
|
|
padding-top: initial
|
2017-10-07 16:04:38 +00:00
|
|
|
top: auto
|
2017-07-20 19:01:55 +00:00
|
|
|
|
2017-07-21 09:44:49 +00:00
|
|
|
.dropdown-menu
|
2017-07-20 19:01:55 +00:00
|
|
|
display: none
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-position(0, false)
|
2020-08-22 09:19:21 +00:00
|
|
|
min-width: var(--dropdown-menu-min-width)
|
|
|
|
padding-top: var(--dropdown-content-offset)
|
2017-07-20 19:01:55 +00:00
|
|
|
position: absolute
|
|
|
|
top: 100%
|
2020-08-22 09:19:21 +00:00
|
|
|
z-index: var(--dropdown-content-z)
|
2017-07-20 19:01:55 +00:00
|
|
|
|
|
|
|
.dropdown-content
|
2020-08-22 09:19:21 +00:00
|
|
|
background-color: var(--dropdown-content-background-color)
|
|
|
|
border-radius: var(--dropdown-content-radius)
|
|
|
|
box-shadow: var(--dropdown-content-shadow)
|
|
|
|
padding-bottom: var(--dropdown-content-padding-bottom)
|
|
|
|
padding-top: var(--dropdown-content-padding-top)
|
2017-07-20 19:01:55 +00:00
|
|
|
|
|
|
|
.dropdown-item
|
2020-08-22 09:19:21 +00:00
|
|
|
color: var(--dropdown-item-color)
|
2017-07-20 19:01:55 +00:00
|
|
|
display: block
|
|
|
|
font-size: 0.875rem
|
|
|
|
line-height: 1.5
|
|
|
|
padding: 0.375rem 1rem
|
|
|
|
position: relative
|
|
|
|
|
2018-08-29 09:41:37 +00:00
|
|
|
a.dropdown-item,
|
|
|
|
button.dropdown-item
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-property("padding", 3rem)
|
2020-01-20 19:39:09 +00:00
|
|
|
text-align: inherit
|
2017-07-20 19:01:55 +00:00
|
|
|
white-space: nowrap
|
2018-08-29 09:41:37 +00:00
|
|
|
width: 100%
|
2020-08-23 11:08:53 +00:00
|
|
|
&:hover:not(.is-active)
|
2020-08-22 09:19:21 +00:00
|
|
|
background-color: var(--dropdown-item-hover-background-color)
|
|
|
|
color: var(--dropdown-item-hover-color)
|
2017-07-24 10:34:43 +00:00
|
|
|
&.is-active
|
2020-08-22 09:19:21 +00:00
|
|
|
background-color: var(--dropdown-item-active-background-color)
|
|
|
|
color: var(--dropdown-item-active-color)
|
2017-07-20 19:01:55 +00:00
|
|
|
|
|
|
|
.dropdown-divider
|
2020-08-22 09:19:21 +00:00
|
|
|
background-color: var(--dropdown-divider-background-color)
|
2017-07-20 19:01:55 +00:00
|
|
|
border: none
|
|
|
|
display: block
|
|
|
|
height: 1px
|
|
|
|
margin: 0.5rem 0
|