open-vault/ui/app/styles/components/popup-menu.scss

149 lines
2.6 KiB
SCSS
Raw Normal View History

2018-04-03 14:16:57 +00:00
.popup-menu-content {
border-radius: 2px;
margin: -2px 0 0 0;
2018-05-24 23:10:19 +00:00
2018-04-03 14:16:57 +00:00
& > .box {
border-radius: 2px;
2018-05-24 23:10:19 +00:00
box-shadow: $box-shadow, $box-shadow-middle;
2018-04-03 14:16:57 +00:00
padding: 0;
position: relative;
width: 200px;
2018-04-03 14:16:57 +00:00
}
2018-05-24 23:10:19 +00:00
2018-04-03 14:16:57 +00:00
&.is-wide > .box {
width: $drawer-width;
2018-04-03 14:16:57 +00:00
}
.confirm-action span .button {
display: block;
margin: .25rem auto;
width: 95%;
}
2018-05-24 23:10:19 +00:00
.menu {
2018-05-25 15:36:23 +00:00
padding: $size-11 0;
2018-05-24 23:10:19 +00:00
button.link,
a,
.menu-item {
2018-05-25 15:36:23 +00:00
background: transparent;
2018-05-24 23:10:19 +00:00
box-shadow: none;
border: none;
2018-05-25 15:36:23 +00:00
display: block;
2018-05-24 23:10:19 +00:00
height: auto;
2018-05-25 15:36:23 +00:00
font-size: $size-7;
font-weight: $font-weight-semibold;
padding: $size-9 $size-8;
2018-05-24 23:10:19 +00:00
text-align: left;
text-decoration: none;
2018-05-25 15:36:23 +00:00
width: 100%;
}
2018-04-03 14:16:57 +00:00
button.link,
a {
color: $menu-item-color;
2018-05-24 23:10:19 +00:00
&:hover {
background-color: $menu-item-hover-background-color;
color: $menu-item-hover-color;
}
2018-04-03 14:16:57 +00:00
2018-05-24 23:10:19 +00:00
&.is-active {
background-color: $menu-item-active-background-color;
color: $menu-item-active-color;
}
&.is-destroy {
color: $red;
2018-04-03 14:16:57 +00:00
2018-05-24 23:10:19 +00:00
&:hover {
background-color: $red;
color: $white;
}
}
&.disabled {
opacity: 0.5;
&:hover {
background: transparent;
cursor: default;
}
}
}
small code {
margin-left: $spacing-xs;
2018-04-03 14:16:57 +00:00
}
}
2018-05-24 23:10:19 +00:00
.menu-label {
2018-05-25 15:36:23 +00:00
color: $grey-dark;
font-size: $size-9;
font-weight: $font-weight-normal;
2018-05-24 23:10:19 +00:00
letter-spacing: 0;
margin: 0;
padding: $size-10 $size-8 0;
text-transform: uppercase;
2018-05-24 23:10:19 +00:00
}
2018-05-25 15:36:23 +00:00
.menu-content {
padding: $size-10 $size-8;
}
hr {
background-color: $ui-gray-200;
margin: 0;
2018-05-24 23:10:19 +00:00
}
2018-04-03 14:16:57 +00:00
}
2018-05-24 23:10:19 +00:00
.popup-menu-content p {
box-shadow: none;
padding-top: $size-10;
font-weight: $font-weight-semibold;
}
.popup-menu-content .level-left {
flex-shrink: 1;
}
2018-05-24 23:10:19 +00:00
.popup-menu-trigger {
2018-05-25 15:36:23 +00:00
height: 2rem;
min-width: 0;
padding: 0 $size-10;
}
.status-menu-content {
margin-top: 8px;
.box {
@include until($mobile) {
width: $drawer-width - ($spacing-xs * 2);
}
}
2018-04-03 14:16:57 +00:00
}
2018-05-24 23:10:19 +00:00
2018-05-25 15:36:23 +00:00
.ember-basic-dropdown-content {
&--left.popup-menu {
margin: 0px 0 0 -8px;
}
&--below {
&.ember-basic-dropdown--transitioning-in {
animation: drop-fade-above .15s;
}
&.ember-basic-dropdown--transitioning-out {
animation: drop-fade-above .15s reverse;
}
}
&--above {
&.ember-basic-dropdown--transitioning-in {
animation: drop-fade-below .15s;
}
&.ember-basic-dropdown--transitioning-out {
animation: drop-fade-below .15s reverse;
}
}
2018-04-03 14:16:57 +00:00
}