Files
cinny/src/app/atoms/context-menu/ContextMenu.scss
T

81 lines
1.6 KiB
SCSS
Raw Normal View History

2021-12-24 15:05:56 +05:30
@use '../../partials/flex';
2021-12-19 10:28:41 +05:30
@use '../../partials/text';
@use '../../partials/dir';
2021-07-28 18:45:52 +05:30
.context-menu {
background-color: var(--bg-surface);
box-shadow: var(--bs-popup);
border-radius: var(--bo-radius);
overflow: hidden;
&:focus {
outline: none;
}
& .tippy-content > div > .scrollbar {
max-height: 90vh;
}
}
.context-menu__click-wrapper {
display: inline-flex;
&:focus {
outline: none;
}
}
.context-menu__header {
height: 34px;
2021-12-24 15:05:56 +05:30
padding: 0 var(--sp-normal);
2021-07-28 18:45:52 +05:30
margin-bottom: var(--sp-ultra-tight);
display: flex;
align-items: center;
border-bottom: 1px solid var(--bg-surface-border);
.text {
2021-12-19 10:28:41 +05:30
@extend .cp-txt__ellipsis;
2021-07-28 18:45:52 +05:30
color: var(--tc-surface-low);
}
&:not(:first-child) {
2021-12-24 15:05:56 +05:30
margin-top: var(--sp-extra-tight);
2021-07-28 18:45:52 +05:30
border-top: 1px solid var(--bg-surface-border);
}
}
.context-menu__item {
2021-12-24 15:05:56 +05:30
display: flex;
2021-07-28 18:45:52 +05:30
button[class^="btn"] {
2021-12-24 15:05:56 +05:30
@extend .cp-fx__item-one;
2021-11-19 10:00:47 +05:30
justify-content: flex-start;
2021-07-28 18:45:52 +05:30
border-radius: 0;
box-shadow: none;
2021-08-20 19:12:57 +05:30
white-space: nowrap;
2021-12-24 15:05:56 +05:30
padding: var(--sp-extra-tight) var(--sp-normal);
& > .ic-raw {
@include dir.side(margin, 0, var(--sp-tight));
}
2021-07-28 18:45:52 +05:30
2021-12-24 15:05:56 +05:30
// if item doesn't have icon
2021-07-28 18:45:52 +05:30
.text:first-child {
2021-12-19 10:28:41 +05:30
@include dir.side(
margin,
2021-12-24 15:05:56 +05:30
calc(var(--ic-small) + var(--sp-tight)),
0
2021-12-19 10:28:41 +05:30
);
2021-07-28 18:45:52 +05:30
}
}
.btn-surface:focus {
background-color: var(--bg-surface-hover);
}
2021-12-24 15:05:56 +05:30
.btn-positive:focus {
background-color: var(--bg-positive-hover);
}
2021-07-28 18:45:52 +05:30
.btn-caution:focus {
background-color: var(--bg-caution-hover);
}
.btn-danger:focus {
background-color: var(--bg-danger-hover);
}
}