From: Mark Otto Date: Mon, 17 Jun 2013 20:49:22 +0000 (-0700) Subject: Properly unstyle the `.list-unstyled` class by switching from `margin` to `padding` X-Git-Tag: v3.0.0-rc1~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4436e727ed52e45db2f5db9bf4efcea4ba8c64c3;p=thirdparty%2Fbootstrap.git Properly unstyle the `.list-unstyled` class by switching from `margin` to `padding` Also add better comments --- diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 67db9c1123..04d5bc1fd9 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -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; } diff --git a/less/type.less b/less/type.less index c18bfe86ec..a74bdaeffe 100644 --- a/less/type.less +++ b/less/type.less @@ -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