Files
startpage-onedark/css/main.css
Deepjyoti Barman 8011f7c029 Move new changes to the scss file
Move the new code for the settings cog to the scss file rather than the
css directoly and then let scss fill the css file.
2020-09-17 11:05:41 +05:30

164 lines
4.8 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
.roboto {
font-family: 'Roboto', sans-serif; }
@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, body {
font-family: 'JetBrains Mono'; }
body {
height: 97.5vh;
display: flex;
align-items: center;
justify-content: center;
background: #212121;
color: #fff; }
.main {
width: 100%;
text-align: center; }
.main #date h2 {
padding-top: 15px;
display: inline-block;
vertical-align: top; }
.main #date-text, .main #weather-text {
color: #d9d9d9; }
.main #message-text {
font-size: 23px; }
.main #search-bar {
width: 50%;
margin: 0 auto 50px auto;
height: 45px;
padding-top: 35px;
position: relative;
display: inline-block; }
.main #search-bar #search-bar-input {
height: 50px;
width: 100%;
background: #2e2e2e;
box-shadow: none;
border: none;
text-align: center;
border-radius: 6px;
outline: none;
padding: 7px 14px;
font-size: 18px;
color: #fff;
box-sizing: border-box; }
.main #search-bar #search-bar-input: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(0.25, 0.8, 0.25, 1); }
.main #search-bar .autocomplete-items-container {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 99;
border-radius: 6px;
background: #2e2e2e;
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(0.25, 0.8, 0.25, 1); }
.main #search-bar .autocomplete-items-container .autocomplete-item {
width: 100%;
background: #2e2e2e;
box-shadow: none;
border: none;
text-align: center;
outline: none;
padding: 7px 14px;
font-size: 18px;
color: #fff;
box-sizing: border-box;
z-index: -1; }
.main #search-bar .autocomplete-items-container .autocomplete-item:hover {
background: #3b3b3b; }
.main #search-bar .autocomplete-items-container .autocomplete-active {
background: #353535; }
@media only screen and (max-width: 791px) {
.main #search-bar {
width: 65%; } }
.main #other-content {
margin: 40px auto;
padding: 10px 0; }
.main #other-content .sqr {
vertical-align: top;
display: inline-block;
margin-left: 5px;
margin-right: 5px;
width: 170px;
background: #2e2e2e;
padding: 15px 15px;
border-radius: 6px;
min-height: 150px;
margin-top: 10px; }
.main #other-content .sqr h4 {
font-size: 18px;
margin: 15px; }
.main #other-content .sqr: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(0.25, 0.8, 0.25, 1); }
.main #other-content .sqr a {
color: #9E9E9E;
font-size: 16px;
transition: .1s ease-in;
display: block;
text-decoration: none;
line-height: 22px; }
.main #other-content .sqr a:hover {
color: #fff;
text-decoration: none;
transition: .1s ease-in; }
.main #other-content .media h4, .main #other-content .media a:hover {
color: #4DD0E1; }
.main #other-content .work h4, .main #other-content .work a:hover {
color: #F06292; }
.main #other-content .social h4, .main #other-content .social a:hover {
color: #FFF176; }
.main #other-content .others h4, .main #other-content .others a:hover {
color: #81C784; }
.main #other-content .funky h4, .main #other-content .funky a:hover {
color: #4DB6AC; }
.main #other-content .purple h4, .main #other-content .purple a:hover {
color: #9575CD; }
.main #other-content .upvoty h4, .main #other-content .upvoty a:hover {
color: #FF8A65; }
.main #other-content .indigo h4, .main #other-content .indigo a:hover {
color: #7986CB; }
.main #other-content .foxxy h4, .main #other-content .foxxy a:hover {
color: #A1887F; }
.settings-modal {
display: none;
position: fixed;
z-index: 3;
width: 80vw;
height: 80vh;
overflow: auto;
background: #fff;
color: #212121;
padding: 15px; }
.settings-modal .modal-content {
width: 100%;
height: 100%; }
.settings-modal .close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold; }
.settings-modal .close:hover, .settings-modal .close:focus {
color: black;
text-decoration: none;
cursor: pointer; }
#settings-cog {
width: 48px;
height: 48px;
position: absolute;
bottom: 25px;
right: 25px; }
#settings-cog .cog:hover {
fill: white; }