]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Properly unstyle the `.list-unstyled` class by switching from `margin` to `padding`
authorMark Otto <otto@github.com>
Mon, 17 Jun 2013 20:49:22 +0000 (13:49 -0700)
committerMark Otto <otto@github.com>
Mon, 17 Jun 2013 21:21:16 +0000 (14:21 -0700)
Also add better comments

docs/assets/css/bootstrap.css
less/type.less

index 67db9c1123e43056b090b84c8c8646f414761eae..04d5bc1fd9b14408345c75778643add3c1845140 100644 (file)
@@ -516,12 +516,12 @@ ol ul {
 }
 
 .list-unstyled {
-  margin-left: 0;
+  padding-left: 0;
   list-style: none;
 }
 
 .list-inline {
-  margin-left: 0;
+  padding-left: 0;
   list-style: none;
 }
 
index c18bfe86ec3ff7ffbba1d32a0f8fd1185b0695c5..a74bdaeffeb428d58d475f51fbfa2b5a03a34780 100644 (file)
@@ -118,9 +118,9 @@ ol ul {
 
 // List options
 
-// Unstyled keeps list items block level, just removes list-style
+// Unstyled keeps list items block level, just removes default browser padding and list-style
 .list-unstyled {
-  margin-left: 0;
+  padding-left: 0;
   list-style: none;
 }
 // Inline turns list items into inline-block