Second commit
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
.tt5-ldt-toggle {
|
||||
position: fixed;
|
||||
z-index: 99999;
|
||||
right: 1.25rem;
|
||||
bottom: 1.25rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.65rem 1rem;
|
||||
border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
|
||||
border-radius: 999px;
|
||||
background: var(--wp--preset--color--base, #fff);
|
||||
color: var(--wp--preset--color--contrast, #111);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||
font: 600 0.875rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.tt5-ldt-toggle:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.tt5-ldt-toggle:focus-visible {
|
||||
outline: 2px solid var(--wp--preset--color--accent-3, #503aa8);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.tt5-ldt-toggle__icon {
|
||||
font-size: 1.1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
html:not(.tt5-ldt-dark) .tt5-ldt-toggle__icon--moon,
|
||||
html.tt5-ldt-dark .tt5-ldt-toggle__icon--sun {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html.tt5-ldt-dark .tt5-ldt-toggle {
|
||||
background: #1a1a1a;
|
||||
color: #f5f5f5;
|
||||
border-color: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.tt5-ldt-toggle__label {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.tt5-ldt-toggle {
|
||||
padding: 0.75rem;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user