1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 15:16:21 -04:00
jarv.is/assets/sass/components/_content.scss

108 lines
1.5 KiB
SCSS

@charset "UTF-8";
div#content {
font-size: 0.935em; // ~15px
letter-spacing: -0.008em;
line-height: 1.7;
h1,
h2,
h3,
h4 {
margin-top: 1.25em;
margin-bottom: 0.5em;
letter-spacing: 0.001em;
line-height: 1.5;
}
h2 {
padding-bottom: 0.25em;
border-bottom: 1px solid;
@include themed() {
border-color: t(kinda-light);
}
}
p.center {
text-align: center;
}
p.image,
figure {
text-align: center;
img {
height: auto;
max-width: 100%;
}
}
figure {
margin: 1em auto;
// image captions
figcaption {
font-size: 0.95em;
@include themed() {
color: t(medium);
}
}
}
ul {
margin-left: 1em;
padding-left: 0;
li {
padding-left: 0.25em;
}
}
div.embed {
&.video {
video {
display: block;
margin: 1em auto;
max-width: 100%;
height: auto;
}
}
&.youtube {
position: relative;
padding-bottom: 56.25%;
margin: 1em auto;
height: 0;
overflow: hidden;
iframe.youtube-player {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: inline-block;
border: 0;
}
}
&.gh-buttons {
text-align: center;
}
&.codepen {
iframe {
width: 100%;
border: 0;
}
}
}
}
// Responsive
@mixin responsive--content() {
// stylelint-disable-block block-no-empty
}