forked from autonomic-cooperative/sophie-lewis-hugo
aboutme page mostly done, footer mostly done
This commit is contained in:
42
themes/sophie-lewis/assets/scss/font.scss
Normal file
42
themes/sophie-lewis/assets/scss/font.scss
Normal file
@ -0,0 +1,42 @@
|
||||
@mixin define-font-family($name, $weight, $style, $filename) {
|
||||
font-family: $name;
|
||||
|
||||
src:
|
||||
url("../font/woff2/#{$filename}") format("woff2"),
|
||||
url("../font/ttf/#{$filename}") format("ttf");
|
||||
font-weight: $weight;
|
||||
@if $style {
|
||||
font-style: $style;
|
||||
}
|
||||
}
|
||||
|
||||
$sans_font: IBMPlexSans;
|
||||
$serif_font: IBMPlexSerif;
|
||||
|
||||
@font-face {
|
||||
@include define-font-family($sans_font, normal, italic, 'IBMPlexSans-Italic.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($sans_font, normal, null, 'IBMPlexSans-Regular.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($sans_font, 200, null, 'IBMPlexSans-Light.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($sans_font, bold, italic, 'IBMPlexSans-BoldItalic.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($sans_font, 700, null, 'IBMPlexSans-Medium.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($sans_font, lighter, italic, 'IBMPlexSans-LightItalic.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($serif_font, normal, italic, 'IBMPlexSerif-Italic.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($serif_font, lighter, null, 'IBMPlexSerif-Light.woff2')
|
||||
}
|
||||
@font-face {
|
||||
@include define-font-family($serif_font, lighter, italic, 'IBMPlexSerif-LightItalic.woff2')
|
||||
}
|
@ -2,9 +2,24 @@ $section-padding: 1rem 0rem;
|
||||
$section-padding-desktop: $section-padding;
|
||||
$section-padding-large: $section-padding;
|
||||
|
||||
$gray: #707070;
|
||||
$gray: #adadad;
|
||||
$text-colour: #1F1F1F;
|
||||
|
||||
|
||||
|
||||
@import "./bulma/bulma.sass";
|
||||
@import "./font.scss";
|
||||
|
||||
body {
|
||||
color: $text-colour;
|
||||
}
|
||||
|
||||
$hr-width: 0.15rem;
|
||||
$hr-color: $gray;
|
||||
hr {
|
||||
background-color: $hr-color;
|
||||
height: $hr-width;
|
||||
}
|
||||
|
||||
.nav-tabs.tabs {
|
||||
li:first-of-type a {
|
||||
@ -14,17 +29,21 @@ $gray: #707070;
|
||||
justify-content: right !important;
|
||||
}
|
||||
a {
|
||||
padding: 0.5rem;
|
||||
padding: 0.5rem 0;
|
||||
font-size: 1.3rem;
|
||||
color: $text-colour;
|
||||
border-bottom-color: $hr-color;
|
||||
border-bottom-width: $hr-width;
|
||||
:hover {
|
||||
border-bottom-color: $hr-color;
|
||||
}
|
||||
}
|
||||
|
||||
padding: 0.8rem 0;
|
||||
|
||||
.is-active a {
|
||||
text-decoration: underline;
|
||||
font-weight: bold;
|
||||
color: $tabs-link-color;
|
||||
border-bottom-color: $tabs-border-bottom-color;
|
||||
color: $text-colour;
|
||||
border-bottom-color: $hr-color;
|
||||
}
|
||||
}
|
||||
|
||||
@ -37,15 +56,15 @@ $gray: #707070;
|
||||
padding-top: 8em;
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: $gray;
|
||||
height: 0.1rem;
|
||||
}
|
||||
|
||||
#content {
|
||||
font-size: 1.1rem;
|
||||
p {
|
||||
padding-bottom: 2rem;
|
||||
strong,i,b,em {
|
||||
font-family: $sans_font
|
||||
}
|
||||
em {
|
||||
font-style: italic;
|
||||
font-weight: lighter !important;
|
||||
|
||||
}
|
||||
table {
|
||||
table-layout: fixed;
|
||||
@ -57,11 +76,36 @@ hr {
|
||||
td {
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
hr {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
iframe {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
#content.videos {
|
||||
p:has(em) {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
#content.about hr ~ p {
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.headshot {
|
||||
img {
|
||||
border-radius: 100%;
|
||||
border-width: 0.15rem;
|
||||
border-color: $gray;
|
||||
border-style: solid;
|
||||
}
|
||||
}
|
||||
|
||||
#content:not(.videos) p {
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
#content-column {
|
||||
@media all and (max-width: 1216px) {
|
||||
@ -72,4 +116,43 @@ hr {
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: $serif_font;
|
||||
font-style: italic;
|
||||
font-weight: 200;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-family: $sans_font;
|
||||
font-weight: 200;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: $serif_font;
|
||||
b {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
nav,footer {
|
||||
font-family: $sans_font;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.cv-entry {
|
||||
padding: 1rem 0;
|
||||
font-family: $sans_font;
|
||||
.job-title {
|
||||
font-weight: 400;
|
||||
}
|
||||
.job-date {
|
||||
font-weight: 200;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
hr {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user