@font-face {
/* Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter). Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family : ' Inter ' ;
src : local ( ' Inter ' ) ,
url ( ' fonts/Inter.ttf ' ) ;
font-display : swap ;
}
@font-face {
/* Copyright 2014, 2015, 2016 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family : ' Source Serif Pro ' ;
src : local ( ' Source Serif Pro ' ) ,
url ( ' fonts/SourceSerifPro-Regular.ttf ' ) ;
font-display : swap ;
}
@font-face {
/* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family : ' Cascadia Code ' ;
src : local ( ' Cascadia Code ' ) ,
url ( ' fonts/CascadiaCode.ttf ' ) ;
font-display : swap ;
}
@import ' parts/_archive.scss ' ;
@import ' parts/_cards.scss ' ;
@import ' parts/_code.scss ' ;
@import ' parts/_header.scss ' ;
@import ' parts/_image.scss ' ;
@import ' parts/misc.scss ' ;
@import ' parts/table.scss ' ;
@import ' parts/home-banner.scss ' ;
@import ' parts/footer.scss ' ;
@import ' parts/theme-switch.scss ' ;
@import ' syntax/syntax-ayu-dark.scss ' ;
: root {
--max-layout-width : 1000 px ;
--normal-layout-width : 600 px ;
--medium-layout-width : 350 px ;
--small-layout-width : 200 px ;
font-family : ' Inter ' , Arial , Helvetica , sans-serif ;
line-height : 190 % ;
--code-font : ' Cascadia Code ' ;
--background-color : white ;
--bg-0 : #f0f0f0 ;
--bg-1 : #e7e7e7 ;
--bg-2 : #fefefe ;
--hover-color : white ;
--primary-color : #91D8E4 ;
--secondary-color : rgb ( 158 , 158 , 158 ) ;
--links : #78cfcb ;
--text-color : #222226 ;
--quote-color : #355f62 ;
--border-color : rgb ( 114 , 114 , 114 ) ;
--light-border-color : rgba ( 255 , 255 , 255 , 0 .1 ) ;
--meta-color : #757575 ;
--accent-color : #087E96 ;
--table-header-color : #BFEAF5 ;
}
[ data-theme = ' dark ' ] {
--background-color : #1f1f1f ;
--bg-0 : #2f2f2f ;
--bg-1 : rgba ( 133 , 133 , 133 , 0 .5 ) ;
--bg-2 : rgba ( 23 , 23 , 23 , 100 % ) ;
--primary-color : #7cc4d1 ;
--hover-color : white ;
--secondary-color : #696969 ;
--links : #8fdfe5 ;
--text-color : #eae9e9 ;
--quote-color : #a9c5c7 ;
--code : #ef476f ;
--border-color : rgb ( 0 , 0 , 0 ) ;
--light-border-color : rgba ( 255 , 255 , 255 , 0 .1 ) ;
--meta-color : #BBBBBB ;
--accent-color : #91e0ee ;
--table-header-color : #b7e4e4 ;
. invertible-image {
filter : invert ( .88 ) ;
}
. dimmable-image {
filter : brightness ( .8 ) contrast ( 1 .2 ) ;
}
}
html {
background-color : var ( -- background-color ) ;
color : var ( -- text - color ) ;
line-height : 1 .6 em ;
}
body {
margin : 0 ;
padding : 0 ;
}
. content {
max-width : var ( -- max-layout-width ) ;
margin : 0 auto ;
padding : 0 24 px ;
word-wrap : break-word ;
min-height : 80 vh ;
}
article {
max-width : calc ( var ( -- max-layout-width ) - 14 rem ) ;
margin : 0 auto ;
}
. section-title {
display : block ;
font-size : 2 .2 em ;
margin-top : 0 .67 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : 550 ;
}
h1 {
display : block ;
font-size : 2 em ;
font-size : 1 .375 em ;
margin-top : 0 .67 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : 550 ;
}
h2 {
display : block ;
font-size : 1 .2 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : 550 ;
}
h3 {
display : block ;
font-size : 1 .15 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : 550 ;
}
h4 {
display : block ;
font-size : 1 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : 550 ;
}
h5 {
display : block ;
font-size : 1 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : 550 ;
}
p {
font-family : ' Source Serif Pro ' , serif ;
margin-top : 0 .4 rem ;
margin-bottom : 2 .3 vmin ;
line-height : 2 rem ;
font-size : 1 em ;
}
@media only screen and ( max-width : 1000 px ) {
. content {
max-width : var ( -- normal - layout-width ) ;
}
}
@media only screen and ( max-width : 600 px ) {
. content {
max-width : var ( -- medium - layout-width ) ;
}
}
@media only screen and ( max-width : 300 px ) {
. content {
max-width : var ( -- small - layout-width ) ;
}
}
@media all and ( min-width : 640 px ) {
html {
font-size : 16 .5 px ;
}
}
@media all and ( min-width : 720 px ) {
html {
font-size : 17 px ;
}
}
@media all and ( min-width : 960 px ) {
html {
font-size : 20 px ;
}
}