mirror of https://github.com/andrewgioia/home.git
128 lines
2.7 KiB
SCSS
128 lines
2.7 KiB
SCSS
/*! AndrewGioia.com style definitions v7.0.1 */
|
|
|
|
// normalize
|
|
@import "../../node_modules/normalize.css/normalize";
|
|
|
|
// variables
|
|
$version: '1.0.3';
|
|
$bg-light: #f3f3f1;
|
|
$font-color-navy: #002953;
|
|
$font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
$font-size-base: 16px;
|
|
$screen-mobile: 640px;
|
|
$screen-tablet: 768px;
|
|
$screen-laptop: 1024px;
|
|
$screen-display: 1280px;
|
|
$screen-full: 1440px;
|
|
|
|
// icons
|
|
@import "icons";
|
|
|
|
// fit and finish
|
|
body {
|
|
background: $bg-light;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: $font-size-base;
|
|
height: 100vh;
|
|
justify-content: space-between;
|
|
overflow: hidden;
|
|
width: 100vw;
|
|
}
|
|
|
|
main {
|
|
border-top: 1vmin solid #fff;
|
|
padding: 6vmin;
|
|
|
|
h1 {
|
|
color: $font-color-navy;
|
|
font-family: $font-family-base;
|
|
font-size: 4rem; // basic fallback
|
|
font-size: 10vmin; // premium fallback
|
|
font-size: max(10vmin, 24px);
|
|
font-weight: 700;
|
|
line-height: 1.15;
|
|
margin: 0;
|
|
|
|
span.who {
|
|
display: block;
|
|
font-weight: 900;
|
|
}
|
|
|
|
a {
|
|
color: #0069ff;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: start;
|
|
padding: 6vmin;
|
|
|
|
a {
|
|
font-size: 3rem; // basic fallback
|
|
font-size: 5vmin; // premium fallback
|
|
font-size: max(5vmin, 32px);
|
|
margin-right: 4vmin;
|
|
|
|
&.github {
|
|
color: #24292e;
|
|
}
|
|
|
|
&.mastodon {
|
|
color: #3088d4;
|
|
}
|
|
|
|
&.email {
|
|
color: #ef5777;
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
position: relative;
|
|
text-decoration: none;
|
|
|
|
// novelty arrow
|
|
&::after {
|
|
color: inherit;
|
|
content: $icon-arrow;
|
|
display: block;
|
|
font-family: 'andrew';
|
|
font-size: 75%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
-webkit-transform: translateY(-20%) translateX(80%);
|
|
-moz-transform: translateY(-20%) translateX(80%);
|
|
transform: translateY(-20%) translateX(80%);
|
|
transition: opacity 150ms ease-in-out, margin-top 150ms ease-in-out;
|
|
}
|
|
|
|
// show the arrow on hover
|
|
&:hover::after {
|
|
display: block;
|
|
margin-top: -3px;
|
|
opacity: 100;
|
|
}
|
|
|
|
}
|
|
|
|
// media queries
|
|
@media only screen and (min-width: $screen-display) {
|
|
main {
|
|
padding-right: 20vmin;
|
|
}
|
|
}
|
|
@media only screen and (min-width: $screen-full) {
|
|
main {
|
|
padding-right: 32vmin;
|
|
}
|
|
}
|