config/public/main.css

195 lines
2.8 KiB
CSS
Raw Normal View History

2025-03-05 17:54:57 +01:00
body {
margin: 0px;
font: 1.8rem "Fira Sans", sans-serif;
}
2025-04-26 19:04:07 +02:00
.mode {
grid-area: mode;
height: 50vh;
}
.tracker {
grid-area: tracker;
}
.title {
grid-area: title;
margin: 30px;
}
.moods {
grid-area: moods;
margin: 30px;
}
.legend {
grid-area: legend;
2025-05-03 19:29:11 +02:00
margin: 4px;
font-size: 0.8rem;
display: flex;
2025-05-06 13:39:46 +02:00
flex-direction: row;
2025-05-03 19:29:11 +02:00
align-items: flex-end;
2025-05-06 13:39:46 +02:00
justify-content: flex-end;
margin: 30px;
2025-04-26 19:04:07 +02:00
}
.info {
grid-area: info;
}
2025-05-03 19:29:11 +02:00
.legend .bar-creatif {
background: red;
width: 10px;
height: 10px;
2025-05-06 13:39:46 +02:00
margin-left: 15px;
2025-05-03 19:29:11 +02:00
}
.legend .bar-frigo {
background: gray;
width: 10px;
height: 10px;
margin-left: 15px;
}
2025-05-06 13:39:46 +02:00
.legend .bar-croisiere {
background: green;
width: 10px;
height: 10px;
margin-left: 15px;
}
.legend .bar-en-charge {
background: orange;
width: 10px;
height: 10px;
margin-left: 15px;
}
2025-05-03 19:29:11 +02:00
.legend .bar-explain {
padding-left: 3px;
}
2025-04-26 19:04:07 +02:00
2025-05-06 13:39:46 +02:00
.legend-mood {
display: flex;
align-items: center;
}
2025-03-05 17:54:57 +01:00
main {
2025-04-26 19:04:07 +02:00
display: block;
grid-template-rows: 1fr 1fr;
grid-template-areas:
"mode"
"tracker";
2025-03-05 17:54:57 +01:00
align-items: center;
justify-content: center;
}
2025-03-05 18:01:07 +01:00
.mode img {
2025-03-05 17:54:57 +01:00
height: 100%;
width:100%;
object-fit: contain;
}
.tracker {
2025-04-26 19:04:07 +02:00
grid-area: tracker;
2025-03-05 17:54:57 +01:00
}
2025-04-26 19:04:07 +02:00
.title h1 {
2025-03-05 17:54:57 +01:00
font-weight: 350;
}
2025-04-26 19:04:07 +02:00
@media (min-width: 1000px) {
main {
display: grid;
grid-template-columns: 1fr 1fr;
2025-05-03 19:29:11 +02:00
grid-template-rows: 1fr;
2025-04-26 19:04:07 +02:00
grid-template-areas: "mode tracker";
align-items: center;
justify-content: center;
}
.mode {
height: 100vh;
grid-area: mode;
}
.tracker {
grid-area: tracker;
display: grid;
grid-template-columns: 1fr 1fr;
2025-05-06 13:39:46 +02:00
grid-template-rows: repeat(2, 1fr) repeat(7, 1fr);
2025-04-26 19:04:07 +02:00
grid-template-areas:
2025-05-03 19:29:11 +02:00
"title title"
2025-04-26 19:04:07 +02:00
"title title"
"moods moods"
"moods moods"
"moods moods"
2025-05-03 19:29:11 +02:00
"moods moods"
2025-05-06 13:39:46 +02:00
"moods moods"
"moods moods"
". legend";
2025-04-26 19:04:07 +02:00
background-color: lightgoldenrodyellow;
align-items: center;
justify-content: center;
height: 100vh;
width: 100%;
gap: 45px;
}
.title {
grid-area: title;
margin: 30px;
}
.info {
grid-area: info;
}
.mode img {
height: 100%;
width:100%;
object-fit: contain;
}
.title h1 {
font-weight: 350;
}
}
.moods {
2025-05-03 19:29:11 +02:00
grid-area: moods;
margin: 30px;
max-height: 100%;
display: flex;
flex-direction: column;
}
.legend {
align-self: flex-end;
}
.log {
align-self: flex-end;
2025-03-05 17:54:57 +01:00
display: flex;
flex-wrap: wrap;
align-items: flex-start;
2025-05-03 19:29:11 +02:00
overflow: hidden;
2025-03-05 17:54:57 +01:00
}
2025-05-03 19:29:11 +02:00
.moods .log .week {
2025-03-05 17:54:57 +01:00
display: flex;
flex-direction: column;
justify-items: start;
flex-wrap: wrap;
margin-bottom: 20px;
}
2025-05-03 19:29:11 +02:00
.moods .log .day {
2025-03-05 17:54:57 +01:00
border: 1px;
margin: 4px;
2025-04-26 19:04:07 +02:00
min-width: 15px;
min-height: 15px;
2025-03-05 17:54:57 +01:00
}
.creatif {
background-color: red;
}
.en-charge {
background-color: orange;
}
.frigo-vide {
background-color: grey;
}
.croisiere {
background-color: green;
}
2025-04-26 19:04:07 +02:00
.info {
margin: 30px;
}