Files
lila/ui/msg/css/_side.scss

131 lines
2.1 KiB
SCSS

.msg-app {
&__side {
@extend %flex-column;
@include prevent-select;
flex: 0 0 50ch;
@media (max-width: at-most($medium)) {
flex: 0 0 40ch;
}
@media (max-width: at-most($small)) {
flex: 1 0 100%;
display: none;
.pane-side & {
display: flex;
}
}
background: $c-bg-zebra;
overflow: hidden;
border-inline-end: $border;
::-webkit-scrollbar,
::-webkit-scrollbar-corner {
background: $c-bg-zebra;
}
&__search {
@extend %flex-center;
flex: 0 0 $msg-top-height;
background: $c-bg-zebra2;
border-bottom: $border;
overflow-y: auto;
input {
@extend %msg-input-focus;
width: 100%;
margin: auto 2em;
border-radius: 99px;
background: $c-bg-box;
padding: 0.6em 1.2em;
}
}
&__content {
overflow-y: auto;
}
&__contact {
@extend %flex-center-nowrap;
cursor: pointer;
&:hover {
background: $m-secondary_bg--mix-15;
}
&:active,
&.active {
background: $m-secondary_bg--mix-30;
}
.user-link {
flex: 0 0 auto;
font-size: 2.3em;
}
&__user {
@extend %nowrap-ellipsis;
@include padding-direction(0.8em, 1.5em, 0.8em, 0);
flex: 1 1 auto;
}
&__head {
@extend %flex-between-nowrap;
}
&__date {
flex: 0 0 auto;
time {
opacity: 1;
color: $c-font-dim;
letter-spacing: -0.5px;
}
}
&__name {
@extend %nowrap-ellipsis;
flex: 1 1 auto;
color: $c-font-clear;
font-size: 1.2em;
}
&__body {
@extend %flex-between-nowrap;
height: 1.4em;
}
&__msg {
@extend %roboto, %nowrap-ellipsis;
color: $c-font-dim;
&--new {
font-weight: bold;
color: $c-primary;
}
}
&__new {
color: $c-primary;
margin-inline-start: 0.3em;
}
}
}
&__contacts__loading {
display: flex;
justify-content: center;
padding: 1em;
}
}