Fix inconsistent class-picker box sizes and modernize signup modal
The class-picker-option buttons were shrinking to their text width (width: fit-content from the global button rule) instead of filling their equal-width grid cell, so each class box ended up a different size. Pins them to 100% width and adds hover/selected transitions, subtle elevation and a focus-visible outline to both the class and group pickers for a more polished, consistent look. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
89a0fd75db
commit
3f98fe342d
1 changed files with 46 additions and 14 deletions
|
|
@ -704,39 +704,72 @@ input:focus, select:focus, textarea:focus {
|
|||
}
|
||||
|
||||
.group-picker-option {
|
||||
padding: 0.5rem 1rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.5rem 1.1rem;
|
||||
background: var(--bg-panel-alt);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.group-picker-option:hover { border-color: var(--gold); }
|
||||
.group-picker-option:hover {
|
||||
border-color: var(--gold);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.group-picker-option.selected {
|
||||
border-color: var(--gold);
|
||||
background: rgba(201, 162, 39, 0.15);
|
||||
background: rgba(201, 162, 39, 0.18);
|
||||
color: var(--gold);
|
||||
font-weight: 600;
|
||||
box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.4);
|
||||
}
|
||||
|
||||
/* Grid-Zellen sind gleich breit (1fr), aber Buttons schrumpfen sich sonst
|
||||
ueber die globale "button"-Regel auf ihre Textbreite (width: fit-content)
|
||||
und wirken dadurch unterschiedlich gross - deshalb hier explizit 100%. */
|
||||
.class-picker-option {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 0.5rem;
|
||||
padding: 0.85rem 0.5rem;
|
||||
min-height: 96px;
|
||||
background: var(--bg-panel-alt);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
border-radius: 10px;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
font-size: 0.8rem;
|
||||
text-align: center;
|
||||
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.class-picker-option:hover {
|
||||
border-color: var(--gold);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.class-picker-option.selected {
|
||||
border-color: var(--gold);
|
||||
background: rgba(201, 162, 39, 0.15);
|
||||
color: var(--gold);
|
||||
box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.group-picker-option:focus-visible,
|
||||
.class-picker-option:focus-visible {
|
||||
outline: 2px solid var(--gold);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Einheitlicher Rahmen um jedes Klassen-Icon, damit alle Kaestchen trotz
|
||||
|
|
@ -749,7 +782,14 @@ input:focus, select:focus, textarea:focus {
|
|||
height: 44px;
|
||||
flex-shrink: 0;
|
||||
background: var(--bg-panel);
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
|
||||
.class-picker-option:hover .class-icon-frame,
|
||||
.class-picker-option.selected .class-icon-frame {
|
||||
border-color: var(--gold);
|
||||
}
|
||||
|
||||
.class-icon-frame img {
|
||||
|
|
@ -766,14 +806,6 @@ input:focus, select:focus, textarea:focus {
|
|||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.class-picker-option:hover { border-color: var(--gold); }
|
||||
|
||||
.class-picker-option.selected {
|
||||
border-color: var(--gold);
|
||||
background: rgba(201, 162, 39, 0.15);
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.raid-modal-feedback {
|
||||
min-height: 1.2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
|
|
|
|||
Loading…
Reference in a new issue