aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-22 20:51:34 -0800
committerMark Otto <[email protected]>2016-12-22 21:29:48 -0800
commitb5c50d4afffdefa2d1b6d8f0934f823add18385b (patch)
treec5c4f5ff502bd83cbd197894e31eee00f33f48a2
parent615072e4c9b918d4d1e520dc9cfe4ce1a97d21a8 (diff)
downloadbootstrap-b5c50d4afffdefa2d1b6d8f0934f823add18385b.tar.xz
bootstrap-b5c50d4afffdefa2d1b6d8f0934f823add18385b.zip
reduce .media styles to their bare minimum
Sets minimum required flex styles (including an explicit starting alignment) and removes everything else. - no need for .media-left and .media-right, we have padding utils - no need for a .media-heading, we have margin - no need for .media-object, we have display utils - no need for .media-list, we have .list-unstyled util
-rw-r--r--scss/_media.scss55
1 files changed, 2 insertions, 53 deletions
diff --git a/scss/_media.scss b/scss/_media.scss
index 5e1408162..b573052c1 100644
--- a/scss/_media.scss
+++ b/scss/_media.scss
@@ -1,59 +1,8 @@
.media {
display: flex;
+ align-items: flex-start;
}
+
.media-body {
flex: 1;
}
-.media-middle {
- align-self: center;
-}
-.media-bottom {
- align-self: flex-end;
-}
-
-
-//
-// Images/elements as the media anchor
-//
-
-.media-object {
- display: block;
-
- // Fix collapse in webkit from max-width: 100% and display: table-cell.
- &.img-thumbnail {
- max-width: none;
- }
-}
-
-
-//
-// Alignment
-//
-
-.media-right {
- padding-left: $media-alignment-padding-x;
-}
-
-.media-left {
- padding-right: $media-alignment-padding-x;
-}
-
-
-//
-// Headings
-//
-
-.media-heading {
- margin-top: 0;
- margin-bottom: $media-heading-margin-bottom;
-}
-
-
-//
-// Media list variation
-//
-
-.media-list {
- padding-left: 0;
- list-style: none;
-}