Refactor graph styles and filters
This commit is contained in:
@@ -6,130 +6,8 @@
|
|||||||
body {
|
body {
|
||||||
padding-top: 5vw;
|
padding-top: 5vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
height: 100vh;
|
|
||||||
margin: 0;
|
|
||||||
background-color: #f0f0f0;
|
|
||||||
flex-direction: column;
|
|
||||||
background-color: #afafaf;
|
background-color: #afafaf;
|
||||||
}
|
margin: 0;
|
||||||
|
|
||||||
.gaugeGroup {
|
|
||||||
width: 98vw;
|
|
||||||
height: 20vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column; /* Keep as column */
|
|
||||||
justify-content: flex-start;
|
|
||||||
background-color: #333;
|
|
||||||
color: #fff;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 50px;
|
|
||||||
border: 2px solid #333;
|
|
||||||
clear: both;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
position: relative;
|
|
||||||
float: top;
|
|
||||||
}
|
|
||||||
.groupTitle {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Node {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Sensorvalues {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-around;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
width: 15%;
|
|
||||||
height: 110%;
|
|
||||||
background-color: #ddd;
|
|
||||||
color: #333;
|
|
||||||
padding: 10px;
|
|
||||||
margin: 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
text-align: center;
|
|
||||||
position: relative;
|
|
||||||
padding-bottom: 6vh; /* Increase bottom padding */
|
|
||||||
}
|
|
||||||
|
|
||||||
.gaugeContainer {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 100%;
|
|
||||||
height: 80%; /* Increase the height from 70% to 80% */
|
|
||||||
position: relative;
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gaugeImage {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
max-height: 200%;
|
|
||||||
object-fit: contain;
|
|
||||||
position: absolute; /* Make the image position absolute */
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: 1; /* Make the image display below the needle */
|
|
||||||
bottom: 0;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gaugeValue,
|
|
||||||
.gaugeText {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 24px;
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gaugeText {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 1.4vw;
|
|
||||||
z-index: 2;
|
|
||||||
position: absolute;
|
|
||||||
bottom: -3.2vw; /* Adjust this value to move the text further down */
|
|
||||||
}
|
|
||||||
|
|
||||||
.valueContainer {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#valueText {
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.needle {
|
|
||||||
position: absolute;
|
|
||||||
bottom: -40%; /* Lower the needle to the bottom */
|
|
||||||
left: 50%;
|
|
||||||
width: 2px;
|
|
||||||
height: 110%;
|
|
||||||
background-color: black;
|
|
||||||
transform-origin: bottom;
|
|
||||||
z-index: 3; /* Make the needle display above the image */
|
|
||||||
}
|
|
||||||
|
|
||||||
.contentContainer {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row; /* Layout children side by side */
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
@@ -169,49 +47,64 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
border: 2px solid #ccc;
|
border: 2px solid #ccc;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
margin: 20px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data-types {
|
.data-types {
|
||||||
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column; /* Display data types in a column */
|
flex-direction: column;
|
||||||
align-items: flex-start; /* Align to the start of the container */
|
align-items: flex-start;
|
||||||
text-align: right; /* Align text to the right */
|
margin-right: 60px;
|
||||||
width: 20%; /* Set a fixed width for the data types */
|
margin-bottom: 10px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 8px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter {
|
.filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column; /* Display filters in a column */
|
justify-content: space-between;
|
||||||
align-items: center center; /* Align to the center of the container */
|
align-items: center;
|
||||||
text-align: center center;
|
width: 100%;
|
||||||
margin-left: 20px; /* Add some space between the data types and filters */
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date-filter {
|
.date-filter {
|
||||||
flex-direction: column;
|
flex: 1;
|
||||||
align-items: center center;
|
text-align: center;
|
||||||
justify-content: center;
|
margin-right: 60px;
|
||||||
align-self: center;
|
font-size: 1.2em; /* Increase font size for a bigger appearance */
|
||||||
width: 30%;
|
padding: 8px;
|
||||||
|
border-radius: 5px; /* Add border radius for a rounded look */
|
||||||
|
background-color: #f0f0f0; /* Light background color for contrast */
|
||||||
}
|
}
|
||||||
|
|
||||||
.node-filter {
|
.node-filter {
|
||||||
align-items: center;
|
flex: 1;
|
||||||
|
margin: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
justify-content: center;
|
margin-right: 60px;
|
||||||
align-self: flex-end;
|
align-content: center;
|
||||||
width: 20%;
|
font-size: 1.2em; /* Increase font size for a bigger appearance */
|
||||||
|
padding: 8px;
|
||||||
|
border-radius: 5px; /* Add border radius for a rounded look */
|
||||||
|
background-color: #f0f0f0; /* Light background color for contrast */
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-button {
|
.filter-button {
|
||||||
text-align: center;
|
flex: 1;
|
||||||
align-items: center;
|
width: 20%;
|
||||||
justify-content: center;
|
background-color: #007bff;
|
||||||
width: 10%;
|
color: white;
|
||||||
margin-top: auto;
|
padding: 10px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Additional styling as needed */
|
/* Additional styling as needed */
|
Reference in New Issue
Block a user