Bento/app.css

376 lines
6.4 KiB
CSS
Raw Permalink Normal View History

2022-02-19 00:04:12 +03:00
/*
2021-09-07 11:40:42 -05:00
//
//
2022-02-19 00:04:12 +03:00
//
2021-09-07 11:40:42 -05:00
*/
2022-02-19 00:04:12 +03:00
/*
2022-02-03 11:04:50 -06:00
//
//
2022-02-19 00:04:12 +03:00
//
2022-02-03 11:04:50 -06:00
*/
2021-01-09 23:56:22 -06:00
2022-02-03 11:04:50 -06:00
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap'); /* Font Import */
2020-12-29 12:01:14 -06:00
2020-08-14 12:40:38 -05:00
:root {
2022-02-03 11:04:50 -06:00
/* Font Size */
--fg-primary: 12vh; /* Time and Greetings */
--fg-secondary: 3vh; /* Greetings and Weather widger */
--fg-date: 8vh; /* Date */
--fg-list: 2vh; /* Links List */
2022-02-19 00:04:12 +03:00
--icon: 6vh; /* Icon Size */
2022-02-03 11:04:50 -06:00
/* Fonts Color */
--fg: #3a3a3a; /* Foreground color */
--sfg: #494949; /* Sceondary Foreground color */
2021-08-10 19:55:57 -05:00
2022-02-03 11:04:50 -06:00
/* Light Colors */
2022-02-10 18:19:11 -06:00
--accent: #57a0d9; /* Hover color */
2022-02-03 11:04:50 -06:00
--background: #f5f5f5; /* Background color */
--cards: #e4e6e6; /* Cards color */
2020-09-13 23:05:28 -05:00
2020-12-29 12:01:14 -06:00
/* Image background */
2022-02-03 11:04:50 -06:00
--imgbg: url(assets/background.jpg); /* Image URL */
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-08-30 01:32:40 -05:00
.darktheme {
2022-02-03 11:04:50 -06:00
/* Dark Colors */
2022-02-10 18:19:11 -06:00
--accent: #57a0d9; /* Hover color */
2022-02-03 11:04:50 -06:00
--background: #19171a; /* Background color */
--cards: #201e21; /* Cards color */
/* Fonts Color */
2021-01-09 23:56:22 -06:00
--fg: #d8dee9; /* Foreground color */
2022-02-10 18:19:11 -06:00
--sfg: #2c292e; /* Secondary Foreground color */
2022-02-03 11:04:50 -06:00
/* Image background */
2021-01-09 23:56:22 -06:00
--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
2022-02-19 00:04:12 +03:00
/*
2022-02-03 11:04:50 -06:00
//
//
2022-02-19 00:04:12 +03:00
//
2022-02-03 11:04:50 -06:00
*/
2021-01-09 23:56:22 -06: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;
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
2022-02-03 11:04:50 -06:00
body {
width: 100vw;
height: 100vh;
background-color: var(--background);
display: flex;
align-items: center;
justify-content: center;
}
.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;
}
2022-02-19 00:04:12 +03:00
svg {
shape-rendering: geometricPrecision;
}
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-07-25 11:16:39 -05:00
#themeIcon {
2021-01-09 23:56:22 -06:00
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 {
2022-02-03 11:04:50 -06:00
background-color: var(--cards);
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-07-25 11:16:39 -05:00
.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-07-25 11:16:39 -05:00
.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 {
2022-02-03 11:04:50 -06:00
font-size: var(--fg-primary);
2020-12-29 12:01:14 -06:00
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 {
2022-02-03 11:04:50 -06:00
font-size: var(--fg-date);
2020-12-29 12:01:14 -06:00
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 {
2022-02-03 11:04:50 -06:00
margin-left: 1.5rem;
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 {
2022-02-03 11:04:50 -06:00
font-size: var(--fg-secondary);
2020-12-29 12:01:14 -06:00
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2021-07-25 11:16:39 -05:00
.weatherIcon 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
2021-07-25 11:16:39 -05:00
.weatherValue p {
2022-02-03 11:04:50 -06:00
font-size: var(--fg-secondary);
2020-12-29 12:01:14 -06:00
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
2021-07-25 11:16:39 -05:00
.weatherDescription p {
2022-02-03 11:04:50 -06:00
font-size: var(--fg-secondary);
2020-12-29 12:01:14 -06:00
margin-left: 15px;
color: var(--fg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
2022-02-09 22:14:58 -06:00
.reduceGap {
grid-gap: 2rem !important;
}
.removeGap {
grid-gap: 0 !important;
}
.linksBlock {
2020-12-29 12:01:14 -06:00
grid-row: 3 / span 2;
grid-column: 1 / span 4;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(2, 1fr);
2022-02-09 22:14:58 -06:00
grid-gap: 1.5rem;
}
.linksBlockLeft {
grid-row: 1 / span 2;
2020-12-29 12:01:14 -06:00
grid-column: 1 / span 2;
}
.linksBlockRight {
grid-row: 1 / span 2;
grid-column: 3 / span 2;
}
.buttonsContainer {
width: 100%;
height: 100%;
2020-12-29 12:01:14 -06:00
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
2022-02-03 11:04:50 -06:00
.button {
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
2022-02-03 11:04:50 -06:00
.buttonIcon {
width: var(--icon);
height: var(--icon);
2021-01-09 23:56:22 -06:00
color: var(--fg);
}
2022-02-03 11:04:50 -06:00
.button__1 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 1;
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.button__2 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 2;
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.button__3 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 1;
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.button__4 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 2;
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.button__5 {
2020-12-29 12:01:14 -06:00
grid-row: 1;
grid-column: 3;
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.button__6 {
2020-12-29 12:01:14 -06:00
grid-row: 2;
grid-column: 3;
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.button:hover {
2020-12-29 12:01:14 -06:00
background-color: var(--accent);
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.button:hover svg {
2021-01-09 23:56:22 -06:00
stroke: var(--sfg);
2020-09-11 19:23:13 -05:00
}
2020-08-14 12:50:58 -05:00
.listsContainer {
width: 100%;
height: 100%;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
2022-02-09 22:14:58 -06:00
grid-gap: 3rem;
padding: 0.4rem;
}
2021-01-09 23:56:22 -06:00
.list {
2020-12-29 12:01:14 -06:00
display: flex;
align-items: center;
2022-02-09 22:14:58 -06:00
justify-content: center;
2020-12-29 12:01:14 -06:00
flex-direction: column;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.list__1 {
grid-column: 1;
grid-row: 1 / span 2;
2020-09-11 19:23:13 -05:00
}
2021-01-09 23:56:22 -06:00
.list__2 {
grid-column: 2;
grid-row: 1 / span 2;
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.listIcon {
2022-02-09 22:14:58 -06:00
/* margin-top: 3vh; */
2021-07-20 21:28:00 -05:00
margin-bottom: 2vh;
2020-12-29 12:01:14 -06:00
color: var(--fg);
2022-02-03 11:04:50 -06:00
width: var(--icon);
height: var(--icon);
2020-09-11 19:23:13 -05:00
}
2022-02-03 11:04:50 -06:00
.listItem {
2020-12-29 12:01:14 -06:00
text-decoration: none;
2022-02-03 11:04:50 -06:00
font-size: var(--fg-list);
2020-12-29 12:01:14 -06:00
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
}
2022-02-03 11:04:50 -06:00
.listItem:hover {
2020-12-29 12:01:14 -06:00
background-color: var(--accent);
2021-01-09 23:56:22 -06:00
color: var(--sfg);
}
/* 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 {
2022-02-03 11:04:50 -06:00
font-size: var(--fg-secondary);
2021-01-09 23:56:22 -06:00
}
2022-02-09 22:14:58 -06:00
.linksBlockRight {
2021-01-09 23:56:22 -06:00
display: none;
}
2022-02-09 22:14:58 -06:00
.linksBlockLeft {
2021-01-09 23:56:22 -06:00
grid-column: 1 / span 4;
}
2022-02-03 11:04:50 -06:00
.button {
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
}