mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fix up margins and unnest code
This commit is contained in:
parent
e8643ed8b3
commit
42c2918372
1 changed files with 25 additions and 27 deletions
|
@ -2,22 +2,21 @@
|
||||||
// Proper spacing between instances of .media
|
// Proper spacing between instances of .media
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
|
|
||||||
// Proper spacing of .media-right
|
&:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.media-right,
|
.media-right,
|
||||||
.pull-right {
|
.media > .pull-right {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Proper spacing of .media-left
|
|
||||||
.media-left,
|
.media-left,
|
||||||
.pull-left {
|
.media > .pull-left {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-left,
|
.media-left,
|
||||||
.media-right,
|
.media-right,
|
||||||
.media-body {
|
.media-body {
|
||||||
|
@ -32,16 +31,15 @@
|
||||||
.media-bottom {
|
.media-bottom {
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Reset margins on headings for tighter default spacing
|
// Reset margins on headings for tighter default spacing
|
||||||
.media-heading {
|
.media-heading {
|
||||||
margin: 0 0 5px 0;
|
margin-top: 0;
|
||||||
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Media list variation
|
// Media list variation
|
||||||
// -------------------------
|
//
|
||||||
|
|
||||||
// Undo default ul/ol styles
|
// Undo default ul/ol styles
|
||||||
.media-list {
|
.media-list {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue