webapp/src/components/Feed/Sidebar/Sidebar.module.scss

91 lines
1.5 KiB
SCSS
Raw Normal View History

.sidebar {
max-height: calc(100vh - 120px);
overflow: auto;
position: sticky;
top: 120px;
ul > li {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebarItemName {
margin-right: 0.5em;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
}
.counter {
@include font-size(1.2rem);
2023-05-01 18:32:32 +00:00
align-items: center;
align-self: flex-start;
background: #f6f6f6;
border-radius: 0.8rem;
display: inline-flex;
font-weight: bold;
justify-content: center;
min-width: 2em;
margin-left: 0.5em;
padding: 0.25em 0.5em 0.15em;
transition: background-color 0.2s;
}
.unread {
position: relative;
&::after {
background: #2638d9;
border-radius: 100%;
content: '';
display: inline-block;
height: 0.5em;
left: 100%;
margin-left: 0.3em;
position: absolute;
top: 0.5em;
width: 0.5em;
}
}
.settings {
display: flex;
justify-content: space-between;
margin-bottom: 2em;
}
a {
img {
transition: filter 0.3s;
}
&:hover {
img {
filter: invert(1);
}
.counter {
background: #000;
}
}
}
.icon {
display: inline-block;
line-height: 1;
height: 2rem;
margin-right: 0.5em;
vertical-align: middle;
width: 2.2rem;
img {
height: 100%;
object-fit: contain;
object-position: center;
width: 100%;
}
}
}