From 961670855812c72297e498e536c560992644e256 Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Sun, 9 Aug 2020 14:46:09 +0200 Subject: Update CSS --- assets/sass/researcher.scss | 91 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 88 insertions(+), 3 deletions(-) (limited to 'assets/sass/researcher.scss') diff --git a/assets/sass/researcher.scss b/assets/sass/researcher.scss index 6f99375..0b7245c 100644 --- a/assets/sass/researcher.scss +++ b/assets/sass/researcher.scss @@ -1,8 +1,6 @@ @import "variables"; -@import "typography"; * { - color: $dark; font-family: "Inconsolata"; line-height: normal; } @@ -16,7 +14,94 @@ .nav-link { @extend %link-default; } -footer { +#content { + a { + @extend %link-default; + } + blockquote { + border-left: 4px solid; + font-style: italic; + margin: $margin-y 0; + padding: 8px 8px; + & p { + margin: 0; + } + } + code { + color: $green; + } + h1, h2, h3, h4, h5, h6 { + font-size: medium; + font-weight: bold; + line-height: normal; + margin: 1.2rem 0 0.8rem 0; + } + @for $i from 1 through 4 { + h#{$i} { + font-size: 1.2rem + 0.2 * (4 - $i); + } + } + img { + display: block; + margin: $margin-y auto; + } + ol { + counter-reset: list; + list-style: none; + padding-left: 0; + & > li { + padding-left: 4ch; + text-indent: -4ch; + margin: 4px 0; + &:before { + content: "[" counter(list, decimal) "] "; + counter-increment: list; + } + } + } + pre code { + color: inherit; + } + ul { + list-style: inside; + padding-left: 0; + & > li { + margin: 4px 0; + } + } + table { + margin: $margin-y auto; + width: 100%; + & tr { + background-color: white; + border: 1px solid #cccccc; + & td { + @extend %table-cell; + } + & th { + @extend %table-cell; + font-weight: bold; + } + &:nth-child(2n) { + background-color: #f8f8f8; + } + } + } + .avatar > img { + border-radius: 50%; + float: right; + margin: -8px 0 0 16px; + height: $avatar-size; + width: $avatar-size; + } + .highlight { + margin: $margin-y auto; + & > pre { + padding: 8px 8px; + } + } +} +#footer { a { @extend %link-dark; } -- cgit v1.2.3