website/assets/css/portfolio.scss

135 lines
2.2 KiB
SCSS

@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
$accent-color: red;
body {
background-color: rgb(0, 0, 0);
color: rgb(255, 255, 255);
//font-size: 3vw;
}
.light {
color: black !important;
background: white !important;
}
* {
margin: 0;
padding: 0;
position: inherit;
font-family: 'Roboto', sans-serif;
}
.title {
//font-family: 'Source Sans Pro', sans-serif !important;
font-size: 5vh;
margin: 0;
//bottom: 5px;
// height: 1%;
text-align: center;
padding: 30px 0 0 0;
}
.toggle {
cursor: grab;
}
.subtitle {
//font-family: 'Source Sans Pro', sans-serif !important;
font-size: 3vh;
bottom: 50px;
//height: 1%;
text-align: center;
}
.coding {
font-size: 7vh;
font-style: italic;
color: white;
border-bottom: white 5px solid;
}
body.light .coding {
color: black !important;
border-bottom: black 5px solid;
}
sub {
font-size: 1vh;
}
.center {
//height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 90px 0 0 0;
}
a {
text-decoration: none;
color: white;
}
body.light a {
color: black;
}
#box {
position: absolute;
z-index: 999;
border: 3vh solid black;
box-sizing: border-box;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
transition: border-color 0.5s ease-in-out;
}
body.light #box {
position: absolute;
z-index: 999;
border: 3vh solid white;
box-sizing: border-box;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
transition: border-color 0.5s ease-in-out;
}
$accents: ("yiff": #4043ff, "thaldrin": #ff9e42, "website": #ff4885, "art": #1da1f2, "kaito": #964b00);
$links: ('yiff', 'thaldrin', 'website', 'art', 'kaito');
$time: 2s;
@each $link, $color in $accents {
.#{$link}:hover {
color: $color;
& ~ #box {
border-color: $color;
}
}
.#{$link}::selection {
color: white;
background-color: $color;
}
body.light .#{$link}::selection {
//color: $color + 9a;
color: black;
background-color: $color + 26;
}
}
@each $link in $links {
.#{$link} {
font-size: 6vh;
}
}
p::selection {
color: black;
background-color: white;
}
body.light p::selection {
color: white;
background-color: black;
}