1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 05:38:26 -04:00
jarv.is/assets/sass/pages/_home.scss
2019-11-21 18:12:35 -05:00

184 lines
3.1 KiB
SCSS

@charset "UTF-8";
// Home Styles
body#home {
font-size: 1.5em;
font-weight: 300;
line-height: 1.5;
max-width: 1070px;
padding: 50px 65px;
a {
// Loop through $colors-home -- the main reason I switched to SASS :)
@each $id, $color in $colors-home {
&##{$id} {
color: $color;
background-image: underline-hack($color);
}
}
}
h1 {
margin: 0;
font-size: 1.5em;
font-weight: 500;
line-height: 1.2;
a {
color: inherit;
}
}
h2 {
margin: 0.6em 0;
font-size: 1.2em;
font-weight: 400;
line-height: 1.4;
}
p {
margin: 0.8em 0;
}
sup {
top: -0.5em;
font-size: 0.5em;
line-height: 0;
position: relative;
vertical-align: middle;
}
img#me {
float: right;
margin: 0 0 0.75em 0.75em;
padding: 4px;
border: 1px solid $color-super-light;
width: 160px;
height: 160px;
}
// easter egg emoji cursor
a#birthday {
&:hover {
cursor: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzNiIgdmlld3BvcnQ9IjAgMCAxMDAgMTAwIiBzdHlsZT0iZm9udC1zaXplOjE4cHgiPjx0ZXh0IHk9IjUwJSI+8J+nmjwvdGV4dD48L3N2Zz4=) 5 5, auto;
}
}
// non-link colors
span {
&#serverless {
color: $color-serverless;
}
&#shh {
color: $color-medium-light;
}
}
footer {
display: flex;
justify-content: space-between;
div {
vertical-align: middle;
height: 100%;
&#blog {
width: 40%;
text-align: left;
font-size: 0.9em;
line-height: 2;
span {
margin-right: 4px;
}
}
&#info {
width: 40%;
text-align: right;
font-size: 0.55em;
line-height: 3.35; // magic numbers don't judge
color: $color-light;
a {
color: inherit;
&#source {
border-bottom: 1px solid $color-super-light;
}
}
}
&#panda {
width: 20%;
text-align: center;
font-size: 1.25em;
line-height: 1.4; // magic numbers don't judge
a {
display: inline-block;
transition: transform 0.2s ease-in-out;
&:hover {
transform: scale(1.6) rotate(10deg);
}
}
}
}
}
h1 span#wave {
display: inline-block;
animation-name: wave;
animation-duration: 2.5s;
animation-iteration-count: infinite;
transform-origin: 70% 70%;
}
}
// Responsive
@mixin responsive--home() {
body#home {
font-size: 1em;
padding: 25px;
p {
font-size: 1.1em;
}
img#me {
width: 68px;
height: 68px;
padding: 2px;
}
footer div {
&#panda {
display: none;
}
&#blog,
&#info {
width: 50%;
}
&#blog {
font-size: 1em;
line-height: 1.5;
}
&#info {
font-size: 0.7em;
line-height: 2.1; // magic numbers don't judge
span#copyright::after {
content: "\A";
white-space: pre;
}
}
}
}
}