webapp/src/styles/Feed.scss
2023-02-10 09:33:26 +01:00

94 lines
1.4 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-filter {
@include font-size(1.7rem);
display: flex;
flex-wrap: wrap;
font-weight: 500;
list-style: none;
margin: 0 0 1.6rem;
padding: 0;
li {
border-bottom: 4px solid transparent;
margin: 0 1.4em 0.5em 0;
&:last-child {
margin-right: 0;
}
}
.selected {
border-bottom-color: #000;
a {
&,
&:hover {
background: none;
color: #000;
cursor: default;
}
}
}
a {
border: none;
}
}