webapp/src/components/Article/Article.module.scss

375 lines
5.1 KiB
SCSS
Raw Normal View History

h1 {
@include font-size(4rem);
line-height: 1.1;
margin-top: 0.5em;
}
h2 {
line-height: 1.1;
}
img {
max-width: 100%;
}
.shoutHeader {
margin-bottom: 2em;
@include media-breakpoint-up(md) {
margin: 0 0 2em;
}
}
.shoutCover {
background-size: cover;
height: 0;
padding-bottom: 56.2%;
}
.shoutBody {
font-size: 1.7rem;
line-height: 1.6;
img {
display: block;
margin-bottom: 0.5em;
}
blockquote {
border-left: 4px solid;
font-size: 2rem;
font-weight: 500;
font-style: italic;
line-height: 1.4;
margin: 1.5em 0;
padding: 0 0 0 1em;
@include media-breakpoint-up(md) {
margin-left: -16.6666%;
}
}
mark {
background: none;
font-size: 2rem;
font-weight: bold;
line-height: 1.4;
}
}
2022-11-27 11:00:44 +00:00
.shoutMediaBody {
display: block;
2022-12-17 03:27:00 +00:00
2022-11-27 11:00:44 +00:00
audio {
display: inline-block;
}
video {
display: block;
}
}
.shoutAuthor,
.shoutDate {
@include font-size(1.5rem);
}
.shoutAuthor {
margin-bottom: 1.5em;
a {
border: none;
color: rgb(0 0 0 / 60%);
&:hover {
color: #fff;
}
}
}
.shoutAuthorsList {
2022-11-26 21:27:54 +00:00
border-bottom: 1px solid #e8e8e8;
margin: 2em 0;
padding-bottom: 2em;
h4 {
color: #696969;
font-size: 1.5rem;
font-weight: normal;
}
2023-05-20 13:44:33 +00:00
:global(.button--subscribe) {
font-size: 1rem;
height: 3.2rem;
padding: 0.4rem;
width: 3.2rem;
img {
width: 1.6rem;
}
}
}
.writeComment {
@include font-size(1.7rem);
2023-05-01 18:32:32 +00:00
border: 2px solid #f6f6f6;
outline: none;
padding: 0.2em 0.4em;
width: 100%;
&::placeholder {
color: #858585;
}
}
.commentWarning {
@include font-size(2.2rem);
2023-05-01 18:32:32 +00:00
background: #f6f6f6;
margin-bottom: 1em;
padding: 2.4rem 1.8rem;
}
.topic a {
/* white-space: nowrap; */
color: black;
padding: 0.3vh;
&:hover {
font-weight: 500;
}
}
.shoutStats {
border-top: 4px solid #000;
display: flex;
justify-content: flex-start;
2022-11-26 21:27:54 +00:00
padding: 3rem 0 0;
@include media-breakpoint-down(sm) {
flex-wrap: wrap;
}
}
.shoutStatsItem {
2022-11-26 21:27:54 +00:00
@include font-size(1.5rem);
font-weight: 500;
display: inline-block;
2023-05-20 13:44:33 +00:00
margin: 0 6% 1em 0;
vertical-align: baseline;
cursor: pointer;
2023-05-20 13:44:33 +00:00
@include media-breakpoint-up(sm) {
margin-right: 3.2rem;
}
.icon {
2022-12-04 15:10:27 +00:00
height: 1.6em;
display: inline-block;
margin-right: 0.2em;
2022-12-04 15:10:27 +00:00
max-width: 1.4em;
max-height: 1.4em;
transition: filter 0.2s;
vertical-align: middle;
}
2022-12-04 15:10:27 +00:00
.iconEye {
height: 1.8em;
max-width: 1.8em;
max-height: 1.8em;
}
img {
display: block;
}
a {
border: none;
2023-04-17 10:31:20 +00:00
text-decoration: none;
2023-05-01 18:32:32 +00:00
&:hover {
2023-04-17 10:31:20 +00:00
background: unset;
color: #000;
img {
filter: unset;
}
}
}
}
.shoutStatsItemInner {
margin: -0.3em -0.3em 0;
padding: 0.3em;
2023-05-01 18:32:32 +00:00
cursor: pointer;
.icon {
margin-right: 0;
}
2023-03-29 20:18:25 +00:00
&:hover {
background: #000;
img {
filter: invert(1);
}
}
}
.shoutStatsItemLikes {
.icon {
vertical-align: baseline;
}
.icon:last-of-type {
// transform: rotate(180deg);
transform-origin: center;
margin-left: 0.3em;
vertical-align: middle;
}
}
.shoutStatsItemAdditionalData {
color: rgb(0 0 0 / 40%);
font-weight: normal;
justify-self: flex-end;
margin-right: 0;
margin-left: auto;
white-space: nowrap;
.icon {
opacity: 0.4;
height: 2rem;
}
2022-11-26 21:27:54 +00:00
@include media-breakpoint-down(sm) {
flex: 1 100%;
}
}
.shoutStatsItemAdditionalDataItem {
2022-11-26 21:27:54 +00:00
font-weight: normal;
display: inline-block;
margin-left: 2rem;
2022-11-26 21:27:54 +00:00
margin-right: 0;
@include media-breakpoint-down(sm) {
&:first-child {
margin-left: 0;
}
}
}
.topicsList {
@include font-size(1.2rem);
2022-11-26 21:27:54 +00:00
border-bottom: 1px solid #e8e8e8;
letter-spacing: 0.08em;
2022-11-26 21:27:54 +00:00
margin-top: 1.6rem;
padding-bottom: 1.6rem;
.shoutTopic {
display: inline-block;
margin: 0.8rem 0.8rem 0.8rem 0;
a {
background: #f6f6f6;
color: #000;
border: none;
padding: 0.4rem 0.8rem;
transition: background-color 0.2s;
text-transform: uppercase;
&:hover {
background-color: rgb(0 0 0 / 20%);
}
}
}
}
2022-11-26 21:27:54 +00:00
.comments {
margin: 0;
&,
ul {
list-style: none;
padding: 0;
}
ul {
margin: 1em 0 0 2.4rem;
}
}
2022-11-26 21:27:54 +00:00
.commentsHeaderWrapper {
display: flex;
justify-content: space-between;
}
.commentsHeader {
@include font-size(2.4rem);
2022-12-17 03:27:00 +00:00
2022-11-26 21:27:54 +00:00
margin-bottom: 1em;
2023-02-11 10:49:31 +00:00
.newReactions {
color: #d00820;
}
2022-11-26 21:27:54 +00:00
}
.ratingControl {
button {
font-size: 2.225rem;
}
}
.commentForm {
margin-bottom: 2.4rem;
input,
textarea {
border-radius: 0.8rem !important;
}
}
.commentsViewSwitcher {
2023-05-22 22:01:04 +00:00
margin-top: 0 !important;
2023-03-29 20:47:54 +00:00
}
2022-11-26 21:27:54 +00:00
.help {
border-bottom: 1px solid #e8e8e8;
margin-bottom: 1.6rem;
padding-bottom: 3.2rem;
button {
@include font-size(1.5rem);
2022-12-17 03:27:00 +00:00
2022-11-26 21:27:54 +00:00
border-radius: 0.8rem;
margin-right: 1.2rem;
padding: 1.1rem 1.2rem 0.9rem;
}
}
2023-02-10 11:11:24 +00:00
.mainTopicLink {
white-space: nowrap;
}
2023-02-17 09:21:02 +00:00
.signInMessage {
background: #f1f2f3;
border-radius: 8px;
padding: 16px;
text-align: center;
font-size: 20px;
.link {
color: #2638d9;
cursor: pointer;
transition: 0.3s ease-in-out;
border-bottom: 0;
&:hover {
color: #fff;
}
}
}