Dwinzo_dev/app/src/styles/layout/sidebar.scss

1142 lines
25 KiB
SCSS
Raw Normal View History

2025-03-25 06:17:41 +00:00
@use "../abstracts/variables" as *;
@use "../abstracts/mixins" as *;
.sidebar-left-wrapper {
width: 270px;
position: fixed;
top: 32px;
left: 8px;
background-color: var(--background-color);
border-radius: #{$border-radius-extra-large};
box-shadow: #{$box-shadow-medium};
z-index: #{$z-index-tools};
2025-03-25 06:17:41 +00:00
.header-container {
@include flex-space-between;
padding: 10px;
width: 100%;
.header-content {
@include flex-center;
width: calc(100% - 34px);
.logo-container {
@include flex-center;
}
.header-title {
padding: 0 8px;
width: 100%;
max-width: calc(100% - 32px);
.input-value {
color: var(--accent-color);
}
}
}
.toggle-sidebar-ui-button {
@include flex-center;
cursor: pointer;
height: 32px;
width: 32px;
min-height: 32px;
min-width: 32px;
border-radius: #{$border-radius-small};
&:hover {
background-color: var(--background-color-secondary);
}
}
.active {
background-color: var(--background-color-secondary);
outline: 1px solid var(--accent-color);
outline-offset: -1px;
}
}
.sidebar-left-container {
min-height: 50vh;
padding-bottom: 12px;
position: relative;
display: flex;
flex-direction: column;
.sidebar-left-content-container {
border-bottom: 1px solid var(--border-color);
// flex: 1;
height: calc(100% - 36px);
position: relative;
overflow: auto;
.widget-left-sideBar {
min-height: 50vh;
max-height: 60vh;
.widget2D {
overflow: auto;
2025-03-25 06:17:41 +00:00
.chart-container {
display: flex;
flex-direction: column;
gap: 8px;
padding: 6px;
flex-wrap: nowrap;
overflow: auto;
.chart {
min-height: 170px;
background: var(--background-color);
border: 1.23px solid var(--border-color);
box-shadow: 0px 4.91px 4.91px 0px #0000001c;
border-radius: $border-radius-medium;
padding: 12px 6px;
}
.progressBar {
height: auto !important;
padding: 12px 10px 41px 10px;
display: flex;
flex-direction: column;
gap: 16px;
.header {
display: flex;
justify-content: start;
align-items: center;
border-bottom: none;
}
.stock {
padding: 13px 5px;
background-color: var(--background-color-secondary);
border-radius: 6.33px;
display: flex;
justify-content: space-between;
.stock-item {
.stockValues {
display: flex;
flex-direction: row-reverse;
align-items: flex-end;
gap: 3px;
.value {
color: var(--accent-color);
font-size: var(--font-size-large);
2025-03-25 06:17:41 +00:00
}
}
.stock-description {
font-size: var(--font-size-small);
2025-03-25 06:17:41 +00:00
}
}
}
}
}
}
2025-03-25 06:17:41 +00:00
.widget3D {
display: flex;
flex-direction: column;
gap: 6px;
padding: 6px;
.widget-item {
height: 170px;
background: var(--background-color);
border: 1.23px solid var(--border-color);
box-shadow: 0px 4.91px 4.91px 0px #0000001c;
border-radius: $border-radius-medium;
padding: 12px 6px;
.widget-image {
width: 100%;
height: 90%;
object-fit: contain;
}
}
}
}
}
.outline-container {
height: 100%;
.outline-content-container {
position: relative;
height: 100%;
overflow: auto;
max-height: 60vh;
}
}
}
}
.sidebar-right-wrapper {
width: 320px;
position: fixed;
top: 32px;
right: 8px;
background-color: var(--background-color);
border-radius: #{$border-radius-extra-large};
box-shadow: #{$box-shadow-medium};
z-index: #{$z-index-tools};
2025-03-25 06:17:41 +00:00
.header-container {
@include flex-space-between;
padding: 10px;
width: 100%;
gap: 12px;
height: 52px;
.options-container {
@include flex-center;
gap: 8px;
.share-button {
padding: 4px 12px;
color: var(--primary-color);
background-color: var(--accent-color);
font-weight: var(--font-weight-regular);
border-radius: #{$border-radius-large};
cursor: pointer;
}
.app-docker-button {
@include flex-center;
}
}
.split {
height: 20px;
width: 2px;
background: var(--background-color-secondary);
}
.users-container {
width: 100%;
@include flex-space-between;
.user-profile {
@include flex-center;
height: 26px;
width: 26px;
min-height: 26px;
min-width: 26px;
border-radius: 50%;
font-weight: var(--font-weight-bold);
color: white;
2025-03-28 13:50:52 +00:00
text-transform: capitalize;
2025-03-25 06:17:41 +00:00
}
.guest-users-container {
display: flex;
2025-03-28 13:50:52 +00:00
width: 100%;
justify-content: flex-end;
2025-03-25 06:17:41 +00:00
.other-guest {
@include flex-center;
height: 26px;
width: 26px;
min-height: 26px;
min-width: 26px;
border-radius: 50%;
background: var(--highlight-accent-color);
font-weight: var(--font-weight-bold);
color: var(--accent-color);
outline: 1px solid var(--accent-color);
outline-offset: -1px;
}
}
.user-profile-container {
display: flex;
2025-04-01 08:57:08 +00:00
.user-profile {
background: var(--accent-color);
color: var(--primary-color);
}
2025-03-25 06:17:41 +00:00
.user-organization {
2025-03-28 13:50:52 +00:00
height: 26px;
width: 52px;
2025-03-25 06:17:41 +00:00
max-width: 52px;
border-radius: 20px;
overflow: hidden;
margin-left: 2px;
img {
height: 100%;
width: 100%;
object-fit: cover;
vertical-align: top;
}
}
}
}
}
.sidebar-actions-container {
position: absolute;
left: -40px;
.sidebar-action-list {
margin-bottom: 12px;
@include flex-center;
height: 34px;
width: 34px;
border-radius: #{$border-radius-circle};
background: var(--primary-color);
box-shadow: #{$box-shadow-medium};
}
.active {
background: var(--accent-color);
}
}
.sidebar-right-container {
min-height: 50vh;
padding-bottom: 12px;
position: relative;
display: flex;
flex-direction: column;
.sidebar-right-content-container {
border-bottom: 1px solid var(--border-color);
// flex: 1;
height: calc(100% - 36px);
position: relative;
overflow: auto;
}
}
.visualization-right-sideBar {
min-height: 50vh;
max-height: 60vh;
.sidebar-right-content-container {
.dataSideBar {
.inputs-wrapper {
.datas {
.input-value {
padding: 5px 10px;
}
.input-value,
.rename-input {
margin-right: 24px;
width: 170px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
2025-03-25 06:17:41 +00:00
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 12px;
padding: 10px 12px;
.datas {
display: flex;
align-items: center;
justify-content: space-between;
.datas__class {
display: flex;
align-items: center;
.multi-level-dropdown {
width: 170px;
2025-03-25 06:17:41 +00:00
.dropdown-button {
display: flex;
justify-content: space-between;
gap: 6px;
}
}
}
.datas__class {
display: flex;
gap: 12px;
// .datas__separator {
// }
.disable {
cursor: not-allowed;
pointer-events: none;
/* Disables all mouse interactions */
opacity: 0.5;
/* Optional: Makes the button look visually disabled */
}
}
}
.sideBarHeader {
color: var(--accent-color);
border-bottom: 1px solid var(--border-color);
padding-bottom: 6px;
}
2025-03-25 06:17:41 +00:00
.inputs-wrapper {
display: flex;
flex-direction: column;
gap: 6px;
}
.selectedMain-container {
display: flex;
flex-direction: column;
gap: 6px;
border-bottom: 1px solid var(--border-color);
padding-bottom: 10px;
.selectedMain {
display: flex;
align-items: center;
gap: 6px;
main {
width: 35%;
white-space: nowrap;
/* Prevent wrapping */
}
.icon {
padding: 0;
cursor: pointer;
}
button {
background-color: transparent;
box-shadow: none;
color: #5273eb;
padding: 6px;
font-size: var(--font-size-xlarge);
2025-03-25 06:17:41 +00:00
}
.bulletPoint {
color: #5273eb;
font-size: var(--font-size-large);
2025-03-25 06:17:41 +00:00
}
.regularDropdown-container {
width: 100%;
}
&:first-child {
gap: 4px;
}
}
}
.child {
width: 100%;
gap: 6px;
}
.infoBox {
display: flex;
align-items: flex-start;
gap: 6px;
color: #444;
border-radius: 6px;
font-size: var(--font-weight-regular);
2025-03-25 06:17:41 +00:00
.infoIcon {
padding: 0px 7px;
border-radius: 50%;
border: 1px solid gray;
}
p {
margin: 0;
}
}
}
.design {
width: 100%;
display: flex;
flex-direction: column;
gap: 15px;
padding: 0;
font-size: var(--font-weight-regular);
2025-03-25 06:17:41 +00:00
color: #4a4a4a;
2025-04-07 12:25:14 +00:00
.reviewChart {
width: 100%;
.floating {
width: 100%;
}
}
2025-03-25 06:17:41 +00:00
.selectedWidget {
padding: 6px 12px;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
}
}
.reviewChart {
width: 100%;
height: 150px;
background: #f0f0f0;
// border-radius: 8px;
display: flex;
align-items: center;
// justify-content: center;
2025-03-25 06:17:41 +00:00
}
.optionsContainer {
display: flex;
flex-direction: column;
gap: 10px;
padding: 0 12px;
.option {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
.regularDropdown-container,
input {
2025-03-25 06:17:41 +00:00
width: 160px;
}
&:last-child {
flex-direction: column;
.header {
width: 100%;
display: flex;
justify-content: space-between;
}
.colorDisplayer {
width: 100%;
display: flex;
justify-content: start;
align-items: center;
input[type="color"] {
border: none;
outline: none;
background: none;
width: 24px;
height: 26px;
border-radius: 3.2px;
}
}
}
span {
min-width: 100px;
}
}
}
}
}
2025-03-25 06:17:41 +00:00
.machine-mechanics-container {
.machine-mechanics-header {
padding: 8px 12px;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
color: var(--accent-color);
}
2025-03-25 06:17:41 +00:00
.process-list-container {
display: flex;
align-items: center;
gap: 4px;
padding: 8px;
border-bottom: 1px solid var(--border-color);
2025-03-25 06:17:41 +00:00
.label {
margin-right: 8px;
}
2025-03-25 06:17:41 +00:00
.add-new-process {
@include flex-center;
height: 24px;
min-width: 24px;
cursor: pointer;
background: var(--background-color-secondary);
border-radius: #{$border-radius-medium};
2025-03-25 06:17:41 +00:00
path {
stroke: var(--accent-color);
strokewidth: 1.5px;
2025-03-25 06:17:41 +00:00
}
2025-03-25 06:17:41 +00:00
&:hover {
background: var(--accent-color);
2025-03-25 06:17:41 +00:00
path {
stroke: var(--highlight-accent-color);
}
}
}
}
}
2025-03-25 06:17:41 +00:00
.machine-mechanics-content-container,
.simulations-container {
max-height: calc(60vh - (47px - 35px));
overflow: auto;
overflow-y: scroll;
2025-03-25 06:17:41 +00:00
.header {
@include flex-space-between;
padding: 6px 12px;
padding-right: 6px;
.add-button {
@include flex-center;
padding: 2px 4px;
background: var(--accent-color);
color: var(--primary-color);
border-radius: #{$border-radius-small};
cursor: pointer;
path {
stroke: var(--primary-color);
}
}
}
.lists-main-container {
margin: 2px 8px;
width: calc(100% - 12px);
margin-right: 4px;
background: var(--background-color-gray);
border-radius: #{$border-radius-small};
min-height: 120px;
.list-container {
padding: 4px;
height: calc(100% - 16px);
overflow-y: scroll;
.list-item {
@include flex-space-between;
padding: 2px 12px;
width: 100%;
margin: 2px 0;
border-radius: #{$border-radius-small};
}
2025-03-25 06:17:41 +00:00
.value {
display: flex;
justify-content: flex-start;
align-items: center;
min-width: 80%;
gap: 6px;
2025-03-25 06:17:41 +00:00
input {
width: fit-content;
accent-color: var(--accent-color);
}
}
2025-03-25 06:17:41 +00:00
.active {
background: var(--highlight-accent-color);
.value .input-value {
color: var(--accent-color);
}
path {
stroke: var(--accent-color);
}
}
.remove-button {
@include flex-center;
height: 18px;
width: 18px;
cursor: pointer;
border-radius: #{$border-radius-small};
transform: translateX(4px);
2025-03-25 06:17:41 +00:00
&:hover {
background-color: var(--accent-color);
2025-03-25 06:17:41 +00:00
path {
stroke: var(--primary-color);
}
}
}
}
.resize-icon {
@include flex-center;
padding: 4px;
cursor: grab;
&:active {
cursor: grabbing;
}
}
}
.selected-properties-container {
padding: 12px;
2025-03-25 06:17:41 +00:00
.properties-header {
color: var(--accent-color);
font-weight: var(--font-weight-regular);
padding: 8px 0;
}
2025-04-01 08:57:08 +00:00
.input-toggle-container {
padding: 0;
margin-bottom: 6px;
}
2025-03-25 06:17:41 +00:00
.value-field-container {
margin-bottom: 6px;
padding: 0;
@include flex-space-between;
2025-03-25 06:17:41 +00:00
.label {
width: 40%;
}
2025-03-25 06:17:41 +00:00
.regularDropdown-container {
width: 60%;
}
2025-03-25 06:17:41 +00:00
.default {
width: 60%;
}
}
}
.simulation-process {
.collapse-header-container {
@include flex-space-between;
padding-right: 12px;
margin-top: 8px;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
.header {
color: var(--accent-color);
}
2025-03-25 06:17:41 +00:00
}
2025-03-25 06:17:41 +00:00
.process-container {
padding: 0 12px;
margin: 6px 0;
2025-03-25 06:17:41 +00:00
.value {
@include flex-space-between;
2025-03-25 06:17:41 +00:00
.arrow-container {
height: 16px;
width: 16px;
2025-03-25 06:17:41 +00:00
}
2025-03-25 06:17:41 +00:00
.active {
rotate: 90deg;
2025-03-25 06:17:41 +00:00
}
}
2025-03-25 06:17:41 +00:00
.children-drop {
.value {
padding: 6px;
border-left: 1px solid var(--border-color);
2025-03-25 06:17:41 +00:00
}
}
}
}
.footer {
@include flex-center;
justify-content: flex-start;
gap: 4px;
padding: 12px;
font-size: var(--font-size-tiny);
}
.compare-simulations-container {
margin: 6px;
background: var(--background-color-gray);
padding: 12px;
border-radius: #{$border-radius-medium};
2025-03-25 06:17:41 +00:00
.compare-simulations-header {
font-weight: var(--font-weight-medium);
}
2025-03-25 06:17:41 +00:00
.content {
padding: 12px 0;
font-size: var(--font-size-small);
2025-03-25 06:17:41 +00:00
span {
font-size: inherit;
color: var(--accent-color);
}
}
2025-03-25 06:17:41 +00:00
.input {
display: flex;
flex-direction: row-reverse;
2025-03-25 06:17:41 +00:00
input {
width: fit-content;
background: var(--accent-color);
color: var(--highlight-accent-color);
padding: 2px 8px;
cursor: pointer;
}
}
}
}
2025-03-25 06:17:41 +00:00
.global-properties-container,
.analysis-main-container,
.asset-properties-container,
.zone-properties-container {
2025-03-25 06:17:41 +00:00
.header {
2025-03-26 06:52:04 +00:00
@include flex-space-between;
2025-03-25 06:17:41 +00:00
padding: 8px 12px;
border-top: 1px solid var(--highlight-accent-color);
border-bottom: 1px solid var(--highlight-accent-color);
color: var(--accent-color);
.input-value {
color: inherit;
}
2025-03-25 06:17:41 +00:00
}
2025-03-25 06:17:41 +00:00
.input-container {
@include flex-center;
2025-03-25 06:17:41 +00:00
.remove-button {
@include flex-center;
height: 18px;
width: 18px;
margin-bottom: 6px;
border-radius: 8px 0 0 8px;
2025-03-25 06:17:41 +00:00
&:hover {
background-color: var(--accent-color);
2025-03-25 06:17:41 +00:00
path {
stroke: var(--primary-color);
}
}
}
}
2025-03-25 06:17:41 +00:00
.optimize-button,
2025-03-26 06:52:04 +00:00
.generate-report-button,
.button-save {
2025-03-25 06:17:41 +00:00
@include flex-center;
background-color: var(--accent-color);
color: var(--primary-color);
border-radius: #{$border-radius-large};
padding: 2px;
gap: 4px;
margin: 4px 12px;
cursor: pointer;
font-size: var(--font-size-small);
margin-bottom: 8px;
}
2025-03-25 06:17:41 +00:00
.split {
height: 1px;
background: var(--highlight-accent-color);
margin: 8px;
}
2025-03-25 06:17:41 +00:00
.custom-input-container {
.header {
@include flex-space-between;
2025-03-25 06:17:41 +00:00
border: none;
.eyedrop-button {
@include flex-center;
}
2025-03-25 06:17:41 +00:00
}
2025-03-25 06:17:41 +00:00
.inputs-container {
@include flex-space-between;
padding-bottom: 8px;
2025-03-25 06:17:41 +00:00
.input-container {
padding: 0 12px;
margin-top: 6px;
gap: 6px;
}
}
2025-03-25 06:17:41 +00:00
.custom-input-label {
white-space: nowrap;
}
}
2025-03-25 06:17:41 +00:00
.analysis-content-container {
min-height: 50vh;
max-height: 60vh;
overflow-y: auto;
2025-03-25 06:17:41 +00:00
.dropdown-header-container,
.dropdown-content-container {
padding: 6px 12px;
border-top: 1px solid var(--highlight-accent-color);
}
2025-03-25 06:17:41 +00:00
.input-range-container {
.input-container {
width: 75%;
}
}
}
2025-03-25 06:17:41 +00:00
.buttons-container {
@include flex-space-between;
padding: 12px;
gap: 12px;
2025-03-25 06:17:41 +00:00
input {
border: none;
cursor: pointer;
transition: all 0.2s;
2025-03-25 06:17:41 +00:00
&:hover {
transform: translateY(-2px);
box-shadow: #{$box-shadow-medium};
outline: 1px solid var(--accent-color);
}
}
2025-03-25 06:17:41 +00:00
.cancel {
background: transparent;
color: var(--accent-color);
}
2025-03-25 06:17:41 +00:00
.submit {
background: var(--accent-color);
color: var(--highlight-accent-color);
}
}
2025-03-25 06:17:41 +00:00
.create-custom-analysis-container {
margin: 6px;
background: var(--background-color-gray);
padding: 12px;
border-radius: #{$border-radius-medium};
2025-03-25 06:17:41 +00:00
.custom-analysis-header {
font-weight: var(--font-weight-medium);
}
2025-03-25 06:17:41 +00:00
.content {
padding: 12px 0;
font-size: var(--font-size-small);
2025-03-25 06:17:41 +00:00
span {
font-size: inherit;
color: var(--accent-color);
}
}
2025-03-25 06:17:41 +00:00
.input {
display: flex;
flex-direction: row-reverse;
2025-03-25 06:17:41 +00:00
input {
width: fit-content;
background: var(--accent-color);
color: var(--highlight-accent-color);
padding: 2px 8px;
cursor: pointer;
}
}
}
}
}
.assets-container {
padding: 0 6px;
.assets-wrapper {
2025-04-01 03:28:56 +00:00
width: 100%;
position: relative;
margin: 8px 10px;
h2 {
color: var(--text-color);
font-family: $large;
font-weight: $bold-weight;
}
.categories-container {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
height: 100%;
gap: 3px;
padding: 10px 0;
.category {
width: 117px;
height: 95px;
border-radius: 3.59px;
background-color: var(--background-color-gray);
padding: 8px;
padding-top: 12px;
font-weight: $bold-weight;
position: relative;
overflow: hidden;
.category-name {
position: relative;
z-index: 3;
font-size: var(--font-size-large);
// -webkit-text-fill-color: transparent;
// -webkit-text-stroke: 1px black;
}
&::after {
content: "";
width: 50px;
height: 50px;
border-radius: 50%;
background-color: var(--circle-color, #000);
position: absolute;
top: 50%;
right: -10px;
transform: translate(0, -50%);
background: linear-gradient(144.19deg,
#f1e7cd 16.62%,
#fffaef 85.81%);
}
.category-image {
position: absolute;
// top: 50%;
bottom: 0;
right: -10px;
transform: translate(0, 0%) scale(0.8);
z-index: 2;
height: 80%;
}
}
}
.assets-container {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
height: 100%;
gap: 3px;
padding: 10px 0;
.assets {
width: 117px;
height: 95px;
border-radius: 3.59px;
background-color: var(--background-color-gray);
padding: 8px;
padding-top: 12px;
font-weight: $medium-weight;
position: relative;
overflow: hidden;
.asset-name {
position: relative;
z-index: 3;
font-size: var(--font-size-regular);
}
.asset-image {
2025-03-31 07:29:12 +00:00
height: 100%;
width: 100%;
position: absolute;
2025-03-31 07:29:12 +00:00
// top: 50%;
// right: 5px;
// transform: translate(0, -50%);
top: 0;
left: 0;
z-index: 2;
}
}
}
.back-button {
position: absolute;
top: 0;
right: 0;
@include flex-center;
cursor: pointer;
}
}
}
2025-04-01 03:28:56 +00:00
.assets-container {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
height: 100%;
gap: 3px;
padding: 10px 0;
.assets {
width: 117px;
height: 95px;
border-radius: 3.59px;
background-color: var(--background-color-gray);
padding: 8px;
padding-top: 12px;
font-weight: $medium-weight;
position: relative;
overflow: hidden;
.asset-name {
position: relative;
z-index: 3;
font-size: var(--font-size-regular);
}
.asset-image {
height: 100%;
width: 100%;
position: absolute;
// top: 50%;
// right: 5px;
// transform: translate(0, -50%);
top: 0;
left: 0;
z-index: 2;
}
}
}
2025-04-01 03:28:56 +00:00
.assets-result {
width: 100%;
height: 100%;
margin: 8px 10px;
2025-04-01 03:28:56 +00:00
.assets-wrapper {
margin: 0;
}
}