Bento/css/style.css

236 lines
4.9 KiB
CSS
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-14 12:40:38 -05:00
:root {
2020-08-24 23:55:38 -05:00
--fsg: 150px;
--fsm: 85px;
--fss: 30px;
--fses: 18px;
2020-08-30 01:32:40 -05:00
--accent: #186efdaa;
--bg: #f5f5f5;
--sbg: #e4e6e6;
--fg: #3a3a3a; }
2020-08-24 23:55:38 -05:00
@media only screen and (max-width: 68.75em) {
2020-08-14 12:50:58 -05:00
:root {
2020-08-24 23:55:38 -05:00
--fsg: 100px;
--fsm: 65px;
--fss: 20px; } }
2020-08-14 12:50:58 -05:00
2020-08-30 01:32:40 -05:00
.darktheme {
--accent: #186efd60;
--bg: #1e1f21;
--sbg: #2c2d31;
--fg: #d8dee9; }
2020-08-30 01:08:03 -05:00
2020-08-14 12:40:38 -05:00
* {
2020-08-24 23:55:38 -05:00
margin: 0;
padding: 0;
box-sizing: border-box;
2020-08-29 23:16:35 -05:00
font-family: 'Open Sans', sans-serif;
2020-08-24 23:55:38 -05:00
font-size: 13.5px;
transition: 0.2s ease-in-out; }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
body {
2020-08-24 23:55:38 -05:00
width: 100vw;
height: 100vh;
2020-08-30 01:08:03 -05:00
background-color: var(--bg);
2020-08-24 23:55:38 -05:00
display: flex;
align-items: center;
justify-content: center; }
2020-08-14 12:50:58 -05:00
2020-08-30 01:08:03 -05:00
#themeButton {
position: absolute;
margin: 2em 2em 0 0;
right: 0;
top: 0;
color: var(--fg);
border: none;
border-radius: 5px;
padding: 10px;
cursor: pointer;
background-color: #00000000;
-webkit-appearance: none;
-moz-appearance: none; }
.bicon {
width: 26px;
height: 26px; }
2020-08-14 12:40:38 -05:00
.container {
2020-08-24 23:55:38 -05:00
width: 150vh;
height: 85vh;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
grid-gap: 30px;
padding: 20px; }
@media only screen and (max-width: 68.75em) {
2020-08-14 12:50:58 -05:00
.container {
2020-08-24 23:55:38 -05:00
grid-gap: 20px;
padding: 40px; } }
.container > * {
width: 100%; }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.card {
2020-08-24 23:55:38 -05:00
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
2020-08-30 01:08:03 -05:00
border-radius: 5px;
background-color: var(--sbg); }
2020-08-24 23:55:38 -05:00
.card:hover {
2020-08-30 01:08:03 -05:00
transform: translateY(-0.2rem);
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.35); }
2020-08-14 12:50:58 -05:00
2020-08-29 23:16:35 -05:00
.fblock {
2020-08-24 23:55:38 -05:00
grid-row: 1 / span 2;
grid-column: 1 / span 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center; }
@media only screen and (max-width: 68.75em) {
2020-08-29 23:16:35 -05:00
.fblock {
2020-08-24 23:55:38 -05:00
grid-row: 1 / span 2;
grid-column: 1 / span 4; } }
2020-08-14 12:50:58 -05:00
2020-08-29 23:16:35 -05:00
.sblock {
2020-08-24 23:55:38 -05:00
grid-column: 3 / span 2;
grid-row: 1 / span 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center; }
2020-08-29 23:16:35 -05:00
.sblock__date {
2020-08-14 12:40:38 -05:00
display: flex;
align-items: center;
justify-content: center;
2020-08-24 23:55:38 -05:00
margin-top: 30px; }
2020-08-29 23:16:35 -05:00
.sblock__weather {
2020-08-14 12:40:38 -05:00
display: flex;
align-items: center;
2020-08-24 23:55:38 -05:00
justify-content: center; }
@media only screen and (max-width: 68.75em) {
2020-08-29 23:16:35 -05:00
.sblock {
2020-08-24 23:55:38 -05:00
display: none; } }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.clock {
2020-08-24 23:55:38 -05:00
display: flex;
align-items: center;
justify-content: center; }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#hour,
#separator,
#minutes {
2020-08-24 23:55:38 -05:00
font-size: var(--fsg);
2020-08-30 01:08:03 -05:00
font-weight: bolder;
color: var(--fg); }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#month,
#day {
2020-08-24 23:55:38 -05:00
font-size: var(--fsm);
2020-08-30 01:08:03 -05:00
font-weight: bold;
color: var(--fg); }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#day {
2020-08-24 23:55:38 -05:00
margin-left: 20px; }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#greetings {
2020-08-24 23:55:38 -05:00
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: 68.75em) {
#greetings {
font-size: var(--fss); } }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.weather-icon img {
2020-08-24 23:55:38 -05:00
width: 80px;
height: 80px; }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.temperature-value p {
2020-08-24 23:55:38 -05:00
font-size: var(--fss);
font-weight: bolder;
2020-08-30 01:08:03 -05:00
margin-left: 15px;
color: var(--fg); }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.temperature-description p {
2020-08-24 23:55:38 -05:00
font-size: var(--fss);
2020-08-30 01:08:03 -05:00
margin-left: 15px;
color: var(--fg); }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.qlink {
2020-08-24 23:55:38 -05:00
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; }
@media only screen and (max-width: 68.75em) {
2020-08-14 12:50:58 -05:00
.qlink {
2020-08-24 23:55:38 -05:00
grid-row: 3 / span 2;
grid-column: 1 / span 4;
grid-gap: 40px;
padding: 20px; } }
.qlink__icon {
2020-08-14 12:40:38 -05:00
width: 26px;
2020-08-30 01:08:03 -05:00
height: 26px;
color: var(--fg); }
2020-08-24 23:55:38 -05:00
.qlink__link {
2020-08-14 12:40:38 -05:00
display: flex;
justify-content: center;
align-items: center;
2020-08-30 01:08:03 -05:00
background-color: var(--sbg);
2020-08-14 12:40:38 -05:00
width: 100%;
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
2020-08-24 23:55:38 -05:00
border-radius: 5px; }
.qlink__link-1 {
grid-row: 1;
grid-column: 1; }
.qlink__link-2 {
grid-row: 1;
grid-column: 2; }
.qlink__link-3 {
grid-row: 2;
grid-column: 1; }
.qlink__link-4 {
grid-row: 2;
grid-column: 2; }
.qlink__link-5 {
grid-row: 1;
grid-column: 3; }
.qlink__link-6 {
grid-row: 2;
grid-column: 3; }
.qlink__link:hover {
background-color: var(--accent);
2020-08-30 01:08:03 -05:00
transform: translateY(-0.2rem);
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.35); }
2020-08-24 23:55:38 -05:00
.qlink__link:hover svg {
2020-08-30 01:08:03 -05:00
stroke: var(--fg); }
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.qlist {
2020-08-24 23:55:38 -05:00
display: flex;
align-items: center;
flex-direction: column; }
@media only screen and (max-width: 68.75em) {
.qlist {
display: none; } }
2020-08-29 23:16:35 -05:00
.qlist__1 {
2020-08-14 12:40:38 -05:00
grid-column: 3;
2020-08-24 23:55:38 -05:00
grid-row: 3 / span 2; }
2020-08-29 23:16:35 -05:00
.qlist__2 {
2020-08-14 12:40:38 -05:00
grid-column: 4;
2020-08-24 23:55:38 -05:00
grid-row: 3 / span 2; }
.qlist__head {
2020-08-14 12:40:38 -05:00
margin-top: 30px;
margin-bottom: 20px;
width: 30px;
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-24 23:55:38 -05:00
height: 30px; }
.qlist__link {
2020-08-14 12:40:38 -05:00
text-decoration: none;
font-size: var(--fses);
2020-08-30 01:08:03 -05:00
color: var(--fg);
2020-08-14 12:40:38 -05:00
margin-top: 1px;
2020-08-30 01:08:03 -05:00
padding: 6px 12px;
2020-08-14 12:40:38 -05:00
border-radius: 5px;
2020-08-24 23:55:38 -05:00
font-weight: bold; }
.qlist__link:hover {
background-color: var(--accent);
2020-08-30 01:08:03 -05:00
color: var(--fg); }