1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 04:18:28 -04:00

uniform width on all pages

This commit is contained in:
Jake Jarvis 2020-04-24 10:12:13 -04:00
parent 70611f4d1c
commit d2a9736c9e
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
10 changed files with 59 additions and 55 deletions

View File

@ -17,7 +17,7 @@ $system-fonts-monospace: "SFMono-Regular", "Consolas", "Liberation Mono",
// stylelint-enable indentation
// Width at which to switch to mobile styles
$responsive-width: 820px;
$responsive-width: 780px;
// Fancy link underline settings
$link-underline-opacity: 40%;

View File

@ -22,7 +22,7 @@ footer {
div#row {
width: 100%;
max-width: 978px;
max-width: $max-width;
margin: 0 auto;
display: flex;
justify-content: space-between;

View File

@ -13,6 +13,11 @@ body {
}
main {
max-width: $max-width;
margin: 0 auto;
padding-left: 1.5em;
padding-right: 1.5em;
@include themed() {
color: t(color-text);
}

View File

@ -3,6 +3,8 @@
// Global Header Styles
header {
width: 100%;
padding: 0.25em 1.7em;
box-sizing: border-box;
@include themed() {
border-bottom: 1px solid t(color-kinda-light);
@ -11,8 +13,7 @@ header {
nav {
width: 100%;
max-width: 1032px;
padding: 0.25em 1.75em;
max-width: $max-width;
margin: 0 auto;
box-sizing: border-box;
display: flex;
@ -123,49 +124,51 @@ header {
// Responsive
@mixin responsive--header() {
header nav {
header {
padding: 0.1em 1.25em;
a#logo {
img,
svg {
width: 40px;
height: 60px;
}
nav {
a#logo {
img,
svg {
width: 40px;
height: 60px;
}
h1#name {
display: none;
}
}
ul {
font-size: 1.7em;
li {
margin-left: 0.85em;
a {
span.icon {
font-size: 0.9em;
}
// hide text next to emojis on mobile
span.text {
display: none;
}
&:hover {
transform: scale(1.4);
}
h1#name {
display: none;
}
}
// Dark mode toggle
button#dark-mode-toggle {
// TODO: figure out need for weird magic numbers here
height: 1.025em;
width: 0.75em;
margin-top: 0.125em;
ul {
font-size: 1.7em;
li {
margin-left: 0.85em;
a {
span.icon {
font-size: 0.9em;
}
// hide text next to emojis on mobile
span.text {
display: none;
}
&:hover {
transform: scale(1.4);
}
}
}
// Dark mode toggle
button#dark-mode-toggle {
// TODO: figure out need for weird magic numbers here
height: 1.025em;
width: 0.75em;
margin-top: 0.125em;
}
}
}
}

View File

@ -2,9 +2,8 @@
// Video Styles
main#etc {
max-width: $max-width;
padding: 1.5em 2em;
margin: 0 auto;
padding-top: 1.5em;
padding-bottom: 1.5em;
h1 {
margin-top: 0;

View File

@ -3,9 +3,8 @@
// Home Styles
main#home {
font-size: 1.1em;
max-width: 980px;
padding: 1.5em 1.5em 0.5em 1.5em;
margin: 0 auto;
padding-top: 1.5em;
padding-bottom: 0.5em;
h2 {
margin: 0 0 0.6em 0;

View File

@ -2,9 +2,8 @@
// Archive/List Styles
main#list {
max-width: 980px;
padding: 1.5em 1.5em 0.25em 1.5em;
margin: 0 auto;
padding-top: 1.5em;
padding-bottom: 0.25em;
section.year {
font-size: 1.05em;

View File

@ -2,9 +2,8 @@
// Post Styles
main#single {
max-width: $max-width;
padding: 1em 1.5em;
margin: 0 auto;
padding-top: 1em;
padding-bottom: 1em;
div#meta {
font-size: 0.85em;
@ -28,6 +27,7 @@ main#single {
h1#title {
margin-top: 0.3em;
margin-bottom: 0.6em;
margin-left: -0.03em; // TODO: why is this indented slightly?
font-size: 2.2em;
line-height: 1.3;
font-weight: 700;

View File

@ -2,7 +2,6 @@
// Video Styles
main#video {
margin: 0 auto;
padding: 1.5em 0;
text-align: center;

View File

@ -26,7 +26,7 @@ disableAliases = true
description = "Hi there! I'm a frontend web developer based in Boston, Massachusetts specializing in the JAMstack, modern JavaScript frameworks, and progressive web apps."
domain = "jarv.is"
mainSection = "notes"
pageMaxWidth = 910
pageMaxWidth = 940
defaultImage = "img/me_large.jpg"
github = "jakejarvis/jarv.is"
facebookAppID = "3357248167622283"