liebling/src/sass/layouts/_post-content.scss

385 lines
6.2 KiB
SCSS

.l-post-content {
padding-bottom: 15px;
@include respond-to('medium') {
max-width: 820px;
margin: 0 auto;
@include respond-to('medium') {
padding-bottom: 30px;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: $titles;
line-height: 1.3;
font-weight: 700;
padding-top: 5px;
margin: 0 0 30px;
@include respond-to('medium') {
padding-top: 10px;
margin-bottom: 40px;
}
}
h1 {
font-size: 2.125rem;
@include respond-to('medium') {
font-size: 2.625rem;
}
}
h2 {
font-size: 1.750rem;
@include respond-to('medium') {
font-size: 2.250rem;
}
}
h3 {
font-size: 1.375rem;
@include respond-to('medium') {
font-size: 1.750rem;
}
}
h4 {
font-size: 1rem;
@include respond-to('medium') {
font-size: 1.375rem;
}
}
h5 {
font-size: 0.938rem;
@include respond-to('medium') {
font-size: 1.125rem;
}
}
h6 {
font-size: 0.813rem;
@include respond-to('medium') {
font-size: 1rem;
}
}
p {
letter-spacing: 0.2px;
line-height: 1.5;
font-size: 1.125rem;
margin-bottom: 25px;
@include respond-to('medium') {
letter-spacing: 0.3px;
line-height: 1.6;
font-size: 1.250rem;
margin-bottom: 30px;
}
img {
margin-bottom: 0 !important;
}
}
b, strong {
font-weight: 600;
}
a {
color: $black;
text-decoration: underline;
}
ul, ol {
letter-spacing: 0.2px;
line-height: 1.5;
font-size: 1.125rem;
padding-left: 20px;
margin: 0 0 20px 0;
@include respond-to('medium') {
letter-spacing: 0.3px;
line-height: 1.6;
font-size: 1.250rem;
padding-left: 40px;
margin-bottom: 30px;
}
li {
margin-bottom: 20px;
}
}
img,
.kg-image {
display: block;
max-width: 100%;
margin: 0 auto 35px;
@include respond-to('medium') {
margin-bottom: 40px;
}
}
iframe {
max-width: 100%;
}
.fluid-width-video-wrapper {
margin: 0 auto 35px;
@include respond-to('medium') {
margin-bottom: 40px;
}
}
figure,
&.kg-image-card {
padding: 20px 0 40px;
margin: 0 -#{$mobile-space};
@include respond-to('medium') {
padding: 20px 0 50px;
margin: 0;
}
&.kg-embed-card {
display: flex;
flex-direction: column;
align-items: center;
min-width: 100%;
margin: 0 auto;
iframe {
margin: 0 auto;
}
}
&.kg-width-full,
&.kg-width-wide {
img {
width: 100%;
height: auto;
}
}
&.kg-width-wide {
@include respond-to('extra-large') {
margin: 0 -70px;
}
}
&.kg-width-full {
@include respond-to('medium') {
width: 100vw;
margin-left: 50%;
@include transform(translateX(-50%));
}
}
img,
.kg-image {
display: block;
width: auto;
max-width: 100%;
height: auto;
margin: 0 auto;
}
figcaption {
text-align: center;
letter-spacing: 0.1px;
line-height: 1.3;
font-size: 0.750rem;
padding: 10px $mobile-space 0 $mobile-space;
@include respond-to('medium') {
font-size: 0.875rem;
padding: 15px 0 0 0;
}
}
.fluid-width-video-container {
flex-grow: 1;
width: 100%;
}
.fluid-width-video-wrapper {
margin: 0 auto !important;
}
.kg-gallery-container {
display: flex;
flex-direction: column;
width: 100%;
}
.kg-gallery-row {
display: flex;
flex-direction: row;
justify-content: center;
}
.kg-gallery-image img {
display: block;
margin: 0;
width: 100%;
height: 100%;
}
.kg-gallery-row:not(:first-of-type) {
margin: 0.75em 0 0 0;
}
.kg-gallery-image:not(:first-of-type) {
margin: 0 0 0 0.75em;
}
}
hr {
position: relative;
margin: 30px 0;
border: 0;
border-top: 1px solid darken($light-blue, 5%);
@include respond-to('medium') {
margin: 50px 0;
}
&:after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: darken($light-blue, 5%);
@include bs(0 0 0 10px $white);
@include transform(translate(-50%,-50%));
@include respond-to('medium') {
width: 12px;
height: 12px;
@include bs(0 0 0 20px $white);
}
}
}
blockquote {
position: relative;
letter-spacing: 0.2px;
line-height: 1.5;
font-size: 1.125rem;
font-style: italic;
font-family: Georgia, 'Times New Roman', Times, serif;
padding: 0 40px;
margin: 0 0 25px;
@include respond-to('medium') {
letter-spacing: 0.3px;
line-height: 1.6;
font-size: 1.250rem;
padding: 0 60px;
margin-bottom: 30px;
}
&:before {
content: '"';
position: absolute;
top: 0;
left: 0;
color: darken($light-blue, 10%);
line-height: 1;
font-size: 2.625rem;
@include respond-to('medium') {
font-size: 4rem;
}
}
p:last-child {
margin-bottom: 0;
}
}
table {
color: $titles;
font-size: 0.875rem;
width: calc(100% + 40px);
margin: 0 -#{$mobile-space} 25px;
@include respond-to('medium') {
font-size: 1rem;
width: 100%;
margin: 0 0 30px;
}
thead {
border-bottom: 1px solid #e2e2e2;
td {
font-weight: 600;
}
}
tbody {
tr:nth-child(odd) {
background-color: #fafafa;
}
}
td {
text-align: center;
padding: 10px;
@include respond-to('medium') {
padding: 20px;
}
}
}
code {
display: inline-block;
color: $dark-blue;
font-size: 0.9rem;
padding: 0 5px;
border-radius: 5px;
background-color: lighten($gray, 35%);
}
pre {
line-height: 1.4;
margin: 0 0 25px;
@include respond-to('medium') {
margin-bottom: 30px;
}
> code {
display: block;
padding: 10px;
white-space: pre-wrap;
@include respond-to('medium') {
padding: 20px;
}
}
}
}