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

536 lines
8.2 KiB
SCSS
Raw Normal View History

h1 {
@include font-size(4rem);
line-height: 1.1;
margin-top: 0.5em;
}
h2 {
2023-06-21 20:32:16 +00:00
@include font-size(4rem);
line-height: 1.1;
}
img {
max-width: 100%;
}
2023-07-10 19:42:24 +00:00
.shoutHeader {
margin-bottom: 2em;
@include media-breakpoint-up(md) {
margin: 0 0 2em;
}
}
.shoutCover {
2023-07-10 19:42:24 +00:00
background-size: cover;
height: 0;
padding-bottom: 56.2%;
}
.shoutBody {
2023-07-14 06:24:45 +00:00
font-size: 1.6rem;
2023-07-10 19:42:24 +00:00
line-height: 1.6;
img {
display: block;
margin-bottom: 0.5em;
}
2023-07-14 06:24:45 +00:00
blockquote,
blockquote[data-type='punchline'] {
font-size: 2.6rem;
font-weight: bold;
line-height: 1.4;
2023-07-14 06:24:45 +00:00
margin: 3.2rem 0;
position: relative;
&::before {
2023-07-14 06:24:45 +00:00
background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDEwLjUwMDFWMjFIMTAuNzA2MVYxMC41MDAxSDQuNTg4MzNDNC41ODgzMyA3LjE4NjU4IDcuMzI3NTggNC41MDAwOCAxMC43MDYxIDQuNTAwMDhWMEM0Ljc5Mjk3IDAgMCA0LjcwMDczIDAgMTAuNDk5OVYxMC41MDAxWk0yNiA0LjUwMDA4VjBDMjAuMDg2OSAwIDE1LjI5MzkgNC43MDA3MyAxNS4yOTM5IDEwLjQ5OTlWMjAuOTk5OUgyNlYxMC41MDA1SDE5Ljg4MjJDMTkuODgyNCA3LjE4NyAyMi42MjE3IDQuNTAwNSAyNiA0LjUwMDVWNC41MDAwOFoiIGZpbGw9ImJsYWNrIi8+PC9zdmc+')
no-repeat;
content: '';
height: 2.1rem;
margin-right: 3rem;
position: absolute;
right: 100%;
top: 0.2em;
width: 2.6rem;
}
}
2023-07-23 16:10:28 +00:00
blockquote[data-type='quote'],
ta-quotation {
2023-07-14 06:24:45 +00:00
@include font-size(1.4rem);
2023-07-14 06:24:45 +00:00
border: solid #000;
border-width: 0 0 0 2px;
2023-07-23 16:10:28 +00:00
display: block;
2023-07-14 06:24:45 +00:00
font-weight: 500;
line-height: 1.6;
margin: 1.6rem 0 0 calc(-8.3333% - 2px);
padding: 0 0 0 8.3333%;
2023-07-14 06:24:45 +00:00
&[data-float='left'],
&[data-float='right'] {
@include font-size(2.2rem);
2023-07-14 06:24:45 +00:00
line-height: 1.4;
}
@include media-breakpoint-up(sm) {
&[data-float='left'] {
margin-right: 1.5em;
}
&[data-float='right'] {
margin-left: 1.5em;
}
}
&::before {
2023-07-14 06:24:45 +00:00
display: none;
}
}
2023-07-23 16:10:28 +00:00
*[data-type='incut'],
ta-sub,
ta-selection-frame,
ta-border-sub {
2023-07-14 06:24:45 +00:00
background: #f1f2f3;
2023-07-23 16:10:28 +00:00
display: block;
2023-07-14 06:24:45 +00:00
@include font-size(1.4rem);
2023-07-14 06:24:45 +00:00
margin: 3.2rem 0;
padding: 3.2rem;
@include media-breakpoint-up(md) {
margin: 3.2rem -8.3333%;
padding: 3.2rem 8.3333%;
2023-07-14 06:24:45 +00:00
}
p:last-child {
margin-bottom: 0;
}
}
*[data-bg='black'] {
background: #000;
color: #fff;
}
*[data-bg='yellow'] {
background: #f6e3a1;
}
*[data-bg='pink'] {
background: #f1b5bc;
}
*[data-bg='green'] {
background: #eafff2;
}
2023-07-23 16:10:28 +00:00
*[data-bg='white'],
ta-selection-frame {
2023-07-14 06:24:45 +00:00
background: #fff;
box-shadow: 0 0 0 1px #000;
2023-07-23 16:10:28 +00:00
display: block;
}
ta-border-sub {
box-shadow: 0 0 0 1px #000;
display: block;
2023-07-14 06:24:45 +00:00
}
*[data-float='half-left'] {
@include media-breakpoint-up(sm) {
margin: 1.6rem 1.6rem 1.6rem 0;
}
@include media-breakpoint-up(md) {
margin: 0 8.3333% 3.2rem -16.6666%;
2023-07-14 06:24:45 +00:00
}
}
*[data-float='half-right'] {
@include media-breakpoint-up(sm) {
margin: 1.6rem 0 1.6rem 1.6rem;
}
@include media-breakpoint-up(md) {
margin: 0 -16.6666% 3.2rem 8.3333%;
}
}
mark {
2023-07-14 06:24:45 +00:00
background: #f6e3a1;
}
2023-06-27 22:47:47 +00:00
figure {
gap: 0;
}
2023-07-14 06:24:45 +00:00
h2 {
@include media-breakpoint-up(xl) {
margin-left: -16.6666%;
2023-07-14 06:24:45 +00:00
}
}
:global(.img-align-left) {
float: left;
margin: 1em 8.3333% 0.5em 0;
2023-07-14 06:24:45 +00:00
}
:global(.width-30) {
width: 30%;
}
:global(.width-50) {
width: 50%;
}
:global(.img-align-left.width-50) {
@include media-breakpoint-up(xl) {
margin-left: -16.6666%;
2023-07-14 06:24:45 +00:00
}
}
:global(.img-align-right) {
float: right;
margin: 1em 0 0.5em 8.3333%;
2023-07-14 06:24:45 +00:00
}
:global(.img-align-right.width-50) {
@include media-breakpoint-up(xl) {
margin-right: -16.6666%;
2023-07-14 06:24:45 +00:00
}
}
:global(.ta-insert-video) {
aspect-ratio: 16/9;
width: 100%;
}
}
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);
align-items: center;
font-weight: 500;
2023-07-09 18:34:59 +00:00
display: flex;
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 {
display: inline-block;
margin-right: 0.2em;
transition: filter 0.2s;
vertical-align: middle;
}
img {
display: block;
}
2023-07-09 18:34:59 +00:00
.iconHover {
display: none;
}
&:hover {
.icon {
display: none;
}
.iconHover {
display: inline-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 {
2023-05-01 18:32:32 +00:00
cursor: pointer;
.icon {
margin-right: 0;
}
}
.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;
cursor: default;
.icon {
opacity: 0.4;
height: 2rem;
}
2022-11-26 21:27:54 +00:00
@include media-breakpoint-down(sm) {
flex: 1 100%;
}
}
.shoutStatsItemViews {
cursor: default;
}
.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;
2023-07-09 18:34:59 +00:00
margin-bottom: 0;
cursor: default;
2022-11-26 21:27:54 +00:00
@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-11-26 21:27:54 +00:00
border-radius: 0.8rem;
margin-right: 1.2rem;
2023-07-23 16:32:18 +00:00
padding: 0.9rem 1.2rem;
2022-11-26 21:27:54 +00:00
}
}
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;
}
}
}