Bento/css/style.css

309 lines
5.5 KiB
CSS
Raw Normal View History

2020-12-29 12:01:14 -06:00
/* Import font*/
2020-09-11 19:23:13 -05:00
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');
2020-12-29 12:01:14 -06:00
2020-08-14 12:40:38 -05:00
:root {
2020-12-29 12:01:14 -06:00
/* Fonts */
--fsg: 135px; /* Time and Greeting */
--fsm: 75px; /* Date */
--fss: 25px; /* Greetings and Weather widger */
--fses: 16px; /* Links List */
2020-09-13 23:05:28 -05:00
2020-12-29 12:01:14 -06:00
/* Light theme */
--accent: #186efdaa; /* Hover color */
--bg: #f5f5f5; /* Background color */
--sbg: #e4e6e6; /* Cards color */
--fg: #3a3a3a; /* Foreground color */
2020-09-13 23:05:28 -05:00
2020-12-29 12:01:14 -06:00
/* Image background */
2020-09-14 22:37:51 -05:00
2020-12-29 12:01:14 -06:00
/* Uncoment this section to get the
2020-09-14 22:37:51 -05:00
image wallpaper. You can also
change the --imgcol value
to make the filter to your own */
2020-12-29 12:01:14 -06:00
/* --imgbg: url(/img/wal.jpg); */
--imgcol: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)); /* Filter color */
2020-09-11 19:23:13 -05:00
}
2020-12-29 12:01:14 -06:00
2020-09-11 19:23:13 -05:00
@media only screen and (max-width: 68.75em) {
2020-12-29 12:01:14 -06:00
:root {
--fsg: 100px;
--fsm: 65px;
--fss: 20px;
}
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-09-13 23:05:28 -05:00
/* Dark theme */
2020-08-30 01:32:40 -05:00
.darktheme {
2020-12-29 12:01:14 -06:00
--accent: #186efd60; /* Hover color */
--bg: #1e1f21; /* Background color */
--sbg: #2c2d31; /* Cards color */
--fg: #d8dee9; /* Foreground color */
--imgcol: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)); /* Filter color */
2020-09-11 19:23:13 -05:00
}
2020-08-30 01:08:03 -05:00
2020-08-14 12:40:38 -05:00
* {
2020-12-29 12:01:14 -06:00
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Open Sans', sans-serif;
font-size: 13.5px;
transition: 0.2s ease-in-out;
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
body {
2020-12-29 12:01:14 -06:00
width: 100vw;
height: 100vh;
background-color: var(--bg);
background-image: var(--imgcol), var(--imgbg);
display: flex;
align-items: center;
justify-content: center;
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-30 01:08:03 -05:00
#themeButton {
2020-12-29 12:01:14 -06:00
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;
2020-09-11 19:23:13 -05:00
}
2020-08-30 01:08:03 -05:00
.bicon {
2020-12-29 12:01:14 -06:00
width: 26px;
height: 26px;
2020-09-11 19:23:13 -05:00
}
2020-08-30 01:08:03 -05:00
2020-08-14 12:40:38 -05:00
.container {
2020-12-29 12:01:14 -06:00
width: 150vh;
height: 85vh;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
grid-gap: 30px;
padding: 20px;
2020-09-11 19:23:13 -05:00
}
@media only screen and (max-width: 68.75em) {
2020-12-29 12:01:14 -06:00
.container {
grid-gap: 20px;
padding: 40px;
}
2020-09-11 19:23:13 -05:00
}
.container > * {
2020-12-29 12:01:14 -06:00
width: 100%;
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.card {
2020-12-29 12:01:14 -06:00
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
border-radius: 5px;
background-color: var(--sbg);
2020-09-11 19:23:13 -05:00
}
.card:hover {
2020-12-29 12:01:14 -06:00
transform: translateY(-0.2rem);
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.35);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-29 23:16:35 -05:00
.fblock {
2020-12-29 12:01:14 -06:00
grid-row: 1 / span 2;
grid-column: 1 / span 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2020-09-11 19:23:13 -05:00
}
@media only screen and (max-width: 68.75em) {
2020-12-29 12:01:14 -06:00
.fblock {
grid-row: 1 / span 2;
grid-column: 1 / span 4;
}
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-29 23:16:35 -05:00
.sblock {
2020-12-29 12:01:14 -06:00
grid-column: 3 / span 2;
grid-row: 1 / span 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2020-09-11 19:23:13 -05:00
}
.sblock__date {
2020-12-29 12:01:14 -06:00
display: flex;
align-items: center;
justify-content: center;
margin-top: 30px;
2020-09-11 19:23:13 -05:00
}
.sblock__weather {
2020-12-29 12:01:14 -06:00
display: flex;
align-items: center;
justify-content: center;
2020-09-11 19:23:13 -05:00
}
@media only screen and (max-width: 68.75em) {
2020-12-29 12:01:14 -06:00
.sblock {
display: none;
}
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.clock {
2020-12-29 12:01:14 -06:00
display: flex;
align-items: center;
justify-content: center;
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#hour,
#separator,
#minutes {
2020-12-29 12:01:14 -06:00
font-size: var(--fsg);
font-weight: bolder;
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#month,
#day {
2020-12-29 12:01:14 -06:00
font-size: var(--fsm);
font-weight: bold;
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#day {
2020-12-29 12:01:14 -06:00
margin-left: 20px;
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
#greetings {
2020-12-29 12:01:14 -06:00
font-size: var(--fss);
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
@media only screen and (max-width: 68.75em) {
2020-12-29 12:01:14 -06:00
#greetings {
font-size: var(--fss);
}
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.weather-icon img {
2020-12-29 12:01:14 -06:00
width: 70px;
height: 70px;
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.temperature-value p {
2020-12-29 12:01:14 -06:00
font-size: var(--fss);
font-weight: bolder;
margin-left: 15px;
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.temperature-description p {
2020-12-29 12:01:14 -06:00
font-size: var(--fss);
margin-left: 15px;
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.qlink {
2020-12-29 12:01:14 -06: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: 20px;
2020-09-11 19:23:13 -05:00
}
@media only screen and (max-width: 68.75em) {
2020-12-29 12:01:14 -06:00
.qlink {
grid-row: 3 / span 2;
grid-column: 1 / span 4;
grid-gap: 20px;
padding-left: 100px;
padding-right: 100px;
}
2020-09-11 19:23:13 -05:00
}
.qlink__icon {
2020-12-29 12:01:14 -06:00
width: 23px;
height: 23px;
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
.qlink__link {
2020-12-29 12:01:14 -06:00
display: flex;
justify-content: center;
align-items: center;
background-color: var(--sbg);
width: 100%;
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
border-radius: 5px;
2020-09-11 19:23:13 -05:00
}
.qlink__link-1 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 1;
2020-09-11 19:23:13 -05:00
}
.qlink__link-2 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 2;
2020-09-11 19:23:13 -05:00
}
.qlink__link-3 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 1;
2020-09-11 19:23:13 -05:00
}
.qlink__link-4 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 2;
2020-09-11 19:23:13 -05:00
}
.qlink__link-5 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 3;
2020-09-11 19:23:13 -05:00
}
.qlink__link-6 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 3;
2020-09-11 19:23:13 -05:00
}
.qlink__link:hover {
2020-12-29 12:01:14 -06:00
background-color: var(--accent);
transform: translateY(-0.2rem);
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.35);
2020-09-11 19:23:13 -05:00
}
.qlink__link:hover svg {
2020-12-29 12:01:14 -06:00
stroke: var(--fg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.qlist {
2020-12-29 12:01:14 -06:00
display: flex;
align-items: center;
flex-direction: column;
2020-09-11 19:23:13 -05:00
}
@media only screen and (max-width: 68.75em) {
2020-12-29 12:01:14 -06:00
.qlist {
display: none;
}
2020-09-11 19:23:13 -05:00
}
.qlist__1 {
2020-12-29 12:01:14 -06:00
grid-column: 3;
grid-row: 3 / span 2;
2020-09-11 19:23:13 -05:00
}
.qlist__2 {
2020-12-29 12:01:14 -06:00
grid-column: 4;
grid-row: 3 / span 2;
2020-09-11 19:23:13 -05:00
}
.qlist__head {
2020-12-29 12:01:14 -06:00
margin-top: 30px;
margin-bottom: 20px;
width: 30px;
color: var(--fg);
height: 30px;
2020-09-11 19:23:13 -05:00
}
.qlist__link {
2020-12-29 12:01:14 -06:00
text-decoration: none;
font-size: var(--fses);
color: var(--fg);
margin-top: 1px;
padding: 6px 12px;
border-radius: 5px;
font-weight: bold;
2020-09-11 19:23:13 -05:00
}
.qlist__link:hover {
2020-12-29 12:01:14 -06:00
background-color: var(--accent);
color: var(--fg);
2020-09-11 19:23:13 -05:00
}