Update _main.scss

This commit is contained in:
Djordje Atlialp 2021-01-10 20:41:33 +01:00
parent 2e723e3f05
commit 833de605e3

View file

@ -1,7 +1,7 @@
html { html {
box-sizing: border-box; box-sizing: border-box;
line-height: 1.6; line-height: 1.6;
letter-spacing: .06em; letter-spacing: 0.06em;
scroll-behavior: smooth; scroll-behavior: smooth;
} }
@ -14,7 +14,8 @@ html {
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: 'Inter UI', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif; font-family: "Inter UI", -apple-system, BlinkMacSystemFont, "Roboto",
"Segoe UI", Helvetica, Arial, sans-serif;
font-display: auto; font-display: auto;
font-size: 1rem; font-size: 1rem;
line-height: 1.54; line-height: 1.54;
@ -40,7 +41,11 @@ body {
} }
} }
h2, h3, h4, h5, h6 { h2,
h3,
h4,
h5,
h6 {
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 1.3; line-height: 1.3;
@ -150,7 +155,7 @@ figure {
figcaption { figcaption {
font-size: 14px; font-size: 14px;
margin-top: 5px; margin-top: 5px;
opacity: .8; opacity: 0.8;
&.left { &.left {
text-align: left; text-align: left;
@ -167,14 +172,14 @@ figure {
} }
code { code {
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace; font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
font-display: auto; font-display: auto;
font-feature-settings: normal; font-feature-settings: normal;
background: $light-background-secondary; background: $light-background-secondary;
padding: 1px 6px; padding: 1px 6px;
margin: 0 2px; margin: 0 2px;
border-radius: 5px; border-radius: 5px;
font-size: .95rem; font-size: 0.95rem;
.dark-theme & { .dark-theme & {
background: $dark-background-secondary; background: $dark-background-secondary;
@ -185,7 +190,7 @@ pre {
background: #212020; background: #212020;
padding: 10px 10px 10px 20px; padding: 10px 10px 10px 20px;
border-radius: 8px; border-radius: 8px;
font-size: .95rem; font-size: 0.95rem;
overflow: auto; overflow: auto;
@media #{$media-size-phone} { @media #{$media-size-phone} {
@ -217,7 +222,7 @@ blockquote {
} }
&:before { &:before {
content: ''; content: "";
font-family: Georgia, serif; font-family: Georgia, serif;
font-display: auto; font-display: auto;
font-size: 3.875rem; font-size: 3.875rem;
@ -235,7 +240,8 @@ blockquote {
} }
} }
ul, ol { ul,
ol {
margin-left: 40px; margin-left: 40px;
padding: 0; padding: 0;
@ -298,42 +304,47 @@ hr {
// Accessibility // Accessibility
.screen-reader-text { .screen-reader-text {
border: 0; border: 0;
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%); clip-path: inset(50%);
height: 1px; height: 1px;
margin: -1px; margin: -1px;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
position: absolute !important; position: absolute !important;
width: 1px; width: 1px;
word-wrap: normal !important; word-wrap: normal !important;
} }
.screen-reader-text:focus { .screen-reader-text:focus {
background-color: #f1f1f1; background-color: #f1f1f1;
border-radius: 3px; border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important; clip: auto !important;
clip-path: none; clip-path: none;
color: #21759b; color: #21759b;
display: block; display: block;
font-size: 14px; font-size: 14px;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: bold; font-weight: bold;
height: auto; height: auto;
width: auto; width: auto;
top: 5px; top: 5px;
left: 5px; left: 5px;
line-height: normal; line-height: normal;
padding: 15px 23px 14px; padding: 15px 23px 14px;
text-decoration: none; text-decoration: none;
z-index: 100000; z-index: 100000;
} }
.background-image { .background-image {
background-repeat: no-repeat; background-repeat: no-repeat;
background-attachment: fixed; background-attachment: fixed;
background-size: cover; background-size: cover;
background-position: center center; background-position: center center;
}
// Prism JS Additionals
.highlight {
margin: 30px auto;
} }