Skip to content

Commit

Permalink
Merge pull request #1126 from pat270/clay-1125
Browse files Browse the repository at this point in the history
ClayCSS: (Fixes #1125) Atlas Forms changing individual border-widths …
  • Loading branch information
marcoscv-work authored Sep 3, 2018
2 parents 137c094 + 8096079 commit 895c089
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/clay-css/src/scss/atlas/variables/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ $input-border-bottom-width: 0.0625rem !default; // 1px
$input-border-left-width: 0.0625rem !default; // 1px
$input-border-right-width: 0.0625rem !default; // 1px
$input-border-top-width: 0.0625rem !default; // 1px
$input-border-width: $input-border-top-width $input-border-right-width $input-border-bottom-width $input-border-left-width !default;

$input-border-style: solid !default;

$input-padding-x: 1rem !default; // 16px
$input-padding-y: 0.5rem !default; // 8px
Expand Down
2 changes: 2 additions & 0 deletions packages/clay-css/src/scss/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ label {

.form-control {
background-clip: border-box;
border-color: $input-border-color;
border-style: $input-border-style;
border-width: $input-border-width;

@if not ($input-font-size == $font-size-base) {
Expand Down
2 changes: 2 additions & 0 deletions packages/clay-css/src/scss/variables/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ $input-border-bottom-width: 0.0625rem !default;
$input-border-left-width: 0.0625rem !default;
$input-border-width: $input-border-top-width $input-border-right-width $input-border-bottom-width $input-border-left-width !default;

$input-border-style: null !default;

$input-font-size: $font-size-base !default;
$input-font-size-mobile: null !default;
$input-height-mobile: null !default;
Expand Down

0 comments on commit 895c089

Please sign in to comment.