This commit is contained in:
Nalvazhuthi
2025-10-17 15:31:46 +05:30
parent ba615cefed
commit b03e7be1c7
13 changed files with 997 additions and 716 deletions

View File

@@ -11,9 +11,12 @@
top: 0;
left: 0;
pointer-events: none;
.control-panel {
margin-bottom: 20px;
display: flex;
justify-content: end;
gap: 10px;
flex-wrap: wrap;
@@ -21,13 +24,14 @@
padding: 8px 16px;
color: white;
border: none;
border-radius: 4px;
border-radius: 20px;
cursor: pointer;
backdrop-filter: blur(10px);
transition: background-color 0.2s ease;
pointer-events: auto;
&:not(.edit-mode-active) {
background-color: #4caf50;
background-color: var(--background-color-button);
}
&.edit-mode-active {
@@ -39,7 +43,7 @@
}
&.secondary {
background-color: rgba(156, 39, 176, 0.8);
background-color: var(--background-color-button);
}
&:hover {
@@ -50,9 +54,10 @@
.block-grid {
display: flex;
flex: 1;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
// margin-top: 20px;
max-height: calc(100vh - 100px);
overflow: auto;
padding: 10px;
@@ -74,8 +79,7 @@
min-width: 300px;
&.selected {
border: 2px solid #4caf50;
box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
outline: 2px solid var(--border-color-accent);
}
&.edit-mode {
@@ -107,13 +111,27 @@
}
}
.add-element-button {
.element-button-container {
position: relative;
}
.element-container {
display: flex;
justify-content: end;
position: absolute;
top: 10px;
right: 10px;
background: rgba(33, 150, 243, 0.9);
}
.add-element-button {
// position: absolute;
// top: 10px;
// right: 10px;
background: var(--background-color-button);
border: none;
border-radius: 4px;
border-radius: 20px;
color: white;
font-size: 12px;
padding: 6px 12px;
@@ -122,15 +140,15 @@
backdrop-filter: blur(5px);
transition: background-color 0.2s ease;
&:hover {
background: rgba(33, 150, 243, 1);
}
// &:hover {
// background: rgba(33, 150, 243, 1);
// }
}
.resize-handle {
width: 16px;
height: 16px;
background-color: rgba(76, 175, 80, 0.8);
// width: 16px;
// height: 16px;
// background-color: rgba(76, 175, 80, 0.8);
border-radius: 3px;
position: absolute;
bottom: 2px;
@@ -139,6 +157,10 @@
opacity: 0;
transition: opacity 0.2s ease;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
}
&.selected .resize-handle {
@@ -151,7 +173,7 @@
margin: 5px;
border-radius: 4px;
padding: 8px;
transition: all 0.2s ease;
// transition: all 0.2s ease;
user-select: none;
border: 1px solid transparent;
@@ -211,8 +233,8 @@
}
.resize-handle {
width: 12px;
height: 12px;
width: 20px;
height: 20px;
position: absolute;
bottom: 2px;
right: 2px;
@@ -228,22 +250,53 @@
}
}
.panel {
position: fixed;
background-color: rgba(50, 50, 50, 0.95);
backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 20px;
z-index: 1000;
border-radius: 12px;
color: #ffffff;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
.block-grid-container {
width: 100%;
display: flex;
justify-content: space-between;
h4 {
margin: 0 0 20px 0;
font-size: 16px;
pointer-events: auto;
}
.panel {
// position: fixed;
padding: 20px;
color: #ffffff;
background: var(--background-color);
backdrop-filter: blur(20px);
border-radius: 20px;
outline: 1px solid var(--border-color);
box-shadow: 0px 4px 8px rgba(60, 60, 67, 0.1019607843);
z-index: 3;
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 0 10px 0;
border-bottom: 1px solid gray;
padding-bottom: 10px;
h4 {
font-size: var(--font-size-regular);
font-weight: 600;
}
.icon {
cursor: pointer;
svg {
path {
stroke: #ff4444;
}
}
}
}
&.data-model-panel {
left: 20px;
top: 50px;
@@ -252,19 +305,20 @@
max-height: 80vh;
overflow-y: auto;
h4 {
color: #9c27b0;
.control-button {
&.primary {
background-color: var(--background-color-button);
}
}
}
&.block-editor-panel {
right: 20px;
top: 50px;
min-width: 280px;
height: fit-content;
h4 {
color: #4caf50;
}
// h4 {
// color: #4caf50;
// }
}
&.element-editor-panel {
@@ -274,19 +328,45 @@
max-height: 84vh;
overflow: auto;
h4 {
color: #ff9800;
}
}
}
.form-group {
display: flex;
justify-content: space-between;
align-items: center;
gap: 6px;
margin-bottom: 15px;
.input-range-container {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 6px;
}
.form-label {
display: block;
margin-bottom: 8px;
// margin-bottom: 8px;
font-size: 14px;
text-wrap: nowrap;
}
.input-range-container {
padding: 0;
}
.form-select,
.color-input,
.range-input,
.form-input,
.input-container,
.regularDropdown-container {
max-width: 140px;
}
.form-input,
@@ -373,6 +453,7 @@
display: flex;
flex-direction: column;
overflow: hidden;
padding: 6px;
.chart-title {
font-size: 14px;
@@ -430,7 +511,8 @@
}
.element-dropdown {
position: fixed;
position: absolute;
transform: translateY(35px);
background-color: rgba(50, 50, 50, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
@@ -456,4 +538,4 @@
background-color: rgba(85, 85, 85, 1);
}
}
}
}