Skip to content

Commit

Permalink
Merge pull request #364 from thisisabhinay/issues/nes-bleeding-form-i…
Browse files Browse the repository at this point in the history
…nputs

String interpolation to calculate width of inputs. Fix #322
  • Loading branch information
BcRikko committed Oct 10, 2019
2 parents beedeca + 6ae1049 commit 77877e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ node_modules
css
storybook-static
.DS_Store

# Ignoring built up css and map files
scss/*.css
scss/*.css.map
2 changes: 1 addition & 1 deletion scss/form/inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@include compact-rounded-corners();

width: 100%;
width: calc(100% - #{2*$border-size});
padding: 0.5rem 1rem;
margin: 4px;
background-clip: padding-box;
Expand Down
2 changes: 1 addition & 1 deletion scss/form/selects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$colors: ($base-color, map-get($default-colors, "shadow"));

position: relative;
width: 100%;
width: calc(100% - #{2*$border-size});
margin: 4px;

select {
Expand Down

0 comments on commit 77877e2

Please sign in to comment.