]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
reduce .media styles to their bare minimum
authorMark Otto <markdotto@gmail.com>
Fri, 23 Dec 2016 04:51:34 +0000 (20:51 -0800)
committerMark Otto <markd.otto@gmail.com>
Fri, 23 Dec 2016 05:29:48 +0000 (21:29 -0800)
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

scss/_media.scss

index 5e14081622d9ba9f19d1b94583ce5138cdaf9742..b573052c14affa5bdca02ac9e3e7a4168768925b 100644 (file)
@@ -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;
-}