Bento/app.css

320 lines
5.3 KiB
CSS
Raw Normal View History

2021-07-20 21:28:00 -05:00
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');
2021-01-09 23:56:22 -06:00
/* V A R I A B L E S */
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 */
2021-07-20 21:34:08 -05:00
--fsg: 12vh; /* Time and Greetings */
--fsm: 8vh; /* Date */
--fss: 3vh; /* Greetings and Weather widger */
2021-07-20 21:28:00 -05:00
--fses: 2vh; /* Links List */
2020-09-13 23:05:28 -05:00
2021-08-10 19:55:57 -05:00
--iconsize: 3vh;
2020-12-29 12:01:14 -06:00
/* Light theme */
2021-07-20 21:34:08 -05:00
--accent: #61b0f1; /* Hover color */
2021-01-09 23:56:22 -06:00
--bg: #f5f5f5; /* Background color */
--sbg: #e4e6e6; /* Cards color */
2021-07-20 21:34:08 -05:00
2021-01-09 23:56:22 -06:00
--fg: #3a3a3a; /* Foreground color */
--sfg: #3a3a3a; /* Sceondary 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 */
2021-07-20 21:42:14 -05:00
--imgbg: url(assets/background.jpg);
2021-01-09 23:56:22 -06:00
--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-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 {
2021-07-20 21:34:08 -05:00
--accent: #61b0f1; /* Hover color */
2021-01-09 23:56:22 -06:00
--bg: #19171a; /* Background color */
--sbg: #201e21; /* Cards color */
--fg: #d8dee9; /* Foreground color */
--sfg: #3a3a3a; /* Secondary Foreground color */
--imgcol: linear-gradient(
2021-07-20 21:28:00 -05:00
rgba(0, 0, 0, 0.85),
rgba(0, 0, 0, 0.85)
2021-01-09 23:56:22 -06:00
); /* Filter color */
2020-09-11 19:23:13 -05:00
}
2020-08-30 01:08:03 -05:00
2021-01-09 23:56:22 -06:00
/* S T Y L E S */
2020-08-14 12:40:38 -05:00
* {
2020-12-29 12:01:14 -06:00
margin: 0;
padding: 0;
box-sizing: border-box;
2021-07-20 21:28:00 -05:00
font-family: 'Open Sans', sans-serif;
2020-12-29 12:01:14 -06:00
transition: 0.2s ease-in-out;
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
.notransition {
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
}
2021-07-20 21:28:00 -05:00
.withImageBackground {
background-image: var(--imgcol), var(--imgbg);
background-size: cover;
}
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);
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;
cursor: pointer;
background-color: #00000000;
2020-09-11 19:23:13 -05:00
}
2020-08-30 01:08:03 -05:00
2021-01-09 23:56:22 -06:00
#themeButton__icon {
width: 25px;
height: 25px;
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 {
2021-01-09 23:56:22 -06:00
width: 145vh;
2020-12-29 12:01:14 -06:00
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
}
2020-08-14 12:50:58 -05:00
2020-08-14 12:40:38 -05:00
.card {
2021-01-09 23:56:22 -06:00
background-color: var(--sbg);
2020-12-29 12:01:14 -06:00
box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
border-radius: 5px;
2020-09-11 19:23:13 -05:00
}
2021-07-20 20:50:46 -05:00
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
2021-01-09 23:56:22 -06:00
.timeBlock {
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
}
2020-08-14 12:50:58 -05:00
2021-01-09 23:56:22 -06:00
.weatherBlock {
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
}
2021-07-20 20:50:46 -05:00
2021-01-09 23:56:22 -06:00
.weatherBlock__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
}
2021-07-20 20:50:46 -05:00
2021-01-09 23:56:22 -06:00
.weatherBlock__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
}
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
}
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
2021-01-09 23:56:22 -06:00
.buttonLink {
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
}
2021-01-09 23:56:22 -06:00
.buttonLink__link {
2020-12-29 12:01:14 -06:00
display: flex;
justify-content: center;
align-items: center;
width: 100%;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__icon {
2021-08-10 19:55:57 -05:00
width: var(--iconsize);
height: var(--iconsize);
2021-01-09 23:56:22 -06:00
color: var(--fg);
}
.buttonLink__link-1 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 1;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__link-2 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 2;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__link-3 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 1;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__link-4 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 2;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__link-5 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 3;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__link-6 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 3;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__link:hover {
2020-12-29 12:01:14 -06:00
background-color: var(--accent);
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.buttonLink__link:hover svg {
stroke: var(--sfg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2021-01-09 23:56:22 -06:00
.list {
2020-12-29 12:01:14 -06:00
display: flex;
align-items: center;
flex-direction: column;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.list__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
}
2021-01-09 23:56:22 -06:00
.list__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
}
2021-01-09 23:56:22 -06:00
.list__head {
2021-07-20 21:28:00 -05:00
margin-top: 3vh;
margin-bottom: 2vh;
2020-12-29 12:01:14 -06:00
color: var(--fg);
2021-08-10 19:55:57 -05:00
width: var(--iconsize);
height: var(--iconsize);
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.list__link {
2020-12-29 12:01:14 -06:00
text-decoration: none;
font-size: var(--fses);
color: var(--fg);
2021-07-20 21:28:00 -05:00
margin-top: 1vh;
2021-07-20 21:42:14 -05:00
padding: 8px 12px;
2020-12-29 12:01:14 -06:00
border-radius: 5px;
font-weight: bold;
2021-07-20 21:42:14 -05:00
text-align: center;
width: 80%;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.list__link:hover {
2020-12-29 12:01:14 -06:00
background-color: var(--accent);
2021-01-09 23:56:22 -06:00
color: var(--sfg);
2021-07-20 21:42:14 -05:00
2021-01-09 23:56:22 -06:00
}
/* M E D I A - Q U E R I E S */
@media only screen and (max-width: 68.75em) {
.container {
grid-gap: 20px;
padding: 40px;
}
.timeBlock {
grid-row: 1 / span 2;
grid-column: 1 / span 4;
}
.weatherBlock {
display: none;
}
#greetings {
font-size: var(--fss);
}
.list {
display: none;
}
.buttonLink {
grid-column: 1 / span 4;
2021-07-20 21:28:00 -05:00
grid-gap: 3vw;
2021-01-09 23:56:22 -06:00
padding-left: 100px;
padding-right: 100px;
}
2020-09-11 19:23:13 -05:00
}