website/assets/css/main.scss

178 lines
2.7 KiB
SCSS
Raw Normal View History

2019-11-16 21:04:54 +00:00
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap');
2019-11-19 06:52:41 +00:00
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
2019-11-15 16:51:24 +00:00
$accent-color: red;
body {
2019-11-30 13:14:32 +00:00
background-color: black;
color: white;
2019-11-16 21:04:54 +00:00
//font-size: 3vw;
2019-11-15 16:51:24 +00:00
}
2019-11-19 06:52:41 +00:00
.light {
color: black !important;
background: white !important;
}
2019-11-15 16:51:24 +00:00
* {
margin: 0;
padding: 0;
2019-11-19 06:52:41 +00:00
font-family: 'Roboto', sans-serif;
}
.title {
//font-family: 'Source Sans Pro', sans-serif !important;
font-size: 13vh;
margin: 0;
2019-11-30 13:14:32 +00:00
}
.subtitle {
//font-family: 'Source Sans Pro', sans-serif !important;
font-size: 3vh;
bottom: 50px;
//height: 1%;
text-align: center;
2019-11-28 19:03:30 +00:00
cursor: grab;
2019-11-19 06:52:41 +00:00
}
sub {
font-size: 1vh;
}
.center {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
a {
text-decoration: none;
color: white;
display: inline-block;
}
svg {
margin: 0;
padding: 0;
2019-11-19 06:52:41 +00:00
}
body.light a {
color: black;
2019-11-15 16:51:24 +00:00
}
#box {
position: absolute;
z-index: 999;
2019-11-30 13:14:32 +00:00
border: 3vh solid black;
2019-11-15 16:51:24 +00:00
box-sizing: border-box;
2019-11-16 21:04:54 +00:00
top: 0;
left: 0;
2019-11-15 16:51:24 +00:00
right: 0;
bottom: 0;
pointer-events: none;
transition: border-color 0.5s ease-in-out;
}
2019-11-19 06:52:41 +00:00
body.light #box {
position: absolute;
z-index: 999;
2019-11-30 13:14:32 +00:00
border: 3vh solid white;
2019-11-19 06:52:41 +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-11-16 21:04:54 +00:00
}
2019-11-30 13:14:32 +00:00
$socials: (
"twitter": #1da1f2,
"keybase": #33a0ff,
"discord": #7289da,
"mastodon": #3088d4,
"twitch": #6441a4,
"gitdab":#faacb7,
"github": #333,
"gitlab": #e24329
);
2019-12-08 22:52:31 +00:00
@each $site, $color in $socials {
.#{$site}:hover,
.#{$site}:focus {
#box {
border-color: $color;
}
}
2019-11-30 13:14:32 +00:00
a.#{$site} {
2019-12-08 22:52:31 +00:00
fill: $color !important;
color: $color !important;
2019-11-30 13:14:32 +00:00
}
a.#{$site}.light {
2019-12-08 22:52:31 +00:00
fill: $color !important;
color: $color !important;
}
.#{$site}::selection {
color: white;
background-color: $color;
}
body.light .#{$site}::selection {
//color: $color + 9a;
color: black;
background-color: $color + 26;
2019-11-30 13:14:32 +00:00
}
}
a svg {
max-width: 4ch;
}
2019-11-30 13:14:32 +00:00
.socials {
font-size: 2vh;
2019-11-30 13:14:32 +00:00
text-align: center;
justify-content: center;
2019-11-30 13:14:32 +00:00
}
divide {
display: block;
height: 1vh;
border: 0;
border-top: 0px solid rgba(204, 204, 204, 0);
margin: 1vh 0;
padding: 1vh;
}
2019-12-09 19:48:19 +00:00
$accents: ("portfolio": #5fff5f, "lore": #92a9f3, "art": #c974da);
2019-11-16 21:04:54 +00:00
$links: ('portfolio', 'lore', 'art');
$time: 2s;
@each $link, $color in $accents {
.#{$link}:hover {
color: $color;
& ~ #box {
border-color: $color;
}
}
2019-11-19 06:52:41 +00:00
.#{$link}::selection {
color: white;
background-color: $color;
}
body.light .#{$link}::selection {
//color: $color + 9a;
color: black;
background-color: $color + 26;
}
2019-11-16 21:04:54 +00:00
.#{$link} {
font-size: 6vh;
}
2019-11-15 16:51:24 +00:00
}
2019-12-09 19:48:19 +00:00
body.light h1::selection {
background-color: black;
color: white;
}
h1::selection {
background-color: white;
color: black;
}