revite/src/styles/_context-menu.scss

104 lines
2.3 KiB
SCSS
Raw Normal View History

2021-06-19 15:24:11 -04:00
.preact-context-menu .context-menu {
z-index: 5000;
min-width: 190px;
2021-06-19 15:24:11 -04:00
padding: 6px 8px;
user-select: none;
font-size: 0.875rem;
2021-06-19 15:24:11 -04:00
color: var(--secondary-foreground);
2021-07-10 10:42:13 -04:00
border-radius: var(--border-radius);
//background: var(--primary-background) !important;
background-color: rgba(
var(--primary-background-rgb),
max(var(--min-opacity), 0.8)
);
backdrop-filter: blur(10px);
2021-06-19 15:24:11 -04:00
box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.05);
> span,
.main > span {
2021-06-19 15:24:11 -04:00
gap: 6px;
margin: 2px 0;
display: flex;
padding: 6px 8px;
align-items: center;
white-space: nowrap;
border-radius: calc(var(--border-radius) / 2);
2021-06-19 15:24:11 -04:00
&:not([data-disabled="true"]) {
cursor: pointer;
2021-06-19 15:24:11 -04:00
&:hover {
background-color: rgba(
var(--secondary-background-rgb),
max(var(--min-opacity), 0.75)
);
backdrop-filter: blur(10px);
2021-06-19 15:24:11 -04:00
}
}
.tip {
flex-grow: 1;
font-size: 0.65rem;
2021-06-19 15:24:11 -04:00
text-align: right;
color: var(--tertiary-foreground);
}
}
}
.context-menu.Status {
.header {
gap: 8px;
display: flex;
padding: 6px 8px;
font-weight: 600;
align-items: center;
color: var(--foreground);
.main {
flex-grow: 1;
display: flex;
flex-direction: column;
.username {
> div {
cursor: pointer;
width: fit-content;
}
}
}
.status {
cursor: pointer;
max-width: 132px;
font-size: 0.625rem;
color: var(--secondary-foreground);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
2021-06-19 15:24:11 -04:00
.indicator {
width: 8px;
height: 8px;
border-radius: var(--border-radius-half);
2021-06-19 15:24:11 -04:00
&.online {
background: var(--status-online);
}
&.idle {
background: var(--status-away);
}
&.busy {
background: var(--status-busy);
}
&.invisible {
background: var(--status-invisible);
}
}
}