ligilo/sass/darkmode.scss

113 lines
2.1 KiB
SCSS
Raw Normal View History

2021-04-21 23:48:17 +02:00
/*
DarkMode style sheet is based on the work of izmcm :
https://github.com/MichaelBarney/LinkFree/commits/master/Templates/DarkMode/
*/
:root {
--bgColor:#1C1C1C;
--accentColor: #E6E6E6;
--font: 'b612', sans-serif;
}
@font-face {
font-family: 'b612';
src: url('fonts/b612-regular.ttf') format('truetype');
}
body{
background-color: var(--bgColor);
}
#userPhoto{
width: 110px;
height: 110px;
display: block;
margin: 35px auto 20px;
border-radius: 50%;
}
#userName{
color: #bbb;
font-size: 1rem;
font-weight: 600;
line-height: 1.25;
display: block;
font-family: var(--font);
width: 100%;
text-align: center;
text-decoration: none;
}
#links{
max-width: 675px;
width: auto;
display: block;
margin: 27px auto;
}
.link{
display: block;
background-color: var(--accentColor);
color: var(--bgColor);
font-family: var(--font);
text-align: center;
margin-bottom: 20px;
padding: 17px;
text-decoration: none;
font-size: 1rem;
transition: all .25s cubic-bezier(.08,.59,.29,.99);
border: solid var(--accentColor) 2px;
}
.link:hover{
background-color: var(--bgColor);
color: var(--accentColor);
}
2021-04-26 17:59:57 +02:00
#social-links {
display: flex;
justify-content: center;
}
.social {
background-color: var(--accentColor);
height: 32px;
width: 32px;
mask-repeat: no-repeat;
mask-position: center;
display: inline-block;
}
.social:hover {
background-color: yellow;
}
.social#instagram {
mask-image: url("/img/social/instagram.svg");
}
.social#liberapay {
mask-image: url("/img/social/liberapay.svg");
}
.social#linkedin {
mask-image: url("/img/social/linkedin.svg");
}
.social#mastodon {
mask-image: url("/img/social/mastodon.svg");
}
.social#pleroma {
mask-image: url("/img/social/pleroma.svg");
}
.social#twitter {
mask-image: url("/img/social/twitter.svg");
}
2021-04-21 23:48:17 +02:00
footer{
text-align: center;
color: #bbb;
font-family: var(--font);
font-size: 0.75rem;
font-weight: 400;
}
footer a {
color: var(--accentColor)
}