Tighten palette control

This commit is contained in:
Codex
2026-03-07 08:54:52 +00:00
parent f4770f62f4
commit c10f85c852
2 changed files with 25 additions and 23 deletions

View File

@@ -114,18 +114,18 @@ a:hover {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.35rem 0.7rem;
border-radius: 999px;
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid var(--border);
background: var(--input-bg);
color: var(--text);
font-weight: 600;
font-size: 0.85rem;
font-size: 1rem;
font-family: inherit;
line-height: 1;
cursor: pointer;
transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
min-width: 42px;
}
.theme-toggle:hover {
border-color: var(--accent);
@@ -137,34 +137,36 @@ a:hover {
.floating-palette-controls {
position: fixed;
bottom: clamp(1rem, 2vw, 1.5rem);
right: clamp(1rem, 2vw, 1.5rem);
bottom: clamp(0.75rem, 2vw, 1.25rem);
right: clamp(0.75rem, 2vw, 1.25rem);
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.35rem 0.65rem;
gap: 0.3rem;
padding: 0.2rem 0.45rem;
border-radius: 999px;
background: var(--bg-elevated);
border: 1px solid var(--border);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
z-index: 200;
}
.palette-dots {
display: flex;
gap: 0.35rem;
gap: 0.25rem;
}
.palette-dot {
width: 34px;
height: 34px;
width: 30px;
height: 30px;
border-radius: 50%;
border: 2px solid transparent;
border: 1px solid transparent;
padding: 0;
background-size: cover;
background-size: 160%;
background-position: center;
cursor: pointer;
transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
overflow: hidden;
}
.palette-dot:hover {
transform: translateY(-1px);
@@ -180,13 +182,13 @@ a:hover {
@media (max-width: 520px) {
.floating-palette-controls {
gap: 0.25rem;
padding: 0.25rem 0.55rem;
right: 0.75rem;
gap: 0.2rem;
padding: 0.18rem 0.35rem;
right: 0.65rem;
}
.palette-dot {
width: 30px;
height: 30px;
width: 26px;
height: 26px;
}
}