frontend-smartfarming/agrilink_vocpro/src/app/pages/dashboard/page/graph/graph.component.scss

179 lines
2.6 KiB
SCSS
Raw Normal View History

.container-graph {
display: flex;
flex-direction: column;
position: relative;
height: max-content;
.date-picker{
display: flex;
justify-content: flex-end;
padding: 10px 20px;
}
.mat-form-field{
font-family: 'Onest', sans-serif;
}
mat-datepicker-toggle, mat-date-range-input{
color: #16423C;
}
.mat-form-field.mat-focused .mat-date-range-input {
color: #16423C;
}
2024-11-04 04:09:04 +00:00
.sensor-wrapper {
2024-11-04 04:09:04 +00:00
position: relative;
width: 100%;
2024-09-17 06:50:34 +00:00
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 35px;
2024-11-04 04:09:04 +00:00
border: 1px solid #E5E5E5;
padding: 0px 20px 0px 20px;
background-color: white;
border-radius: 10px;
h2 {
font-size: 18px;
margin-bottom: 10px;
2024-09-17 06:50:34 +00:00
}
2024-11-04 04:09:04 +00:00
canvas {
position: relative;
width: 100%;
height: auto;
aspect-ratio: 2 / 1;
max-height: 300px;
}
2024-09-17 06:50:34 +00:00
}
2024-11-04 04:09:04 +00:00
.title-with-dropdown {
display: flex;
align-items: center;
justify-content: center;
width: 50%;
.title {
flex: 0 0 25%;
text-align: center;
}
.form-select {
flex: 0 0 25%;
margin: 18px 0px 0px 15px;
2024-09-17 06:50:34 +00:00
}
}
}
.title {
text-align: center;
font-size: 20px;
margin: 18px 0px 18px 0px;
}
@media (max-width: 768px) {
canvas {
2024-11-04 04:09:04 +00:00
height: auto;
width: 100%;
max-width: 100%;
}
.date-picker{
display: flex;
justify-content: center;
padding: 10px 20px;
}
mat-hint{
font-size: 10px;
align-items: center;
}
.button-param {
flex-direction: column;
align-items: center;
}
button {
width: 80%;
max-width: 300px;
text-align: center;
}
}
2024-11-08 03:32:18 +00:00
@media (max-width: 344px) {
canvas {
height: auto;
width: 100%;
max-width: 100%;
}
.date-picker{
display: flex;
justify-content: center;
padding: 10px 20px;
}
mat-hint{
font-size: 10px;
align-items: center;
}
.button-param {
flex-direction: column;
align-items: center;
}
button {
width: 80%;
max-width: 300px;
text-align: center;
}
2024-11-08 03:32:18 +00:00
}
.loading {
font-size: 18px;
text-align: center;
}
.spinner {
2024-11-04 04:09:04 +00:00
color: #16423C;
}
.no-data {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
font-size: 18px;
}
.button-param {
display: flex;
justify-content: center;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
margin: 10px 0 10px 0px;
}
button {
font-family: 'Onest', sans-serif;
margin: 0;
padding: 5px 10px;
background-color: #E5E5E5;
color: #16423C;
border: none;
border-radius: 10px;
transition: all 0.3s ease;
}
button.active {
background-color: #16423C;
color: white;
}