]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Extract responsive embed nested classes 15726/head
authorHaralan Dobrev <hkdobrev@gmail.com>
Mon, 2 Feb 2015 17:26:30 +0000 (19:26 +0200)
committerHaralan Dobrev <hkdobrev@gmail.com>
Mon, 2 Feb 2015 17:26:30 +0000 (19:26 +0200)
I think this is the more common coding convention across Bootstrap.

Extract nested classes as first-class citizens and assume HTML would use both.

less/responsive-embed.less

index c1fa8f8488b269e432e23442ea73aae348bddc02..080a5118fe9ab2af331e6b1444fff4be840ecc03 100644 (file)
     width: 100%;
     border: 0;
   }
+}
 
-  // Modifier class for 16:9 aspect ratio
-  &.embed-responsive-16by9 {
-    padding-bottom: 56.25%;
-  }
+// Modifier class for 16:9 aspect ratio
+.embed-responsive-16by9 {
+  padding-bottom: 56.25%;
+}
 
-  // Modifier class for 4:3 aspect ratio
-  &.embed-responsive-4by3 {
-    padding-bottom: 75%;
-  }
+// Modifier class for 4:3 aspect ratio
+.embed-responsive-4by3 {
+  padding-bottom: 75%;
 }