diff --git a/assets/fonts/SourceSansPro-Bold.ttf b/assets/fonts/SourceSansPro-Bold.ttf deleted file mode 100644 index b8879af..0000000 Binary files a/assets/fonts/SourceSansPro-Bold.ttf and /dev/null differ diff --git a/assets/fonts/SourceSansPro-Light.ttf b/assets/fonts/SourceSansPro-Light.ttf deleted file mode 100644 index 9b0e83d..0000000 Binary files a/assets/fonts/SourceSansPro-Light.ttf and /dev/null differ diff --git a/assets/fonts/SourceSansPro-Regular.ttf b/assets/fonts/SourceSansPro-Regular.ttf deleted file mode 100644 index 98e8579..0000000 Binary files a/assets/fonts/SourceSansPro-Regular.ttf and /dev/null differ diff --git a/assets/sass/code.scss b/assets/sass/code.scss index 660b1e6..dd4a795 100644 --- a/assets/sass/code.scss +++ b/assets/sass/code.scss @@ -1,18 +1,4 @@ -code { - background: $dark; - border-radius: .4rem; - margin: 0 .2rem; - padding: .2rem .5rem; - white-space: nowrap; -} - -p code { - font-size: .9rem !important; -} - -li code { - font-size: .9rem !important; -} +code { white-space: nowrap; } pre { background-color: $background-color !important; @@ -27,5 +13,6 @@ pre { max-width: 100%; overflow-x: auto; border-left: .3rem solid $code-edge; + border-radius: .4rem; } } diff --git a/assets/sass/fonts.scss b/assets/sass/fonts.scss deleted file mode 100644 index 928985a..0000000 --- a/assets/sass/fonts.scss +++ /dev/null @@ -1,25 +0,0 @@ -/* -You may download the entire Source Sans Pro font family here: -https://fonts.google.com/specimen/Source+Sans+Pro?query=Source+Sans+Pro -*/ -@font-face { - font-family: 'Source Sans Pro'; - src: url('/fonts/SourceSansPro-Light.ttf') format('truetype'); - font-weight: light; - font-style: normal; -} - -@font-face { - font-family: 'Source Sans Pro'; - src: url('/fonts/SourceSansPro-Regular.ttf') format('truetype'); - font-weight: normal; - font-style: normal; -} - -@font-face { - font-family: 'Source Sans Pro'; - src: url('/fonts/SourceSansPro-Bold.ttf') format('truetype'); - font-weight: bold; - font-style: normal; -} - diff --git a/assets/sass/main.scss b/assets/sass/main.scss index ca4264b..a625247 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -1,7 +1,6 @@ @import 'colors.scss'; @import 'cards.scss'; @import 'code.scss'; -@import 'fonts.scss'; @mixin screen-max($max) { @media (max-width: $max - 1) { @@ -14,95 +13,51 @@ body { color: $font-color; margin: 0px; overflow-y: scroll; - font-family: 'Source Sans Pro'; + font-family: 'Helvetica'; + font-size: 1.1rem; } +h2 {font-size: 1.2rem;} + header { background-color: $top-bar; box-shadow: 0px 5px 10px black; - .spread { - gap: 24px; - display: flex; - align-items: flex-end; - justify-content: space-between; - @include screen-max(1000px){justify-content: center;} - ul { - margin: 0px; - padding: 0px; - list-style-type: none; - a { - text-align: center; - margin: auto; - font-weight: bold; - text-decoration: none; - color: $font-color-alternate; - } - } - } nav { - max-width: 1400px; - margin: 0px auto; - padding: 8px; - flex-wrap: wrap; - a { - @include screen-max(1000px){flex-basis: 100%;} - } - img { - max-width: 300px; - display: block; - @include screen-max(1000px){margin: auto; flex-basis: 100%;} - } - } -} + @include screen-max(500px){text-align: center;} -a { - color: $link-color; + div {display: inline-block;} + + img { max-width: 300px; } - &:visited, &:hover { - color: $link-color-visited; + a { + margin-right: 12px; + font-weight: bold; + text-decoration: none; + &, &:visited, &:hover {color: $font-color-alternate;} + } } } -main { - max-width: 820px; - margin: auto; - @include screen-max(840px){padding: 0px 16px;} +header, main, section {padding: 0 16px;} - img { - width: 100%; - } -} +nav, main, section {max-width: 1200px; margin: auto;} +main img {max-width: 100%} -.center-text { - text-align: center; - flex-basis: 100%; -} +footer {text-align: center;} -a, p, li, h2 { - font-size: 1.25rem; -} -img { - object-fit: cover; +a { + color: $link-color; + &:visited, &:hover { color: $link-color-visited; } } -img.featured { +img.featured{aspect-ratio: 4/3;} +img.featured, img.author { + display: block; border-radius: 8px; + margin: 12px 0; + object-fit: cover; max-height: 500px; - max-width: 100%; - display: block; -} - -.margin { - margin: 12px auto; -} - -.small-text { - font-size: 1rem; -} - -.large-text { - font-size: 2rem; } .left-to-right { @@ -117,26 +72,14 @@ img.featured { align-items: center; } -section { - max-width: 1000px; - margin: 16px auto; - padding: 8px; -} - section.article-list { + margin: 8px 0px; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; } -.center-box { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} - .fill-wh { width: 100%; height: 100% diff --git a/layouts/404.html b/layouts/404.html index 180ba9f..f369e15 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,7 +1,7 @@ {{ define "main" }} -