2021-12-19 05:58:41 +01:00
|
|
|
@use '../../partials/flex';
|
|
|
|
@use '../../partials/text';
|
|
|
|
@use '../../partials/dir';
|
2021-08-29 10:27:55 +02:00
|
|
|
|
2021-08-31 15:13:31 +02:00
|
|
|
.room-selector {
|
2021-12-19 05:58:41 +01:00
|
|
|
@extend .cp-fx__row--s-c;
|
2021-08-29 10:27:55 +02:00
|
|
|
|
2021-07-28 15:15:52 +02:00
|
|
|
border: 1px solid transparent;
|
2021-08-29 10:27:55 +02:00
|
|
|
border-radius: var(--bo-radius);
|
2021-07-28 15:15:52 +02:00
|
|
|
cursor: pointer;
|
2021-09-09 14:05:39 +02:00
|
|
|
|
2022-03-15 12:51:36 +01:00
|
|
|
&--muted {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
|
2021-09-09 14:05:39 +02:00
|
|
|
&--unread {
|
|
|
|
.room-selector__content > .text {
|
|
|
|
color: var(--tc-surface-high);
|
|
|
|
}
|
|
|
|
}
|
2021-08-29 10:27:55 +02:00
|
|
|
|
|
|
|
&--selected {
|
|
|
|
background-color: var(--bg-surface);
|
|
|
|
border-color: var(--bg-surface-border);
|
2021-07-28 15:15:52 +02:00
|
|
|
|
2021-08-31 15:13:31 +02:00
|
|
|
& .room-selector__options {
|
2021-08-29 10:27:55 +02:00
|
|
|
display: flex;
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (hover: hover) {
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--bg-surface-hover);
|
2021-08-31 15:13:31 +02:00
|
|
|
& .room-selector__options {
|
2021-08-29 10:27:55 +02:00
|
|
|
display: flex;
|
|
|
|
}
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
}
|
2021-09-03 14:28:01 +02:00
|
|
|
&:focus-within {
|
2021-07-28 15:15:52 +02:00
|
|
|
background-color: var(--bg-surface-hover);
|
2021-09-03 14:28:01 +02:00
|
|
|
& button {
|
|
|
|
outline: none;
|
|
|
|
}
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: var(--bg-surface-active);
|
|
|
|
}
|
2021-08-29 10:27:55 +02:00
|
|
|
&--selected:hover,
|
|
|
|
&--selected:focus,
|
|
|
|
&--selected:active {
|
|
|
|
background-color: var(--bg-surface);
|
|
|
|
}
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
|
2021-08-31 15:13:31 +02:00
|
|
|
.room-selector__content {
|
2021-12-19 05:58:41 +01:00
|
|
|
@extend .cp-fx__item-one;
|
|
|
|
@extend .cp-fx__row--s-c;
|
2021-08-29 10:27:55 +02:00
|
|
|
padding: 0 var(--sp-extra-tight);
|
|
|
|
min-height: 40px;
|
|
|
|
cursor: inherit;
|
|
|
|
|
2021-12-19 05:58:41 +01:00
|
|
|
& > .avatar-container .avatar__border--active {
|
2021-08-29 10:27:55 +02:00
|
|
|
box-shadow: none;
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
2021-08-29 10:27:55 +02:00
|
|
|
|
|
|
|
& > .text {
|
2021-12-19 05:58:41 +01:00
|
|
|
@extend .cp-fx__item-one;
|
|
|
|
@extend .cp-txt__ellipsis;
|
2021-07-28 15:15:52 +02:00
|
|
|
margin: 0 var(--sp-extra-tight);
|
|
|
|
|
2021-09-25 14:48:58 +02:00
|
|
|
color: var(--tc-surface-normal-low);
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
}
|
2021-08-31 15:13:31 +02:00
|
|
|
.room-selector__options {
|
2021-12-19 05:58:41 +01:00
|
|
|
@extend .cp-fx__row--s-c;
|
|
|
|
@include dir.side(margin, 0, var(--sp-ultra-tight));
|
2021-08-29 10:27:55 +02:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:empty {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
|
2021-09-05 15:26:34 +02:00
|
|
|
& .ic-btn {
|
2021-08-29 10:27:55 +02:00
|
|
|
padding: 6px;
|
|
|
|
border-radius: calc(var(--bo-radius) / 2);
|
|
|
|
}
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|