1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-13 01:45:30 -04:00

uniform width on all pages

This commit is contained in:
2020-04-24 10:12:13 -04:00
parent 70611f4d1c
commit d2a9736c9e
10 changed files with 59 additions and 55 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ $system-fonts-monospace: "SFMono-Regular", "Consolas", "Liberation Mono",
// stylelint-enable indentation // stylelint-enable indentation
// Width at which to switch to mobile styles // Width at which to switch to mobile styles
$responsive-width: 820px; $responsive-width: 780px;
// Fancy link underline settings // Fancy link underline settings
$link-underline-opacity: 40%; $link-underline-opacity: 40%;
+1 -1
View File
@@ -22,7 +22,7 @@ footer {
div#row { div#row {
width: 100%; width: 100%;
max-width: 978px; max-width: $max-width;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
+5
View File
@@ -13,6 +13,11 @@ body {
} }
main { main {
max-width: $max-width;
margin: 0 auto;
padding-left: 1.5em;
padding-right: 1.5em;
@include themed() { @include themed() {
color: t(color-text); color: t(color-text);
} }
+42 -39
View File
@@ -3,6 +3,8 @@
// Global Header Styles // Global Header Styles
header { header {
width: 100%; width: 100%;
padding: 0.25em 1.7em;
box-sizing: border-box;
@include themed() { @include themed() {
border-bottom: 1px solid t(color-kinda-light); border-bottom: 1px solid t(color-kinda-light);
@@ -11,8 +13,7 @@ header {
nav { nav {
width: 100%; width: 100%;
max-width: 1032px; max-width: $max-width;
padding: 0.25em 1.75em;
margin: 0 auto; margin: 0 auto;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
@@ -123,49 +124,51 @@ header {
// Responsive // Responsive
@mixin responsive--header() { @mixin responsive--header() {
header nav { header {
padding: 0.1em 1.25em; padding: 0.1em 1.25em;
a#logo { nav {
img, a#logo {
svg { img,
width: 40px; svg {
height: 60px; width: 40px;
} height: 60px;
}
h1#name { h1#name {
display: none; 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);
}
} }
} }
// Dark mode toggle ul {
button#dark-mode-toggle { font-size: 1.7em;
// TODO: figure out need for weird magic numbers here
height: 1.025em; li {
width: 0.75em; margin-left: 0.85em;
margin-top: 0.125em;
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;
}
} }
} }
} }
+2 -3
View File
@@ -2,9 +2,8 @@
// Video Styles // Video Styles
main#etc { main#etc {
max-width: $max-width; padding-top: 1.5em;
padding: 1.5em 2em; padding-bottom: 1.5em;
margin: 0 auto;
h1 { h1 {
margin-top: 0; margin-top: 0;
+2 -3
View File
@@ -3,9 +3,8 @@
// Home Styles // Home Styles
main#home { main#home {
font-size: 1.1em; font-size: 1.1em;
max-width: 980px; padding-top: 1.5em;
padding: 1.5em 1.5em 0.5em 1.5em; padding-bottom: 0.5em;
margin: 0 auto;
h2 { h2 {
margin: 0 0 0.6em 0; margin: 0 0 0.6em 0;
+2 -3
View File
@@ -2,9 +2,8 @@
// Archive/List Styles // Archive/List Styles
main#list { main#list {
max-width: 980px; padding-top: 1.5em;
padding: 1.5em 1.5em 0.25em 1.5em; padding-bottom: 0.25em;
margin: 0 auto;
section.year { section.year {
font-size: 1.05em; font-size: 1.05em;
+3 -3
View File
@@ -2,9 +2,8 @@
// Post Styles // Post Styles
main#single { main#single {
max-width: $max-width; padding-top: 1em;
padding: 1em 1.5em; padding-bottom: 1em;
margin: 0 auto;
div#meta { div#meta {
font-size: 0.85em; font-size: 0.85em;
@@ -28,6 +27,7 @@ main#single {
h1#title { h1#title {
margin-top: 0.3em; margin-top: 0.3em;
margin-bottom: 0.6em; margin-bottom: 0.6em;
margin-left: -0.03em; // TODO: why is this indented slightly?
font-size: 2.2em; font-size: 2.2em;
line-height: 1.3; line-height: 1.3;
font-weight: 700; font-weight: 700;
-1
View File
@@ -2,7 +2,6 @@
// Video Styles // Video Styles
main#video { main#video {
margin: 0 auto;
padding: 1.5em 0; padding: 1.5em 0;
text-align: center; text-align: center;
+1 -1
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." 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" domain = "jarv.is"
mainSection = "notes" mainSection = "notes"
pageMaxWidth = 910 pageMaxWidth = 940
defaultImage = "img/me_large.jpg" defaultImage = "img/me_large.jpg"
github = "jakejarvis/jarv.is" github = "jakejarvis/jarv.is"
facebookAppID = "3357248167622283" facebookAppID = "3357248167622283"