refactor(modals): remove color subtitles and fix button alignment
- Remove "Solid Colors", "Gradients", "Custom Gradient" subtitles - Remove h4 styles no longer used - Fix footer buttons: Delete left, Cancel/Save right-aligned - Fix button size consistency with transparent border
This commit is contained in:
1 parent
d98f4aa9ee
commit
0655888f46
2 files changed
+5
-22
No files matched your search
@@ -205,7 +205,6 @@
|
|||||||
<h3>Background</h3>
|
<h3>Background</h3>
|
||||||
|
|
||||||
<div class="color-section">
|
<div class="color-section">
|
||||||
<h4>Solid Colors</h4>
|
|
||||||
<div class="color-grid">
|
<div class="color-grid">
|
||||||
<button
|
<button
|
||||||
class="color-btn"
|
class="color-btn"
|
||||||
@@ -229,7 +228,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="color-section">
|
<div class="color-section">
|
||||||
<h4>Gradients</h4>
|
|
||||||
<div class="color-grid">
|
<div class="color-grid">
|
||||||
{#each gradients as gradient}
|
{#each gradients as gradient}
|
||||||
<button
|
<button
|
||||||
@@ -245,7 +243,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="color-section">
|
<div class="color-section">
|
||||||
<h4>Custom Gradient</h4>
|
|
||||||
{#if !showCustomGradientPicker}
|
{#if !showCustomGradientPicker}
|
||||||
<button class="btn-custom-gradient" onclick={() => showCustomGradientPicker = true}>
|
<button class="btn-custom-gradient" onclick={() => showCustomGradientPicker = true}>
|
||||||
Create Custom Gradient
|
Create Custom Gradient
|
||||||
@@ -356,13 +353,6 @@
|
|||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-section h4 {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin: 0 0 8px 0;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-section {
|
.color-section {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -185,7 +185,6 @@
|
|||||||
<h3>Background</h3>
|
<h3>Background</h3>
|
||||||
|
|
||||||
<div class="color-section">
|
<div class="color-section">
|
||||||
<h4>Solid Colors</h4>
|
|
||||||
<div class="color-grid">
|
<div class="color-grid">
|
||||||
<button
|
<button
|
||||||
class="color-btn"
|
class="color-btn"
|
||||||
@@ -209,7 +208,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="color-section">
|
<div class="color-section">
|
||||||
<h4>Gradients</h4>
|
|
||||||
<div class="color-grid">
|
<div class="color-grid">
|
||||||
{#each gradients as gradient}
|
{#each gradients as gradient}
|
||||||
<button
|
<button
|
||||||
@@ -284,13 +282,6 @@
|
|||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-section h4 {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin: 0 0 8px 0;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-section {
|
.color-section {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
@@ -426,15 +417,16 @@
|
|||||||
|
|
||||||
.modal-actions {
|
.modal-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-actions-right {
|
.modal-actions-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
margin-left: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
@@ -444,7 +436,7 @@
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 150ms ease;
|
transition: all 150ms ease;
|
||||||
border: none;
|
border: 1px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-secondary {
|
.btn-secondary {
|
||||||
@@ -466,6 +458,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-danger {
|
.btn-danger {
|
||||||
|
margin-right: auto;
|
||||||
background: rgba(239, 68, 68, 0.1);
|
background: rgba(239, 68, 68, 0.1);
|
||||||
border: 1px solid rgba(239, 68, 68, 0.3);
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||||
color: #ef4444;
|
color: #ef4444;
|
||||||
|
|||||||
Reference in new issue
Block a user