Bento/sass/main.scss

326 lines
5.7 KiB
SCSS
Raw Normal View History

2020-08-29 23:16:35 -05:00
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');
2020-08-24 23:55:38 -05:00
// Responsive
2020-08-14 12:50:58 -05:00
$bp-largest: 75em;
$bp-large: 68.75em;
$bp-medium: 56.25em;
$bp-small: 37.5em;
$bp-smallest: 31.25em;
2020-08-14 12:28:56 -05:00
:root {
2020-08-29 22:47:08 -05:00
// Fonts
2020-08-14 12:28:56 -05:00
--fsg: 150px;
--fsm: 85px;
--fss: 30px;
--fses: 18px;
2020-08-29 22:47:08 -05:00
// C O L O R S
2020-08-30 01:32:40 -05:00
--accent: #186efdaa;
2020-08-29 22:47:08 -05:00
2020-08-30 01:32:40 -05:00
--bg: #f5f5f5;
--sbg: #e4e6e6;
--fg: #3a3a3a;
2020-08-14 12:50:58 -05:00
2020-09-11 19:23:13 -05:00
--imgbg: url(/img/wal.jpg);
--imgcol: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
2020-08-14 12:50:58 -05:00
@media only screen and (max-width: $bp-large) {
--fsg: 100px;
--fsm: 65px;
--fss: 20px;
}
2020-08-14 12:28:56 -05:00
}
2020-08-30 01:32:40 -05:00
.darktheme {
--accent: #186efd60;
2020-09-11 19:23:13 -05:00
2020-08-30 01:32:40 -05:00
--bg: #1e1f21;
--sbg: #2c2d31;
--fg: #d8dee9;
2020-08-30 01:08:03 -05:00
2020-09-11 19:23:13 -05:00
--imgcol: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
2020-08-30 01:08:03 -05:00
}
2020-08-14 12:28:56 -05:00
* {
margin: 0;
padding: 0;
2020-08-30 01:08:03 -05:00
box-sizing: border-box;
font-family: 'Open Sans', sans-serif;
2020-08-14 12:28:56 -05:00
font-size: 13.5px;
transition: 0.2s ease-in-out;
}
2020-08-30 01:08:03 -05:00
body {
width: 100vw;
height: 100vh;
background-color: var(--bg);
2020-09-11 19:23:13 -05:00
background-image: var(--imgcol), var(--imgbg);
2020-08-30 01:08:03 -05:00
display: flex;
align-items: center;
justify-content: center;
2020-08-29 23:16:35 -05:00
}
2020-08-30 01:08:03 -05:00
#themeButton {
position: absolute;
margin: 2em 2em 0 0;
right: 0;
top: 0;
2020-08-29 23:16:35 -05:00
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-29 23:16:35 -05:00
2020-08-30 01:08:03 -05:00
border: none;
border-radius: 5px;
2020-08-29 23:16:35 -05:00
2020-08-30 01:08:03 -05:00
padding: 10px;
cursor: pointer;
2020-08-29 23:16:35 -05:00
2020-08-30 01:08:03 -05:00
background-color: #00000000;
2020-08-29 23:16:35 -05:00
2020-08-30 01:08:03 -05:00
-webkit-appearance: none;
-moz-appearance: none;
2020-08-29 23:16:35 -05:00
}
2020-08-30 01:08:03 -05:00
.bicon {
width: 26px;
height: 26px;
2020-08-14 12:28:56 -05:00
}
.container {
width: 150vh;
height: 85vh;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
grid-gap: 30px;
padding: 20px;
2020-08-14 12:50:58 -05:00
@media only screen and (max-width: $bp-large) {
grid-gap: 20px;
padding: 40px;
}
2020-08-14 12:28:56 -05:00
& > * {
width: 100%;
}
}
.card {
box-shadow: 0 5px 7px rgba(#000000, 0.35);
border-radius: 5px;
2020-08-30 01:08:03 -05:00
background-color: var(--sbg);
2020-08-14 12:28:56 -05:00
&:hover {
2020-08-30 01:08:03 -05:00
transform: translateY(-0.2rem);
box-shadow: 0 10px 10px rgba(#000000, 0.35);
2020-08-14 12:28:56 -05:00
}
}
2020-08-29 23:16:35 -05:00
.fblock {
2020-08-14 12:28:56 -05:00
grid-row: 1 / span 2;
grid-column: 1 / span 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2020-08-24 23:55:38 -05:00
@media only screen and (max-width: $bp-large) {
grid-row: 1 / span 2;
grid-column: 1 / span 4;
}
2020-08-14 12:28:56 -05:00
}
2020-08-29 23:16:35 -05:00
.sblock {
2020-08-14 12:28:56 -05:00
grid-column: 3 / span 2;
grid-row: 1 / span 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
&__date {
display: flex;
align-items: center;
justify-content: center;
margin-top: 30px;
}
&__weather {
display: flex;
align-items: center;
justify-content: center;
}
2020-08-24 23:55:38 -05:00
@media only screen and (max-width: $bp-large) {
display: none;
}
2020-08-14 12:28:56 -05:00
}
.clock {
display: flex;
align-items: center;
justify-content: center;
}
#hour,
#separator,
#minutes {
font-size: var(--fsg);
font-weight: bolder;
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
}
#month,
#day {
font-size: var(--fsm);
font-weight: bold;
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
}
#day {
margin-left: 20px;
}
#greetings {
font-size: var(--fses);
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-24 23:55:38 -05:00
@media only screen and (max-width: $bp-large) {
font-size: var(--fss);
}
2020-08-14 12:28:56 -05:00
}
.weather-icon img {
width: 80px;
height: 80px;
}
.temperature {
&-value p {
font-size: var(--fss);
font-weight: bolder;
margin-left: 15px;
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
}
&-description p {
font-size: var(--fss);
margin-left: 15px;
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
}
}
.qlink {
grid-row: 3 / span 2;
grid-column: 1 / span 2;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-gap: 30px;
padding: 30px;
2020-08-14 12:50:58 -05:00
@media only screen and (max-width: $bp-large) {
2020-08-24 23:55:38 -05:00
grid-row: 3 / span 2;
grid-column: 1 / span 4;
grid-gap: 40px;
padding: 20px;
2020-08-14 12:50:58 -05:00
}
2020-08-14 12:28:56 -05:00
&__icon {
width: 26px;
height: 26px;
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
}
&__link {
display: flex;
justify-content: center;
align-items: center;
2020-08-30 01:08:03 -05:00
background-color: var(--sbg);
2020-08-14 12:28:56 -05:00
width: 100%;
box-shadow: 0 5px 7px rgba(#000000, 0.35);
border-radius: 5px;
&-1 {
grid-row: 1;
grid-column: 1;
}
&-2 {
grid-row: 1;
grid-column: 2;
}
&-3 {
grid-row: 2;
grid-column: 1;
}
&-4 {
grid-row: 2;
grid-column: 2;
}
&-5 {
grid-row: 1;
grid-column: 3;
}
&-6 {
grid-row: 2;
grid-column: 3;
}
&:hover {
2020-08-24 23:55:38 -05:00
background-color: var(--accent);
2020-08-30 01:08:03 -05:00
transform: translateY(-0.2rem);
2020-08-14 12:28:56 -05:00
2020-08-30 01:08:03 -05:00
box-shadow: 0 10px 10px rgba(#000000, 0.35);
2020-08-29 22:47:08 -05:00
2020-08-14 12:28:56 -05:00
& svg {
2020-09-11 19:23:13 -05:00
stroke: var(--fg);
2020-08-14 12:28:56 -05:00
}
}
}
}
.qlist {
display: flex;
align-items: center;
flex-direction: column;
2020-08-24 23:55:38 -05:00
@media only screen and (max-width: $bp-large) {
display: none;
}
2020-08-29 23:16:35 -05:00
&__1 {
2020-08-14 12:28:56 -05:00
grid-column: 3;
grid-row: 3 / span 2;
}
2020-08-29 23:16:35 -05:00
&__2 {
2020-08-14 12:28:56 -05:00
grid-column: 4;
grid-row: 3 / span 2;
}
&__head {
margin-top: 30px;
margin-bottom: 20px;
width: 30px;
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
height: 30px;
}
&__link {
text-decoration: none;
font-size: var(--fses);
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
margin-top: 1px;
2020-08-30 01:08:03 -05:00
padding: 6px 12px;
2020-08-14 12:28:56 -05:00
border-radius: 5px;
font-weight: bold;
&:hover {
2020-08-24 23:55:38 -05:00
background-color: var(--accent);
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:28:56 -05:00
}
}
}