Files
cinny/src/app/molecules/room-selector/RoomSelector.scss
T

97 lines
1.8 KiB
SCSS
Raw Normal View History

2021-08-31 18:43:31 +05:30
.room-selector-flex {
2021-08-29 13:57:55 +05:30
display: flex;
align-items: center;
}
2021-08-31 18:43:31 +05:30
.room-selector-flexItem {
2021-08-29 13:57:55 +05:30
flex: 1;
min-width: 0;
min-height: 0;
}
2021-08-31 18:43:31 +05:30
.room-selector {
@extend .room-selector-flex;
2021-08-29 13:57:55 +05:30
2021-07-28 18:45:52 +05:30
border: 1px solid transparent;
2021-08-29 13:57:55 +05:30
border-radius: var(--bo-radius);
2021-07-28 18:45:52 +05:30
cursor: pointer;
2021-09-09 17:35:39 +05:30
&--unread {
.room-selector__content > .text {
font-weight: 500;
color: var(--tc-surface-high);
}
}
2021-08-29 13:57:55 +05:30
&--selected {
background-color: var(--bg-surface);
border-color: var(--bg-surface-border);
2021-07-28 18:45:52 +05:30
2021-08-31 18:43:31 +05:30
& .room-selector__options {
2021-08-29 13:57:55 +05:30
display: flex;
2021-07-28 18:45:52 +05:30
}
}
@media (hover: hover) {
&:hover {
background-color: var(--bg-surface-hover);
2021-08-31 18:43:31 +05:30
& .room-selector__options {
2021-08-29 13:57:55 +05:30
display: flex;
}
2021-07-28 18:45:52 +05:30
}
}
2021-09-03 17:58:01 +05:30
&:focus-within {
2021-07-28 18:45:52 +05:30
background-color: var(--bg-surface-hover);
2021-09-03 17:58:01 +05:30
& button {
outline: none;
}
2021-07-28 18:45:52 +05:30
}
&:active {
background-color: var(--bg-surface-active);
}
2021-08-29 13:57:55 +05:30
&--selected:hover,
&--selected:focus,
&--selected:active {
background-color: var(--bg-surface);
}
2021-07-28 18:45:52 +05:30
}
2021-08-31 18:43:31 +05:30
.room-selector__content {
@extend .room-selector-flexItem;
@extend .room-selector-flex;
2021-08-29 13:57:55 +05:30
padding: 0 var(--sp-extra-tight);
min-height: 40px;
cursor: inherit;
& > .avatar-container .avatar__bordered {
box-shadow: none;
2021-07-28 18:45:52 +05:30
}
2021-08-29 13:57:55 +05:30
& > .text {
2021-08-31 18:43:31 +05:30
@extend .room-selector-flexItem;
2021-07-28 18:45:52 +05:30
margin: 0 var(--sp-extra-tight);
2021-09-25 18:18:58 +05:30
color: var(--tc-surface-normal-low);
2021-08-29 13:57:55 +05:30
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
2021-07-28 18:45:52 +05:30
}
}
2021-08-31 18:43:31 +05:30
.room-selector__options {
@extend .room-selector-flex;
2021-08-29 13:57:55 +05:30
display: none;
margin-right: var(--sp-ultra-tight);
2021-07-28 18:45:52 +05:30
2021-08-29 13:57:55 +05:30
[dir=rtl] & {
margin-right: 0;
margin-left: var(--sp-ultra-tight);
}
&:empty {
margin: 0 !important;
}
2021-09-05 18:56:34 +05:30
& .ic-btn {
2021-08-29 13:57:55 +05:30
padding: 6px;
border-radius: calc(var(--bo-radius) / 2);
}
2021-07-28 18:45:52 +05:30
}