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

127 lines
1.6 KiB
SCSS
Raw Normal View History

2022-09-09 11:53:35 +00:00
.topic {
align-items: flex-start;
margin-top: 3.2rem;
.stats & {
.topicDetailsItem {
2022-09-09 11:53:35 +00:00
margin-bottom: 1.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;
2022-11-09 19:02:12 +00:00
@include font-size(2.2rem);
2022-09-09 11:53:35 +00:00
2022-11-09 19:02:12 +00:00
margin-bottom: 1.2rem;
2022-11-16 21:08:04 +00:00
margin-top: 0.5rem !important;
2022-09-09 11:53:35 +00:00
}
.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-11-09 19:02:12 +00:00
@include font-size(1.6rem);
2022-09-09 11:53:35 +00:00
color: #696969;
2022-11-09 19:02:12 +00:00
margin: 0 0 1.6rem;
2022-09-09 11:53:35 +00:00
&.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;
2022-11-18 18:33:31 +00:00
margin-bottom: 1em;
2022-09-09 11:53:35 +00:00
@include media-breakpoint-down(md) {
flex-wrap: wrap;
}
}
.topicDetailsItem {
2022-11-09 19:02:12 +00:00
@include font-size(1.5rem);
2022-11-10 12:50:47 +00:00
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;
}
}
2022-11-09 19:02:12 +00:00
.controlContainer {
@include media-breakpoint-up(md) {
text-align: right;
}
}
2022-11-16 21:08:04 +00:00
.topicCompact {
.topicTitle {
@include font-size(1.7rem);
}
}
.buttonCompact {
margin-top: 0.6rem;
}
.isSubscribing {
color: transparent;
}
.isSubscribed {
background: #000;
}