1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:46:39 -04:00

normalize font sizes

This commit is contained in:
2021-04-03 07:46:13 -04:00
parent dc24d847bf
commit 42355c76ec
117 changed files with 52 additions and 47 deletions

View File

@ -1,8 +1,8 @@
@charset "UTF-8";
div#content {
font-size: 0.935em; // ~15px
letter-spacing: -0.008em;
font-size: 0.925em;
letter-spacing: -0.004em;
line-height: 1.7;
h1,

View File

@ -6,6 +6,9 @@ body {
height: 100%;
margin: 0 auto;
scroll-behavior: smooth;
// global base font size:
font-size: 0.975em;
}
// manually setting light/dark mode backgrounds and bulb icon

View File

@ -29,9 +29,10 @@ header {
}
h1#name {
margin: 0.95em 0 0.95em 0.725em;
margin: 1.1em 0 1.1em 0.725em;
font-size: 1.35em;
font-weight: 500;
line-height: 1;
letter-spacing: -0.01em;
}
@ -67,12 +68,10 @@ header {
align-items: center;
margin: 0;
padding: 0;
font-size: 1.2em;
letter-spacing: -0.002em;
li {
text-align: right;
margin-left: 1.7em;
margin-left: 2em;
a {
display: inline-block;
@ -83,7 +82,7 @@ header {
}
&:hover {
transform: scale(1.1);
transform: scale(1.15);
@include colors() {
color: c(links);
@ -91,14 +90,15 @@ header {
}
span.icon {
font-size: 1.15em;
font-size: 1.35em;
vertical-align: -0.075em;
}
span.text {
font-size: 0.8em;
font-size: 0.95em;
font-weight: 500;
margin-left: 0.5em;
letter-spacing: -0.002em;
margin-left: 0.55em;
}
}
@ -123,7 +123,7 @@ header {
height: 1.5em;
width: 1em;
margin-left: 1.7em;
margin-left: 2em;
cursor: pointer;
// hidden by default in case user's JS is disabled, switches to `block` onload in dark-mode.js