style(settings): update dark mode styles and improve component usability
- Replace direct attribute selectors with :host-context for better encapsulation - Add pointer cursor to tab buttons - Update background colors for settings cards and content in dark mode
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
.tab-btn {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tab-btn.tab-active {
|
||||
@@ -359,31 +360,36 @@
|
||||
}
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .dropzone-icon-wrapper svg,
|
||||
[data-bs-theme="dark"] .file-icon-wrapper svg,
|
||||
[data-bs-theme="dark"] .section-header svg {
|
||||
:host-context([data-bs-theme="dark"]) .dropzone-icon-wrapper svg,
|
||||
:host-context([data-bs-theme="dark"]) .file-icon-wrapper svg,
|
||||
:host-context([data-bs-theme="dark"]) .section-header svg {
|
||||
stroke: var(--color-primary);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .form-select {
|
||||
:host-context([data-bs-theme="dark"]) .form-select {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .file-remove-btn:hover {
|
||||
:host-context([data-bs-theme="dark"]) .file-remove-btn:hover {
|
||||
background-color: rgba(239, 68, 68, 0.15);
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .toggle-switch input:checked + .toggle-slider {
|
||||
:host-context([data-bs-theme="dark"]) .toggle-switch input:checked + .toggle-slider {
|
||||
box-shadow: 0 1px 3px var(--color-primary)/40, 0 0 0 2px var(--color-primary)/30;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .settings-card,
|
||||
[data-bs-theme="dark"] .file-item,
|
||||
[data-bs-theme="dark"] .setting-item {
|
||||
:host-context([data-bs-theme="dark"]) .settings-card,
|
||||
:host-context([data-bs-theme="dark"]) .file-item,
|
||||
:host-context([data-bs-theme="dark"]) .setting-item {
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
|
||||
background-color: #111111;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .file-item:hover,
|
||||
[data-bs-theme="dark"] .setting-item:hover {
|
||||
:host-context([data-bs-theme="dark"]) .settings-content {
|
||||
background-color: #171717;
|
||||
}
|
||||
|
||||
:host-context([data-bs-theme="dark"]) .file-item:hover,
|
||||
:host-context([data-bs-theme="dark"]) .setting-item:hover {
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
Reference in New Issue
Block a user