"Media object" applies margin to any `pull-left|right` children #6337

Closed
necolas opened this Issue Dec 20, 2012 · 1 comment

Projects

None yet

2 participants

@necolas
Contributor
necolas commented Dec 20, 2012

This code:

.media .pull-left {
  margin-right: 10px;
}
.media .pull-right {
  margin-left: 10px;
}

…will apply those margins to any element using the pull-left or pull-right class within media. This code is not specific enough to limit the styles to media image positioning alone. It causes problems when you have more complicated components within the body of a "media object".

Owner
mdo commented Dec 20, 2012

Scoped to immediate children for now in 2.2.3 branch. Thanks!

@mdo mdo closed this Dec 20, 2012
@mdo mdo added a commit that referenced this issue Dec 20, 2012
@mdo mdo Fixes #6337: scope '.media .pull-left' and '.media .pull-right' to im…
…mediate children only
dc61427
@stempler stempler pushed a commit to stempler/bootstrap that referenced this issue Apr 11, 2014
@mdo mdo (less) Fixes #6337: scope '.media .pull-left' and '.media .pull-right…
…' to immediate children only
dd2c558
@stempler stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
@mdo mdo (less) Fixes #6337: scope '.media .pull-left' and '.media .pull-right…
…' to immediate children only
d18a6b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment