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

199 lines
3.1 KiB
SCSS
Raw Normal View History

.sidebar {
2023-10-16 20:11:08 +00:00
margin-top: -0.7rem;
max-height: calc(100vh - 120px);
overflow: auto;
top: 120px;
2023-09-14 21:29:17 +00:00
@include media-breakpoint-up(md) {
2023-10-16 20:11:08 +00:00
margin-top: 0;
2023-09-19 21:02:42 +00:00
position: sticky;
2023-09-14 21:29:17 +00:00
ul > li {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.sidebarItemName {
2023-09-14 21:29:17 +00:00
align-items: baseline;
2023-08-13 12:28:33 +00:00
display: flex;
2023-09-14 21:29:17 +00:00
position: relative;
@include media-breakpoint-up(md) {
overflow: hidden;
text-overflow: ellipsis;
}
}
.selected {
font-weight: 700;
}
.counter {
@include font-size(1.2rem);
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;
2023-05-11 11:52:56 +00:00
margin: 2em 0;
2023-09-19 21:02:42 +00:00
@include media-breakpoint-down(md) {
margin: 0;
position: absolute;
right: 12px;
}
@include media-breakpoint-down(sm) {
right: 2px;
}
}
.settingsLabel {
@include media-breakpoint-down(sm) {
display: none;
}
}
a {
img {
transition: filter 0.3s;
}
&:hover {
img {
filter: invert(1);
}
.counter {
background: #000;
}
}
}
.icon {
display: inline-block;
line-height: 1;
2023-06-27 22:47:47 +00:00
height: 2.4rem;
2023-07-09 18:34:59 +00:00
margin-bottom: 0.2rem;
2023-06-27 22:47:47 +00:00
margin-right: 0.8rem;
2023-09-14 21:29:17 +00:00
min-width: 2.4rem;
2023-06-06 21:16:40 +00:00
text-align: center;
2023-07-09 18:34:59 +00:00
vertical-align: middle;
img {
height: 100%;
object-fit: contain;
object-position: center;
width: 100%;
}
}
2023-05-11 11:52:56 +00:00
h4 {
@include font-size(1.2rem);
2023-06-06 21:16:40 +00:00
font-weight: bold;
2023-05-11 11:52:56 +00:00
color: #9fa1a7;
cursor: pointer;
letter-spacing: 0.05em;
text-transform: uppercase;
position: relative;
&::after {
2023-05-11 11:52:56 +00:00
content: '+';
font-size: 1.6em;
line-height: 1;
position: absolute;
right: 2.5rem;
top: -0.2em;
transition: transform 0.3s;
}
&.opened {
&::after {
2023-05-11 11:52:56 +00:00
right: 0.9rem;
transform: rotate(45deg);
}
}
}
.hidden {
display: none;
}
}
2023-06-06 21:16:40 +00:00
2023-09-19 21:02:42 +00:00
.feedFilters,
.subscriptions {
2023-09-14 21:29:17 +00:00
@include media-breakpoint-down(md) {
display: flex;
overflow: auto;
li {
margin-right: 3rem !important;
&:last-child {
margin-right: 0 !important;
}
}
2023-09-19 21:02:42 +00:00
&::-webkit-scrollbar {
height: 0;
width: 0;
}
&::-webkit-scrollbar-thumb {
background: none;
}
2023-09-14 21:29:17 +00:00
}
}
2023-09-19 21:02:42 +00:00
.feedFilters {
2023-09-14 21:29:17 +00:00
@include media-breakpoint-down(md) {
2023-09-19 21:02:42 +00:00
margin-bottom: 0 !important;
}
2023-09-14 21:29:17 +00:00
2023-09-19 21:02:42 +00:00
.sidebarItemName {
align-items: center;
2023-09-14 21:29:17 +00:00
}
2023-09-19 21:02:42 +00:00
}
2023-09-14 21:29:17 +00:00
2023-09-19 21:02:42 +00:00
.subscriptions {
2023-06-06 21:16:40 +00:00
.icon {
text-align: center;
img {
display: inline-block;
vertical-align: middle;
}
}
}