Skip to content

Commit

Permalink
Merge pull request #92 from werkbot/hotfix/2.1.16/numeric-field-updates
Browse files Browse the repository at this point in the history
Numeric Field Updates
  • Loading branch information
aletail authored Jun 3, 2024
2 parents 3a90d52 + d866d6d commit 64da591
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "werkbot-framewerk",
"version": "2.1.15",
"version": "2.1.16",
"description": "A framework of css and javascript that Werkbot uses as a foundation to build our websites.",
"main": "js/form.js",
"directories": {
Expand Down
22 changes: 15 additions & 7 deletions sass/components/form/components/_numeric.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ $component-form-numeric-properties: $default-component-form-numeric-properties !
.field.numeric{
position: relative;
margin: 0;
width: 100%;
display: inline-block;
.middleColumn{
position: relative;
}
label{
transform: none;
margin: 2px 0;
Expand All @@ -27,10 +32,8 @@ $component-form-numeric-properties: $default-component-form-numeric-properties !
}
input, input[type='number']{
width: 100%;
height: 44px;
padding: 9px;
padding-left: 45px;
padding-right: 31px;
height: 100%;
padding: 9px 50px;
box-sizing: border-box;
text-align: center;
border-radius: 5px;
Expand All @@ -39,15 +42,20 @@ $component-form-numeric-properties: $default-component-form-numeric-properties !
outline: none;
border-color: getThemeProperty(borderColor, $component-form-numeric-properties);
border: 1px solid getThemeProperty(borderColor, $component-form-numeric-properties);
-moz-appearance: textfield;
@include focus-style;
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
}
~ .subtract-qty, .subtract-qty, ~ .add-qty, .add-qty{
position: absolute;
z-index: 1; // Behaves strangely in FireFox without this
top: 20px;
height: 43px;
top: 0;
height: 100%;
width: 50px;
min-height: 100%;
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit 64da591

Please sign in to comment.