portfolio/assets/styles/main.scss

168 lines
2.8 KiB
SCSS
Raw Permalink Normal View History

@use 'sass:math';
@font-face {
font-family: LibreBaskervilleRegular;
src: url('/LibreBaskerville-Regular.woff');
}
2022-08-02 20:09:45 +00:00
$lg-breakpoint: 1500px;
$md-breakpoint: 1000px;
$sm-breakpoint: 900px;
$xs-breakpoint: 400px;
2022-06-21 10:33:35 +00:00
$primary: #4ba05f;
$secondary: #a04b8c;
@mixin scrimGradient($startColor: $color-black, $direction: 180deg) {
$scrimCoordinates: (
0: 1,
19: 0.738,
34: 0.541,
47: 0.382,
56.5: 0.278,
65: 0.194,
73: 0.126,
80.2: 0.075,
86.1: 0.042,
91: 0.021,
95.2: 0.008,
98.2: 0.002,
100: 0
);
$hue: hue($startColor);
$saturation: saturation($startColor);
$lightness: lightness($startColor);
$stops: ();
@each $colorStop, $alphaValue in $scrimCoordinates {
$stop: hsla($hue, $saturation, $lightness, $alphaValue) percentage(math.div($colorStop,100));
$stops: append($stops, $stop, comma);
}
background: linear-gradient($direction, $stops);
}
2022-06-21 10:33:35 +00:00
@import './reset.scss';
@import './components/intro.scss';
2022-06-21 10:33:35 +00:00
@import './components/profile.scss';
@import './components/projects.scss';
@import './components/technologies.scss';
@import './components/links.scss';
2022-06-21 10:33:35 +00:00
@import './components/typography.scss';
@import './components/footer.scss';
@import './components/contact.scss';
@import './components/button.scss';
@import './components/chips.scss';
body {
2022-08-02 20:09:45 +00:00
font-family: LibreBaskervilleRegular, sans-serif;
min-height: 100vh;
display: flex;
flex-direction: column;
line-height: 1.5em;
@if ($buildTarget == "resume") {
background: #ff00ff;
}
}
2022-06-21 10:33:35 +00:00
.hidden {
display: none;
2022-06-21 10:33:35 +00:00
}
.container {
width: 70%;
margin: 0 auto;
}
//#2e7d32
.typo, body {
font-family: 'LibreBaskervilleRegular', serif;
2022-06-21 10:33:35 +00:00
}
2022-06-21 10:33:35 +00:00
section {
2022-08-02 20:09:45 +00:00
border-bottom: 1px solid gray;
padding-bottom: 1em;
2022-06-21 10:33:35 +00:00
}
section:last-of-type {
2022-08-02 20:09:45 +00:00
border-bottom: 0;
}
section h2 {
margin-top: 0;
margin-bottom: 0;
2022-07-14 17:28:22 +00:00
line-height: 1.5em;
}
.about-header {
2022-08-02 20:09:45 +00:00
margin: 2em 0;
}
.profile-nav {
2022-07-14 17:28:22 +00:00
text-align: center;
2022-08-02 20:09:45 +00:00
a {
color: white;
opacity: 0.8;
margin-right: .6em;
}
a:last-of-type {
margin-right: 0;
}
}
.alternate-section {
.alternate-description {
margin-top: 1.3em;
margin-bottom: 1em;
}
.alternate-list {
display: flex;
flex-wrap: wrap;
.alternate-item {
display: flex;
align-items: center;
margin-right: 1em;
}
.icon {
margin-right: .3em;
}
}
}
@media (min-width: $lg-breakpoint) {
.container {
width: 58%;
}
}
@media (min-width: $md-breakpoint) {
.container {
width: 65%;
}
}
@media (max-width: $md-breakpoint) {
.container {
width: 75%;
}
}
@media (max-width: $sm-breakpoint) {
.container {
width: 90%;
}
}
@media (max-width: $xs-breakpoint) {
}