Article style fixes
This commit is contained in:
parent
cf0c4455f3
commit
e6b1550056
|
@ -28,7 +28,7 @@ img {
|
||||||
}
|
}
|
||||||
|
|
||||||
.shoutBody {
|
.shoutBody {
|
||||||
font-size: 1.7rem;
|
font-size: 1.6rem;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
@ -36,30 +36,163 @@ img {
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote,
|
||||||
border-left: 4px solid;
|
blockquote[data-type='punchline'] {
|
||||||
font-size: 2rem;
|
font-size: 2.6rem;
|
||||||
font-weight: 500;
|
font-weight: bold;
|
||||||
font-style: italic;
|
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
margin: 1.5em 0;
|
margin: 3.2rem 0;
|
||||||
padding: 0 0 0 1em;
|
position: relative;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote[data-type='quote'] {
|
||||||
|
@include font-size(1.4rem);
|
||||||
|
border: solid #000;
|
||||||
|
border-width: 0 0 0 2px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.6;
|
||||||
|
margin: 1.6rem 0 0 calc(-8.33333% - 2px);
|
||||||
|
padding: 0 0 0 8.33333%;
|
||||||
|
|
||||||
|
&[data-float='left'],
|
||||||
|
&[data-float='right'] {
|
||||||
|
@include font-size(2.2rem);
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(sm) {
|
||||||
|
&[data-float='left'] {
|
||||||
|
margin-right: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&[data-float='right'] {
|
||||||
|
margin-left: 1.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
*[data-type='incut'] {
|
||||||
|
background: #f1f2f3;
|
||||||
|
@include font-size(1.4rem);
|
||||||
|
margin: 3.2rem 0;
|
||||||
|
padding: 3.2rem;
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
margin-left: -16.6666%;
|
margin: 3.2rem -8.33333%;
|
||||||
|
padding: 3.2rem 8.33333%;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
*[data-bg='white'] {
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 0 0 0 1px #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
*[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.33333% 3.2rem -16.66666%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
*[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.66666% 3.2rem 8.33333%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
background: none;
|
background: #f6e3a1;
|
||||||
font-size: 2rem;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
gap: 0;
|
gap: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
margin-left: -16.6666666666%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.img-align-left) {
|
||||||
|
float: left;
|
||||||
|
margin: 1em 8.333333333% 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.width-30) {
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.width-50) {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.img-align-left.width-50) {
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
margin-left: -16.6666666666%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.img-align-right) {
|
||||||
|
float: right;
|
||||||
|
margin: 1em 0 0.5em 8.333333333%;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.img-align-right.width-50) {
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
margin-right: -16.6666666666%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.ta-insert-video) {
|
||||||
|
aspect-ratio: 16/9;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.shoutMediaBody {
|
.shoutMediaBody {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
.ProseMirror {
|
.ProseMirror {
|
||||||
|
font-size: 1.6rem;
|
||||||
outline: none;
|
outline: none;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +69,7 @@
|
||||||
|
|
||||||
mark.highlight {
|
mark.highlight {
|
||||||
box-decoration-break: clone;
|
box-decoration-break: clone;
|
||||||
padding: 0.125em 0;
|
padding: 0.2em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// custom atibutes fro TipTap Nodes
|
// custom atibutes fro TipTap Nodes
|
||||||
|
@ -91,17 +92,23 @@ mark.highlight {
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-float='half-left'] {
|
[data-float='half-left'] {
|
||||||
max-width: 50%;
|
|
||||||
min-width: 30%;
|
|
||||||
float: left;
|
float: left;
|
||||||
margin: 1rem 1rem 0;
|
margin: 1rem 1rem 0;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
max-width: 50%;
|
||||||
|
min-width: 30%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-float='half-right'] {
|
[data-float='half-right'] {
|
||||||
max-width: 50%;
|
|
||||||
min-width: 30%;
|
|
||||||
float: right;
|
float: right;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
max-width: 50%;
|
||||||
|
min-width: 30%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +118,7 @@ mark.highlight {
|
||||||
}
|
}
|
||||||
|
|
||||||
&[data-type='quote'] {
|
&[data-type='quote'] {
|
||||||
@include font-size(1.6rem);
|
@include font-size(1.4rem);
|
||||||
border: solid #000;
|
border: solid #000;
|
||||||
border-width: 0 0 0 2px;
|
border-width: 0 0 0 2px;
|
||||||
margin: 1.6rem 0;
|
margin: 1.6rem 0;
|
||||||
|
@ -159,7 +166,7 @@ mark.highlight {
|
||||||
|
|
||||||
.ProseMirror article[data-type='incut'] {
|
.ProseMirror article[data-type='incut'] {
|
||||||
background: #f1f2f3;
|
background: #f1f2f3;
|
||||||
@include font-size(1.6rem);
|
@include font-size(1.4rem);
|
||||||
margin: 1em -1rem;
|
margin: 1em -1rem;
|
||||||
padding: 2em 2rem;
|
padding: 2em 2rem;
|
||||||
transition: background 0.3s ease-in-out;
|
transition: background 0.3s ease-in-out;
|
||||||
|
|
|
@ -548,9 +548,9 @@ figure {
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
|
color: rgb(0 0 0 / 60%);
|
||||||
@include font-size(1.2rem);
|
@include font-size(1.2rem);
|
||||||
|
line-height: 1.5;
|
||||||
color: #9fa1a7;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user