2020-03-27 13:59:38 -07:00
|
|
|
|
.dropdown-menu {
|
2020-05-28 17:58:37 -07:00
|
|
|
|
@include font-size(13);
|
|
|
|
|
@include line-height(26);
|
|
|
|
|
@include font-weight(normal);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
z-index: 9999;
|
|
|
|
|
position: absolute;
|
2020-05-31 19:05:00 -07:00
|
|
|
|
background: var(--background-color);
|
2020-05-31 13:51:20 -07:00
|
|
|
|
border-radius: 6px;
|
2020-05-15 20:48:08 -07:00
|
|
|
|
padding: 4px 0;
|
2020-05-31 19:05:00 -07:00
|
|
|
|
color: var(--primary-text-color);
|
2020-05-28 17:58:37 -07:00
|
|
|
|
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
|
2021-11-04 11:16:04 -07:00
|
|
|
|
max-width: 350px;
|
2020-10-11 14:23:19 -07:00
|
|
|
|
&.left { transform-origin: 100% 50%; }
|
|
|
|
|
&.top { transform-origin: 50% 100%; }
|
|
|
|
|
&.bottom { transform-origin: 50% 0; }
|
|
|
|
|
&.right { transform-origin: 0 50%; }
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&__arrow {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
border: 0 solid transparent;
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.left {
|
|
|
|
|
right: -5px;
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
border-width: 5px 0 5px 5px;
|
2020-05-31 19:05:00 -07:00
|
|
|
|
border-left-color: var(--background-color);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.top {
|
|
|
|
|
bottom: -5px;
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
border-width: 5px 5px 0;
|
2020-05-31 19:05:00 -07:00
|
|
|
|
border-top-color: var(--background-color);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.bottom {
|
|
|
|
|
top: -5px;
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
border-width: 0 5px 5px;
|
2020-05-31 19:05:00 -07:00
|
|
|
|
border-bottom-color: var(--background-color);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.right {
|
|
|
|
|
left: -5px;
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
border-width: 5px 5px 5px 0;
|
2020-05-31 19:05:00 -07:00
|
|
|
|
border-right-color: var(--background-color);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
ul {
|
|
|
|
|
overflow: hidden;
|
2021-12-11 10:41:42 -08:00
|
|
|
|
padding: 2px 0;
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2021-11-07 01:22:08 -08:00
|
|
|
|
&__item {
|
|
|
|
|
a {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
overflow: hidden;
|
2021-12-11 10:29:12 -08:00
|
|
|
|
margin: 0 6px;
|
|
|
|
|
padding: 4px 4px;
|
|
|
|
|
border-radius: 6px;
|
2021-11-07 01:22:08 -08:00
|
|
|
|
font-size: 15px;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
color: var(--primary-text-color);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
2021-11-04 11:16:04 -07:00
|
|
|
|
|
2021-11-07 01:22:08 -08:00
|
|
|
|
a {
|
|
|
|
|
&:focus,
|
|
|
|
|
&:hover,
|
|
|
|
|
&:active {
|
|
|
|
|
outline: 0;
|
|
|
|
|
color: #fff;
|
2021-12-11 10:29:12 -08:00
|
|
|
|
background: var(--brand-color);
|
2021-11-07 01:22:08 -08:00
|
|
|
|
|
|
|
|
|
* {
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.svg-icon:first-child {
|
|
|
|
|
height: 20px;
|
|
|
|
|
width: 20px;
|
|
|
|
|
min-width: 20px;
|
|
|
|
|
margin-right: 10px;
|
2021-11-04 13:27:55 -07:00
|
|
|
|
transition: none;
|
2021-11-07 01:22:08 -08:00
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
stroke-width: 1.5;
|
|
|
|
|
transition: none;
|
|
|
|
|
}
|
2021-11-04 11:16:04 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-11 10:29:12 -08:00
|
|
|
|
|
|
|
|
|
&.destructive a {
|
|
|
|
|
color: var(--warning-color--hicontrast);
|
|
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
|
&:hover,
|
|
|
|
|
&:active {
|
|
|
|
|
background: var(--warning-color);
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&__separator {
|
|
|
|
|
display: block;
|
|
|
|
|
margin: 10px !important;
|
|
|
|
|
height: 1px;
|
2021-11-04 11:16:04 -07:00
|
|
|
|
background: hsla(var(--primary-text-color_hsl), 0.12);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
2021-03-25 11:23:11 -07:00
|
|
|
|
|
|
|
|
|
&__item .account {
|
|
|
|
|
line-height: normal;
|
|
|
|
|
}
|
2020-03-27 13:59:38 -07:00
|
|
|
|
}
|
|
|
|
|
// end .dropdown-menu
|
|
|
|
|
|
|
|
|
|
// NOTE - not sure what this relates to — but it doesn't involve the navbar dropdown
|
|
|
|
|
|
|
|
|
|
.dropdown {
|
2020-05-15 20:48:08 -07:00
|
|
|
|
display: inline-block;
|
2020-03-27 13:59:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown__content {
|
2020-05-15 20:48:08 -07:00
|
|
|
|
display: none;
|
|
|
|
|
position: absolute;
|
2020-03-27 13:59:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown--active .dropdown__content {
|
2020-05-15 20:48:08 -07:00
|
|
|
|
display: block;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
max-width: 311px;
|
|
|
|
|
right: 0;
|
|
|
|
|
text-align: left;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
|
|
|
|
|
& > ul {
|
|
|
|
|
list-style: none;
|
2020-06-02 15:42:09 -07:00
|
|
|
|
background: var(--background-color);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
padding: 4px 0;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
|
|
|
|
|
min-width: 140px;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.dropdown__right {
|
|
|
|
|
right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.dropdown__left {
|
|
|
|
|
& > ul {
|
|
|
|
|
left: -98px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& > ul > li > a {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
display: block;
|
|
|
|
|
padding: 4px 14px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
text-decoration: none;
|
2020-06-02 15:42:09 -07:00
|
|
|
|
background: var(--background-color);
|
2020-06-02 18:12:36 -07:00
|
|
|
|
color: var(--primary-text-color);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2020-05-31 15:34:33 -07:00
|
|
|
|
background: var(--brand-color);
|
2020-06-06 20:55:00 -07:00
|
|
|
|
color: var(--primary-text-color--faint);
|
2020-05-15 20:48:08 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-03-27 13:59:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown__icon {
|
2020-05-15 20:48:08 -07:00
|
|
|
|
vertical-align: middle;
|
2020-03-27 13:59:38 -07:00
|
|
|
|
}
|