webapp/src/components/Topic/Card.module.scss

107 lines
1.4 KiB
SCSS
Raw Normal View History

2022-09-09 11:53:35 +00:00
.topic {
align-items: flex-start;
margin-top: 3.2rem;
.stats & {
@include media-breakpoint-down(sm) {
margin-left: 0;
}
.topicDetailsItem {
2022-09-09 11:53:35 +00:00
margin-bottom: 1.2rem;
@include media-breakpoint-up(md) {
margin-bottom: 3.2rem;
}
}
}
}
.topicInRow {
align-items: center;
display: flex;
justify-content: space-between;
button {
margin-top: 0;
}
.topicTitle {
margin-bottom: 0;
}
}
.topicTitle {
2022-09-09 11:53:35 +00:00
font-weight: bold;
@include font-size(1.7rem);
margin-bottom: 0.8rem;
}
.topicAvatar {
2022-09-09 11:53:35 +00:00
border-radius: 100%;
height: 64px;
margin-right: 1.2rem;
min-width: 64px;
max-width: 64px;
overflow: hidden;
position: relative;
width: 64px;
img {
height: 100%;
object-fit: cover;
width: 100%;
}
}
.topicDescription {
2022-09-09 11:53:35 +00:00
@include font-size(1.5rem);
color: #696969;
margin: 0 0 0.8rem;
&.compact {
font-size: medium;
}
}
.topicDescriptionShort {
display: block;
2022-09-09 11:53:35 +00:00
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.topicDetails {
2022-09-09 11:53:35 +00:00
@include font-size(1.7rem);
color: #9fa1a7;
display: flex;
@include media-breakpoint-down(md) {
flex-wrap: wrap;
}
}
.topicDetailsItem {
2022-09-09 11:53:35 +00:00
margin-right: 1.6rem;
white-space: nowrap;
&:last-child {
margin-right: 0;
}
&.compact {
font-size: small;
}
&.followers {
word-break: keep-all;
}
&.button {
float: right;
}
}