Center the +/- glyphs in the quantity stepper buttons
.stepperButton relied on the browser's default button content centering, which the appearance: none reset in the previous commit took away. Explicitly flex-center it (and zero out padding/line-height) across all three copies (MenuItemCustomizer, MenuList, basket). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RvYdJ3os7tumimsLdLu2j9
This commit is contained in:
@@ -57,12 +57,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stepperButton {
|
.stepperButton {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
|
padding: 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid $color-border;
|
border: 1px solid $color-border;
|
||||||
background: $color-background;
|
background: $color-background;
|
||||||
color: $color-text;
|
color: $color-text;
|
||||||
|
line-height: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: border-color 0.15s ease;
|
transition: border-color 0.15s ease;
|
||||||
|
|
||||||
|
|||||||
@@ -75,12 +75,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stepperButton {
|
.stepperButton {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
|
padding: 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid $color-border;
|
border: 1px solid $color-border;
|
||||||
background: $color-background;
|
background: $color-background;
|
||||||
color: $color-text;
|
color: $color-text;
|
||||||
|
line-height: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
|
|||||||
@@ -133,12 +133,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stepperButton {
|
.stepperButton {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
|
padding: 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid $color-border;
|
border: 1px solid $color-border;
|
||||||
background: $color-background;
|
background: $color-background;
|
||||||
color: $color-text;
|
color: $color-text;
|
||||||
|
line-height: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user