Skip to content

Commit

Permalink
Raise font size in fieldsets.
Browse files Browse the repository at this point in the history
All fieldsets (and we use lots of them) have a font size of 90% (11.3px). With our base font size of 13px this leads to very small font sizes (10.53px) in all forms inputs (that have an additional 90% font-size) as most of them sit in a fieldset.

Also removes a lot of styles already defined by Bootstrap and styles that needed to be resetetted as the fieldset was defined as part of the default input field styles.
  • Loading branch information
tvdeyen committed Mar 19, 2017
1 parent 454ab43 commit 18769d4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions backend/app/assets/stylesheets/spree/backend/shared/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ input[type="time"],
input[type="url"],
input[type="number"],
input[type="tel"],
textarea, fieldset {
textarea {
padding: 7px 10px;
border: 1px solid $color-txt-brd;
border-radius: $border-radius;
Expand Down Expand Up @@ -204,20 +204,12 @@ span.info {
}

fieldset {
box-shadow: none;
box-sizing: border-box;
border-color: $color-border;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
margin-left: 0;
margin-right: 0;
border: 1px solid $color-border;
position: relative;
margin-bottom: 35px;
padding: 10px 0 15px 0;
background-color: transparent;
border-left: none;
border-right: none;
border-radius: 0;

&.no-border-bottom {
border-bottom: none;
Expand All @@ -230,7 +222,6 @@ fieldset {
}

legend {
background-color: $color-1;
color: $color-2;
font-size: 16px;
font-weight: $font-weight-bold;
Expand Down

0 comments on commit 18769d4

Please sign in to comment.