webapp/src/styles/Feed.scss
2022-10-26 00:45:37 +03:00

182 lines
2.6 KiB
SCSS

.feed {
.comment__content {
display: flex;
}
.comment__author-image {
background: #ccc;
border-radius: 100%;
height: 40px;
min-width: 40px;
position: relative;
overflow: hidden;
}
.comment__text {
@include font-size(1.5rem);
line-clamp: 5;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
display: box;
margin: 0 1em 0.5em 0;
overflow: hidden;
text-overflow: ellipsis;
}
.comment__details {
display: flex;
@include font-size(1.2rem);
overflow: hidden;
position: relative;
white-space: nowrap;
width: 100%;
&,
a {
border: none;
color: #9ca3af;
}
}
.comment__article {
margin-left: 0.5rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.icon {
display: inline-block;
margin-right: 0.3em;
vertical-align: middle;
width: 1.2em;
}
}
}
.feed-navigation {
@include font-size(1.7rem);
h4 {
font-size: inherit;
margin-bottom: 1.6rem;
}
ul,
li {
list-style: none;
margin: 0 0 1.6rem;
padding: 0;
}
ul {
border-bottom: 1px solid #e8e8e8;
}
li {
display: flex;
justify-content: space-between;
a {
margin-right: 0.5em;
}
}
a {
border: none;
}
.counter {
align-items: center;
align-self: flex-start;
background: #f6f6f6;
color: #6b7280;
display: flex;
@include font-size(1.2rem);
font-weight: 500;
padding: 0.2em 0.5em;
}
.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;
img {
transition: filter 0.3s;
}
a {
margin-right: 0.3em;
&:hover {
img {
filter: invert(1);
}
}
}
.icon {
display: inline-block;
line-height: 1;
margin-left: 0.3em;
vertical-align: middle;
width: 1em;
}
}
}
.feed-filter {
display: flex;
@include font-size(1.7rem);
font-weight: 500;
list-style: none;
margin: 0 0 1.6rem;
padding: 0;
li {
border-bottom: 4px solid transparent;
margin: 0 1.4em 1em 0;
&:last-child {
margin-right: 0;
}
}
.selected {
border-bottom-color: #000;
a {
&,
&:hover {
background: none;
color: #000;
cursor: default;
}
}
}
a {
border: none;
}
}