yugen.work/assets/css/portfolio.scss

135 lines
2.2 KiB
SCSS
Raw Normal View History

2019-11-28 19:03:30 +00:00
@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;
2019-12-09 19:48:19 +00:00
position: inherit;
2019-11-28 19:03:30 +00:00
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;
}
2019-12-09 19:48:19 +00:00
.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;
}
2019-11-28 19:03:30 +00:00
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;
2019-11-30 13:14:32 +00:00
border: 3vh solid black;
2019-11-28 19:03:30 +00:00
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;
2019-11-30 13:14:32 +00:00
border: 3vh solid white;
2019-11-28 19:03:30 +00:00
box-sizing: border-box;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
transition: border-color 0.5s ease-in-out;
}
2019-12-09 19:48:19 +00:00
$accents: ("yiff": #4043ff, "thaldrin": #ff9e42, "website": #ff4885, "art": #1da1f2);
$links: ('yiff', 'thaldrin', 'website', 'art');
2019-11-28 19:03:30 +00:00
$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;
}
}
2019-12-09 19:48:19 +00:00
p::selection {
color: black;
background-color: white;
}
body.light p::selection {
color: white;
background-color: black;
}