Skip to content
Permalink
Browse files

CSS: Updated styling of fieldset and legend elements.

  • Loading branch information...
thomasgohard committed May 14, 2015
1 parent 397fe76 commit 42a76b1bffa30b3103542892b23f4cbf6ca5d14a
Showing with 13 additions and 2 deletions.
  1. +13 −2 src/base/bootstrap-overrides/_base.scss
@@ -551,15 +551,26 @@ blockquote {
}

/*
* Fieldset legend border position
* Fieldset/legend border position
*
* Bootstrap puts the border below the legend which creates a visual
* separation between the legend and the fields to which it relates. Putting
* the border above eliminates that visual separation.
* the border above eliminates that visual separation. Putting it on the
* fieldset element instead ensures that all fieldsets will have a separation
* even when no legend is used.
*/
legend {
border-bottom: 0;
float: left;
}

fieldset {
border-top: 1px solid $legend-border-color;
padding-top: 10px;

&:first-child {
border-top: 0;
}
}

/*

0 comments on commit 42a76b1

Please sign in to comment.
You can’t perform that action at this time.