Files
startpage-onedark/scss/main.scss
2020-05-13 11:57:16 +05:30

140 lines
3.1 KiB
SCSS

$background: #212121;
$foreground: #fff;
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
$media: #4DD0E1;
$work: #F06292;
$social: #FFF176;
$others: #81C784;
.roboto {
font-family: 'Roboto', sans-serif;
}
// JetBrains Mono
@font-face {
font-family: "JetBrains Mono";
src: url("../fonts/woff/JetBrainsMono-Regular.woff") format("woff"),
url("../fonts/woff2/JetBrainsMono-Regular.woff2") format("woff2");
}
.jetbrains-mono {
font-family: 'JetBrains Mono';
}
body {
height: 97.5vh;
display: flex;
align-items: center;
justify-content: center;
background: $background;
color: $foreground;
@extend .jetbrains-mono;
}
.main {
width: 100%;
text-align: center;
#date-text {
padding-top: 15px;
color: darken($foreground, 15);
}
#search-bar {
width: 50%;
margin: 0 auto 50px auto;
height: 45px;
padding-top: 35px;
input {
height: inherit;
width: 100%;
background: lighten($background, 5);
box-shadow: none;
border: none;
text-align: center;
border-radius: 6px;
outline: none;
padding: 7px 14px;
font-size: 18px;
color: $foreground;
&:focus {
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
}
@media only screen and (max-width: 791px) {
width: 65%;
}
}
#other-content {
margin: 40px auto;
padding: 10px 0;
.sqr {
vertical-align: top;
display: inline-block;
margin-left: 5px;
margin-right: 5px;
width: 170px;
background: lighten($background, 5);
padding: 15px 15px;
border-radius: 6px;
min-height: 150px;
h4 {
font-size: 18px;
margin: 15px;
}
&:hover {
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
a {
color: #9E9E9E;
font-size: 16px;
transition: .1s ease-in;
display: block;
text-decoration: none;
line-height: 22px;
&:hover {
color: $foreground;
text-decoration: none;
transition: .1s ease-in;
}
}
}
.media {
h4, a:hover {
color: $media;
}
}
.work {
h4, a:hover {
color: $work;
}
}
.social {
h4, a:hover {
color: $social;
}
}
.others {
h4, a:hover {
color: $others;
}
}
}
}