Dwinzo_dev/app/src/styles/pages/realTimeViz.scss

284 lines
5.0 KiB
SCSS
Raw Normal View History

2025-03-25 06:17:41 +00:00
@use "../abstracts/variables.scss" as *;
2025-03-25 08:55:51 +00:00
@use "../abstracts/mixins.scss" as *;
2025-03-25 06:17:41 +00:00
// Main Container
.realTime-viz {
background-color: var(--background-color);
border-radius: 20px;
box-shadow: $box-shadow-medium;
2025-03-25 08:55:51 +00:00
width: 100%;
height: 100%;
2025-03-25 06:17:41 +00:00
position: absolute;
2025-03-25 08:55:51 +00:00
top: 0;
left: 0;
transform: scale(1);
2025-03-25 11:03:11 +00:00
.scene-container {
width: 100%;
height: 100%;
2025-03-25 06:17:41 +00:00
2025-03-25 11:03:11 +00:00
canvas {
width: 100vw !important;
height: 100% !important;
}
}
2025-03-25 08:55:51 +00:00
// Panels
.panel {
position: absolute;
background: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
border-radius: 6px;
overflow: hidden;
2025-03-25 06:17:41 +00:00
2025-03-25 08:55:51 +00:00
.panel-content {
position: relative;
height: 100%;
padding: 10px;
overflow: auto;
display: flex;
flex-direction: column;
gap: 10px;
background-color: var(--background-color);
&::-webkit-scrollbar {
display: none;
2025-03-25 06:17:41 +00:00
}
2025-03-25 08:55:51 +00:00
.chart-container {
width: 229px;
height: 200px;
max-height: 100%;
border: 1px dotted #a9a9a9;
border-radius: 8px;
box-shadow: 0px 2px 6px 0px rgba(60, 60, 67, 0.1);
padding: 6px 0;
background-color: white;
}
.close-btn {
position: absolute;
top: 5px;
right: 5px;
background: none;
border: none;
cursor: pointer;
color: var(--primary-color);
}
}
}
// Panels for each side
.left-panel,
.right-panel {
.chart-container {
padding: 10px;
width: 100% !important;
height: 250px !important;
}
}
.top-panel,
.bottom-panel {
.chart-container {
padding: 10px;
width: 300px !important;
height: 100% !important;
2025-03-25 06:17:41 +00:00
}
}
2025-03-25 08:55:51 +00:00
// Zone Wrapper
2025-03-25 06:17:41 +00:00
.zoon-wrapper {
display: flex;
background-color: var(--background-color);
position: absolute;
bottom: 10px;
left: 50%;
transform: translate(-50%, 0);
gap: 6px;
padding: 4px;
border-radius: 8px;
max-width: 80%;
overflow: auto;
max-width: calc(100% - 450px);
2025-03-25 10:25:48 +00:00
z-index: 11000000000;
2025-03-25 08:55:51 +00:00
2025-03-25 06:17:41 +00:00
&::-webkit-scrollbar {
display: none;
}
.zone {
width: auto;
background-color: var(--background-color);
border-radius: 6px;
padding: 4px 8px;
white-space: nowrap;
font-size: $small;
}
.active {
background-color: var(--accent-color);
color: var(--background-color);
}
}
.zoon-wrapper.bottom {
2025-03-25 11:12:24 +00:00
bottom: 250px;
2025-03-25 06:17:41 +00:00
}
.content-container {
display: flex;
height: 100vh;
transition: all 0.3s ease;
}
.main-container {
position: relative;
flex: 1;
height: 600px;
background-color: rgb(235, 235, 235);
margin: 0 30px;
transition: height 0.3s ease, margin 0.3s ease;
}
2025-03-25 08:55:51 +00:00
}
2025-03-25 06:17:41 +00:00
2025-03-25 08:55:51 +00:00
.playActiveFalse {
position: absolute;
top: 50%;
left: calc(270px + 45px);
transform-origin: left;
2025-03-25 10:25:48 +00:00
transform: translate(0, -50%) scaleX(0.6) scaleY(0.65);
width: calc((100vw * 1.65) - (320px + 270px + 70px) / 0.6);
z-index: 100;
2025-03-25 06:17:41 +00:00
2025-03-25 11:03:11 +00:00
.scene-container {
width: 100%;
height: 100%;
canvas {
width: calc((100vw * 1.65) - (320px + 270px + 70px) / 0.6) !important;
height: 100% !important;
2025-03-25 06:17:41 +00:00
2025-03-25 11:03:11 +00:00
}
2025-03-25 11:00:33 +00:00
}
2025-03-25 06:17:41 +00:00
2025-03-25 10:25:48 +00:00
&.top {
transform: scale(1.5);
}
2025-03-25 06:17:41 +00:00
2025-03-25 10:25:48 +00:00
&.right {
transform: scale(1.5);
}
2025-03-25 06:17:41 +00:00
2025-03-25 10:25:48 +00:00
&.bottom {
transform: scale(1.5);
}
2025-03-25 06:17:41 +00:00
2025-03-25 10:25:48 +00:00
&.left {
transform: scale(1.5);
}
2025-03-25 06:17:41 +00:00
2025-03-25 10:25:48 +00:00
.zoon-wrapper {
2025-03-25 11:03:11 +00:00
transform: translate(-50%, 0) scale(1.5);
2025-03-25 06:17:41 +00:00
}
}
2025-03-25 10:25:48 +00:00
2025-03-25 06:17:41 +00:00
// Side Buttons
.side-button-container {
position: absolute;
display: flex;
background-color: var(--background-color);
padding: 5px;
border-radius: 8px;
transition: transform 0.3s ease;
.extra-Bs {
display: flex;
align-items: center;
gap: 12px;
.icon {
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 4px;
}
.active {
background-color: var(--accent-color);
}
&:hover {
cursor: pointer;
}
}
.side-button {
cursor: pointer;
transition: background-color 0.3s ease;
width: 18px;
height: 18px;
display: flex;
justify-content: center;
background-color: var(--accent-color);
border: none;
color: var(--background-color);
border-radius: 4px;
}
&.top {
2025-03-25 10:25:48 +00:00
top: -35px;
2025-03-25 06:17:41 +00:00
left: 50%;
transform: translateX(-50%);
flex-direction: row;
gap: 6px;
2025-03-25 10:25:48 +00:00
transform: scale(1.5);
2025-03-25 06:17:41 +00:00
}
&.right {
2025-03-25 10:25:48 +00:00
right: -35px;
2025-03-25 06:17:41 +00:00
top: 50%;
transform: translateY(-50%);
flex-direction: column;
gap: 6px;
2025-03-25 10:25:48 +00:00
transform: scale(1.5);
2025-03-25 06:17:41 +00:00
}
&.bottom {
2025-03-25 10:25:48 +00:00
bottom: -35px;
2025-03-25 06:17:41 +00:00
left: 50%;
transform: translateX(-50%);
flex-direction: row;
gap: 6px;
2025-03-25 10:25:48 +00:00
transform: scale(1.5);
2025-03-25 06:17:41 +00:00
}
&.left {
2025-03-25 10:25:48 +00:00
left: -35px;
2025-03-25 06:17:41 +00:00
top: 50%;
transform: translateY(-50%);
flex-direction: column;
gap: 6px;
2025-03-25 10:25:48 +00:00
transform: scale(1.5);
2025-03-25 06:17:41 +00:00
}
}
2025-03-25 08:55:51 +00:00
.right.side-button-container,
2025-03-25 06:17:41 +00:00
.left.side-button-container {
.extra-Bs {
flex-direction: column;
}
}
2025-03-25 08:55:51 +00:00
.top-panel,
.bottom-panel {
.panel-content {
2025-03-25 06:17:41 +00:00
display: flex;
2025-03-25 08:55:51 +00:00
flex-direction: row !important;
2025-03-25 06:17:41 +00:00
}
}