@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 : 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 : url( 'fonts/SourceSerifPro-Regular.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 % ;
--bg-0 : #fff ;
--bg-1 : #e7e7e7 ;
--bg-2 : #fefefe ;
--hover-color : white ;
--background-color : #fff ;
--primary-color : #9fca5b ;
--secondary-color : rgb ( 158 , 158 , 158 ) ;
--links : #799351 ;
--text-color : #222226 ;
--border-color : rgb ( 114 , 114 , 114 ) ;
--light-border-color : rgba ( 255 , 255 , 255 , 0 .1 ) ;
--input-back : #161616 ;
--input-color : #294797 ;
--input-back : rgb ( 158 , 158 , 158 ) ;
--input-color : #e0a615 ;
--meta-color : rgb ( 53 , 53 , 53 ) ;
--accent-color : #aacb73 ;
}
[ data-theme = ' dark ' ] {
--bg-0 : #818181 ;
--bg-1 : rgba ( 133 , 133 , 133 , 0 .5 ) ;
--bg-2 : rgba ( 23 , 23 , 23 , 100 % ) ;
--primary-color : #ef5350 ;
--hover-color : white ;
--background-color : #1f1f1f ;
--secondary-color : #696969 ;
--highlights : #b35a5a ;
--links : #d35d6e ;
--text-color : #e1e1e1 ;
--code : #ef476f ;
--border-color : rgb ( 0 , 0 , 0 ) ;
--light-border-color : rgba ( 255 , 255 , 255 , 0 .1 ) ;
--input-back : #4b4a4a ;
--input-color : #294797 ;
--meta-color : rgb ( 198 , 197 , 197 ) ;
--accent-color : #ff9a8c ;
. invertable-image {
filter : invert ( .88 ) ;
}
}
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 ;
}
. 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 : 650 ;
}
h1 {
display : block ;
font-size : 2 em ;
margin-top : 0 .67 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : 650 ;
}
h2 {
display : block ;
font-size : 1 .7 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : bold ;
}
h3 {
display : block ;
font-size : 1 .5 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : bold ;
}
h4 {
display : block ;
font-size : 1 .2 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : bold ;
}
h5 {
display : block ;
font-size : 1 em ;
margin-top : 0 .83 em ;
margin-bottom : 0 em ;
margin-left : 0 ;
margin-right : 0 ;
font-weight : bold ;
}
p {
font-family : ' Source Serif Pro ' , serif ;
font-size : 1 .2 em ;
}
img {
border : none ;
}
@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 ;
}
}