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>
|
||||
|
||||
<div class="color-section">
|
||||
<h4>Solid Colors</h4>
|
||||
<div class="color-grid">
|
||||
<button
|
||||
class="color-btn"
|
||||
@@ -229,7 +228,6 @@
|
||||
</div>
|
||||
|
||||
<div class="color-section">
|
||||
<h4>Gradients</h4>
|
||||
<div class="color-grid">
|
||||
{#each gradients as gradient}
|
||||
<button
|
||||
@@ -245,7 +243,6 @@
|
||||
</div>
|
||||
|
||||
<div class="color-section">
|
||||
<h4>Custom Gradient</h4>
|
||||
{#if !showCustomGradientPicker}
|
||||
<button class="btn-custom-gradient" onclick={() => showCustomGradientPicker = true}>
|
||||
Create Custom Gradient
|
||||
@@ -356,13 +353,6 @@
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.modal-section h4 {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 8px 0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.color-section {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,6 @@
|
||||
<h3>Background</h3>
|
||||
|
||||
<div class="color-section">
|
||||
<h4>Solid Colors</h4>
|
||||
<div class="color-grid">
|
||||
<button
|
||||
class="color-btn"
|
||||
@@ -209,7 +208,6 @@
|
||||
</div>
|
||||
|
||||
<div class="color-section">
|
||||
<h4>Gradients</h4>
|
||||
<div class="color-grid">
|
||||
{#each gradients as gradient}
|
||||
<button
|
||||
@@ -284,13 +282,6 @@
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.modal-section h4 {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 8px 0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.color-section {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
@@ -426,15 +417,16 @@
|
||||
|
||||
.modal-actions {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding-top: 24px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.modal-actions-right {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.btn {
|
||||
@@ -444,7 +436,7 @@
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 150ms ease;
|
||||
border: none;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
@@ -466,6 +458,7 @@
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
margin-right: auto;
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||
color: #ef4444;
|
||||
|
||||
Reference in new issue
Block a user