2017-07-20 19:01:55 +00:00
|
|
|
$dropdown-content-background: $white !default
|
|
|
|
$dropdown-content-arrow: $link !default
|
|
|
|
$dropdown-content-offset: 4px !default
|
|
|
|
$dropdown-content-radius: $radius !default
|
|
|
|
$dropdown-content-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
|
|
|
|
$dropdown-content-z: 20 !default
|
|
|
|
|
|
|
|
$dropdown-item: $grey-dark !default
|
|
|
|
$dropdown-item-hover: $black !default
|
|
|
|
$dropdown-item-hover-background: $background !default
|
2017-07-24 10:34:43 +00:00
|
|
|
$dropdown-item-active: $primary-invert !default
|
|
|
|
$dropdown-item-active-background: $primary !default
|
2017-07-20 19:01:55 +00:00
|
|
|
|
|
|
|
$dropdown-divider-background: $border !default
|
|
|
|
|
|
|
|
.dropdown
|
|
|
|
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-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
|
|
|
|
left: 0
|
|
|
|
max-width: 20rem
|
|
|
|
min-width: 12rem
|
|
|
|
padding-top: $dropdown-content-offset
|
|
|
|
position: absolute
|
|
|
|
top: 100%
|
|
|
|
width: 100%
|
|
|
|
z-index: $dropdown-content-z
|
|
|
|
|
|
|
|
.dropdown-content
|
|
|
|
background-color: $dropdown-content-background
|
|
|
|
border-radius: $dropdown-content-radius
|
|
|
|
box-shadow: $dropdown-content-shadow
|
|
|
|
padding-bottom: 0.5rem
|
|
|
|
padding-top: 0.5rem
|
|
|
|
|
|
|
|
.dropdown-item
|
|
|
|
color: $dropdown-item
|
|
|
|
display: block
|
|
|
|
font-size: 0.875rem
|
|
|
|
line-height: 1.5
|
|
|
|
padding: 0.375rem 1rem
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
a.dropdown-item
|
|
|
|
padding-right: 3rem
|
|
|
|
white-space: nowrap
|
2017-07-24 10:34:43 +00:00
|
|
|
&:hover
|
2017-07-20 19:01:55 +00:00
|
|
|
background-color: $dropdown-item-hover-background
|
|
|
|
color: $dropdown-item-hover
|
2017-07-24 10:34:43 +00:00
|
|
|
&.is-active
|
|
|
|
background-color: $dropdown-item-active-background
|
|
|
|
color: $dropdown-item-active
|
2017-07-20 19:01:55 +00:00
|
|
|
|
|
|
|
.dropdown-divider
|
|
|
|
background-color: $dropdown-divider-background
|
|
|
|
border: none
|
|
|
|
display: block
|
|
|
|
height: 1px
|
|
|
|
margin: 0.5rem 0
|