mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-18 00:00:48 -05:00
straighten up header elements
This commit is contained in:
@@ -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: 830px;
|
||||||
|
|
||||||
// Fancy link underline settings
|
// Fancy link underline settings
|
||||||
$link-underline-opacity: 40%;
|
$link-underline-opacity: 40%;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// Global Footer Styles
|
// Global Footer Styles
|
||||||
footer {
|
footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.005em;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
padding: 1.25em 1.75em;
|
padding: 1.25em 1.75em;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// Global Header Styles
|
// Global Header Styles
|
||||||
header {
|
header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.25em 1.7em;
|
padding: 0 1.7em;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
@include themed() {
|
@include themed() {
|
||||||
@@ -25,19 +25,19 @@ header {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
@include themed() {
|
@include themed() {
|
||||||
color: t(color-medium-dark);
|
color: t(color-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1#name {
|
h1#name {
|
||||||
margin-left: 0.75em;
|
margin: 0.8em 0 0.8em 0.725em;
|
||||||
font-size: 1.4em;
|
font-size: 1.35em;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
width: 30px;
|
width: 28px;
|
||||||
height: 45px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// mix up logo colors on hover
|
// mix up logo colors on hover
|
||||||
@@ -65,13 +65,14 @@ header {
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
line-height: 1;
|
letter-spacing: -0.002em;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-left: 1.6em;
|
margin-left: 1.7em;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -125,14 +126,14 @@ header {
|
|||||||
// Responsive
|
// Responsive
|
||||||
@mixin responsive--header() {
|
@mixin responsive--header() {
|
||||||
header {
|
header {
|
||||||
padding: 0.1em 1.25em;
|
padding: 1em 1.25em;
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
a#logo {
|
a#logo {
|
||||||
img,
|
img,
|
||||||
svg {
|
svg {
|
||||||
width: 40px;
|
width: 36px;
|
||||||
height: 60px;
|
height: 54px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1#name {
|
h1#name {
|
||||||
@@ -141,10 +142,10 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
font-size: 1.7em;
|
font-size: 1.6em;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
margin-left: 1em;
|
margin-left: 1.15em;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
span.icon {
|
span.icon {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ disableAliases = true
|
|||||||
weight = -100
|
weight = -100
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Notes"
|
name = "Notes"
|
||||||
pre = "📝"
|
pre = "🗒"
|
||||||
url = "/notes/"
|
url = "/notes/"
|
||||||
weight = -90
|
weight = -90
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
|||||||
@@ -231,7 +231,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<a id="logo" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
|
<a id="logo" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
|
||||||
{{ partialCached "svg/logo.svg" (dict "width" 30 "height" 45) }}
|
{{ partial "svg/logo.svg" (dict "width" 30 "height" 45) }}
|
||||||
<span id="name">{{ .Site.Title }}</span>
|
<span id="name">{{ .Site.Title }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<a class="no-underline" href="{{ .Site.BaseURL }}" id="logo" rel="me author" aria-label="{{ .Site.Title }}">
|
<a class="no-underline" href="{{ .Site.BaseURL }}" id="logo" rel="me author" aria-label="{{ .Site.Title }}">
|
||||||
{{ partialCached "svg/logo.svg" (dict "width" 30 "height" 45) }}
|
{{ partial "svg/logo.svg" (dict "width" 28 "height" 40) }}
|
||||||
<h1 id="name">{{ .Site.Title }}</h1>
|
<h1 id="name">{{ .Site.Title }}</h1>
|
||||||
</a>
|
</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user