Files
rickvanlieshout.com/src/assets/scss/base/_generic.scss

216 lines
3.5 KiB
SCSS

@use "../variables" as *;
@use "../mixins" as *;
html {
font-size: $typographic-root-font-size;
}
body {
background-color: $color-bg;
color: $typographic-base-font-color;
font-family: $typographic-font-family;
font-size: $typographic-base-font-size;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: $typographic-base-line-height;
margin: 0 0 0 calc(100vw - 100%);
text-rendering: optimizelegibility;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
h2,
h1,
h3,
h4,
h5,
h6 {
font-family: $typographic-font-family;
font-weight: 600;
}
h1 {
font-size: $typographic-base-font-size * 2.5;
@include line-height(2);
@include margin-top(4);
@include margin-bottom(1);
}
h2 {
font-size: $typographic-base-font-size * 1.6875;
@include line-height(1.5);
@include margin-top(2);
@include margin-bottom(0.5);
}
h3 {
font-size: $typographic-base-font-size * 1.375;
@include line-height(1);
@include margin-top(2);
@include margin-bottom(0.5);
}
h4 {
font-size: $typographic-base-font-size * 1.2;
@include line-height(1);
@include margin-top(1.5);
@include margin-bottom(0.5);
}
h5 {
font-size: $typographic-base-font-size;
@include line-height(1);
@include margin-top(2.5);
@include margin-bottom(0.5);
}
h6 {
font-size: $typographic-base-font-size;
@include line-height(1);
@include margin-top(2.5);
@include margin-bottom(0.5);
}
img {
border: 0;
display: block;
max-width: 100%;
}
hr {
background-image: linear-gradient(to bottom,
transparent 1px,
transparent 11px,
$color-base 11px,
$color-base 15px,
transparent 15px,
transparent 26px);
background-size: 100% 26px;
border: 0;
color: $color-base;
display: block;
height: 26px;
margin: 52px auto;
width: 100px;
}
a {
color: $typographic-link-p-font-color;
text-decoration: none;
&:hover,
&:focus,
&:active {
color: $typographic-link-s-font-color;
}
}
b,
strong {
font-weight: 600;
}
ul {
list-style: square;
@include margin-bottom(1);
& li {
margin-bottom: 10px;
padding: 0 5px;
}
}
p {
@include line-height(1);
@include margin-bottom(1);
}
ol,
ul {
p {
margin: 0 !important;
}
}
blockquote {
border-color: #d9d9d9;
border-style: solid;
border-width: 2px 0;
display: block;
// border-color: #eee;
font-style: italic;
margin: 1.5em 0;
padding: 1.5em 0 0.5em;
position: relative;
text-align: center;
}
blockquote:before {
background: $color-bg;
color: $color-gray;
content: "\201C";
font: 4em/1.08em ubuntu;
height: 2rem;
left: 50%;
position: absolute;
text-align: center;
top: 0em;
transform: translate(-50%, -75%);
width: 3rem;
}
figure {
display: block;
height: auto;
width: 100%;
}
figcaption {
@include line-height(0.75);
@include margin-top(0.25);
color: $color-base;
font-size: $typographic-small-font-size;
font-style: italic;
margin-bottom: 0;
text-align: center;
}
table {
// border: 1px solid $color-base;
border-collapse: collapse;
width: 70%;
th {
border-bottom: 1px solid $color-base;
border-collapse: collapse;
padding: 1rem;
text-align: left;
}
tr,
th {
td {
padding: 0.3rem;
padding-left: 1rem;
}
}
}
@include breakpoint-sm {
figure.float-left,
figure.float-right {
max-width: 310px;
@include padding(0, 1, 0, 1);
}
.float-right {
float: right;
}
.float-left {
float: left;
}
}