2020-03-27 13:59:38 -07:00
|
|
|
|
.dropdown-menu {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply absolute bg-white dark:bg-slate-900 z-40 rounded-md shadow-lg py-1 w-56;
|
2022-03-21 11:09:01 -07:00
|
|
|
|
|
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 {
|
2022-03-21 11:09:01 -07:00
|
|
|
|
@apply absolute w-0 h-0;
|
2020-05-15 20:48:08 -07:00
|
|
|
|
border: 0 solid transparent;
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.left {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply border-l-white dark:border-l-slate-900;
|
2020-05-15 20:48:08 -07:00
|
|
|
|
right: -5px;
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
border-width: 5px 0 5px 5px;
|
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.top {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply border-t-white dark:border-t-slate-900;
|
2020-05-15 20:48:08 -07:00
|
|
|
|
bottom: -5px;
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
border-width: 5px 5px 0;
|
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.bottom {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply border-b-white dark:border-b-slate-900;
|
2020-05-15 20:48:08 -07:00
|
|
|
|
top: -5px;
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
border-width: 0 5px 5px;
|
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
&.right {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply border-r-white dark:border-r-slate-900;
|
2020-05-15 20:48:08 -07:00
|
|
|
|
left: -5px;
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
border-width: 5px 5px 5px 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2020-05-15 20:48:08 -07:00
|
|
|
|
ul {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2020-05-28 17:58:37 -07:00
|
|
|
|
|
2021-11-07 01:22:08 -08:00
|
|
|
|
&__item {
|
|
|
|
|
a {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply flex px-4 py-2.5 text-sm text-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-slate-800 cursor-pointer;
|
2021-11-04 11:16:04 -07:00
|
|
|
|
|
2022-03-05 11:55:41 -08:00
|
|
|
|
> .svg-icon:first-child {
|
2022-03-21 11:09:01 -07:00
|
|
|
|
@apply h-5 w-5 mr-2.5 transition-none;
|
2021-11-07 01:22:08 -08:00
|
|
|
|
|
|
|
|
|
svg {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply stroke-[1.5px] transition-none;
|
2021-11-07 01:22:08 -08:00
|
|
|
|
}
|
2021-11-04 11:16:04 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-11 10:29:12 -08:00
|
|
|
|
|
|
|
|
|
&.destructive a {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply text-danger-600 dark:text-danger-400;
|
2021-12-11 10:29:12 -08:00
|
|
|
|
}
|
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 {
|
2022-03-30 06:07:17 -07:00
|
|
|
|
@apply block my-2 h-[1px] bg-gray-200 dark:bg-gray-600;
|
2021-03-25 11:23:11 -07:00
|
|
|
|
}
|
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
|
|
|
|
}
|