Skip to content

Commit

Permalink
Fix horizontal scrollbar appearing in docs (#21747)
Browse files Browse the repository at this point in the history
On small screens (< 576px), all documentation pages containing
`.bd-example` styled tags, show the horizontal scrollbar because of a
wrong horizontal margin property.

This PR sets the horizontal margin on gutter width basis instead of rem.
  • Loading branch information
tagliala authored and mdo committed Jan 16, 2017
1 parent 87751da commit 2a45ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/assets/scss/_component-examples.scss
Expand Up @@ -83,7 +83,7 @@
.bd-example {
position: relative;
padding: 1rem;
margin: 1rem -1rem;
margin: 1rem (-$grid-gutter-width-base / 2);
border: solid #f7f7f9;
border-width: .2rem 0 0;
@include clearfix();
Expand Down

0 comments on commit 2a45ca5

Please sign in to comment.