cinny/src/app/molecules/channel-selector/ChannelSelector.scss

60 lines
1.1 KiB
SCSS
Raw Normal View History

2021-07-28 15:15:52 +02:00
.channel-selector__button-wrapper {
display: block;
width: calc(100% - var(--sp-extra-tight));
margin-left: auto;
padding: var(--sp-extra-tight) var(--sp-extra-tight);
2021-08-05 05:13:38 +02:00
2021-07-28 15:15:52 +02:00
border: 1px solid transparent;
border-radius: var(--bo-radius);
cursor: pointer;
[dir=rtl] & {
2021-08-05 05:13:38 +02:00
2021-07-28 15:15:52 +02:00
margin: {
left: 0;
right: auto;
}
}
@media (hover: hover) {
&:hover {
background-color: var(--bg-surface-hover);
}
}
&:focus {
outline: none;
background-color: var(--bg-surface-hover);
}
&:active {
background-color: var(--bg-surface-active);
}
}
.channel-selector {
display: flex;
align-items: center;
&__icon {
width: 24px;
height: 24px;
.avatar__border {
box-shadow: none;
}
}
&__text-container {
flex: 1;
min-width: 0;
margin: 0 var(--sp-extra-tight);
& .text {
color: var(--tc-surface-normal);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
.channel-selector--selected {
background-color: var(--bg-surface);
border-color: var(--bg-surface-border);
}