mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
swap logo in header with my face 📸
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
// Global Header Styles
|
||||
header {
|
||||
width: 100%;
|
||||
padding: 0 1.5em;
|
||||
padding: 0.7em 1.5em;
|
||||
border-bottom: 1px solid;
|
||||
|
||||
@include colors() {
|
||||
@ -26,17 +26,22 @@ header {
|
||||
color: c(medium-dark);
|
||||
}
|
||||
|
||||
span#name {
|
||||
margin: 1.1em 0 1.1em 0.8em;
|
||||
font-size: 1.35em;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.01em;
|
||||
img#selfie {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border: 1px solid;
|
||||
border-radius: 50%;
|
||||
|
||||
@include colors() {
|
||||
border-color: c(light);
|
||||
}
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 28px;
|
||||
height: 40px;
|
||||
span#name {
|
||||
margin: 0 0.6em;
|
||||
font-size: 1.25em;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
// mix up logo colors on hover
|
||||
@ -45,16 +50,8 @@ header {
|
||||
color: c(links);
|
||||
}
|
||||
|
||||
svg {
|
||||
g#c1 {
|
||||
fill: $color-logo2;
|
||||
}
|
||||
g#c2 {
|
||||
fill: $color-logo3;
|
||||
}
|
||||
g#c3 {
|
||||
fill: $color-logo1;
|
||||
}
|
||||
img#selfie {
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -122,6 +119,7 @@ header {
|
||||
|
||||
height: 1.56em; // 24.33px, don't ask
|
||||
width: 1.56em;
|
||||
margin-top: -0.05em;
|
||||
margin-left: 1.4em;
|
||||
margin-right: -0.3em; // weirdness w/ svg ratio
|
||||
cursor: pointer;
|
||||
@ -136,19 +134,24 @@ header {
|
||||
// Responsive
|
||||
@mixin responsive--header() {
|
||||
header {
|
||||
padding: 1em 1.25em;
|
||||
padding: 0.5em 1.25em;
|
||||
|
||||
nav {
|
||||
a#logo {
|
||||
img,
|
||||
svg {
|
||||
width: 36px;
|
||||
height: 54px;
|
||||
img#selfie {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
span#name {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
img#selfie {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
@ -179,7 +182,7 @@ header {
|
||||
// TODO: figure out need for weird magic numbers here
|
||||
height: 1.08em; // ~27px, don't ask
|
||||
width: 1.08em;
|
||||
margin-top: 0.175em;
|
||||
margin-top: 0.15em;
|
||||
margin-left: 1em;
|
||||
margin-right: -0.2em; // weirdness w/ svg ratio
|
||||
}
|
||||
|
Reference in New Issue
Block a user