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

160 lines
2.1 KiB
SCSS
Raw Normal View History

2023-06-05 20:46:55 +00:00
.topicContainer {
li:last-child & {
border: none;
}
}
2022-09-09 11:53:35 +00:00
.topic {
2023-06-05 20:46:55 +00:00
align-items: baseline;
2022-09-09 11:53:35 +00:00
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;
2023-09-02 22:14:34 +00:00
margin-top: 0;
button {
margin-top: 0;
}
2023-05-17 20:27:24 +00:00
@include media-breakpoint-up(sm) {
.topicDescription {
margin-bottom: 0;
}
}
}
.topicTitle {
2022-11-09 19:02:12 +00:00
@include font-size(2.2rem);
2023-05-01 18:32:32 +00:00
font-weight: bold;
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;
2023-07-18 21:50:27 +00:00
a {
border: none;
}
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 {
2023-06-05 20:46:55 +00:00
@include font-size(1.4rem);
2023-06-05 20:46:55 +00:00
font-weight: 500;
2022-09-09 11:53:35 +00:00
color: #696969;
2023-06-05 20:46:55 +00:00
line-height: 1.3;
margin: 0.2rem 0 1.6rem;
&.topicDescriptionShort {
display: block;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
2022-09-09 11:53:35 +00:00
}
}
.topicDetails {
2023-06-05 20:46:55 +00:00
@include font-size(1.6rem);
2022-09-09 11:53:35 +00:00
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 {
2023-06-05 20:46:55 +00:00
@include font-size(1.4rem);
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 {
2023-06-05 20:46:55 +00:00
margin-bottom: 1.6rem;
2023-05-17 20:27:24 +00:00
@include media-breakpoint-up(sm) {
2022-11-09 19:02:12 +00:00
text-align: right;
}
}
2022-11-16 21:08:04 +00:00
.topicCompact {
.topicTitle {
2023-06-05 20:46:55 +00:00
@include font-size(1.6rem);
2022-11-16 21:08:04 +00:00
}
}
.isSubscribing {
2023-01-24 22:00:10 +00:00
opacity: 0.5;
}
.isSubscribed {
background: #000;
2023-01-24 22:00:10 +00:00
color: #fff;
2023-05-17 20:27:24 +00:00
transition: background-color 0.3s, color 0.3s;
white-space: nowrap;
width: 9em;
2023-05-17 20:27:24 +00:00
&:hover {
background: #fff;
color: #000;
.buttonUnfollowLabel {
display: block;
}
.buttonSubscribedLabel {
display: none;
}
}
.buttonUnfollowLabel {
display: none;
2023-05-17 20:27:24 +00:00
}
}
2023-06-05 20:46:55 +00:00
.cardMode {
margin-bottom: 0;
}