diff options
| author | Mark Otto <[email protected]> | 2013-06-17 13:49:22 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-06-17 14:21:16 -0700 |
| commit | 4436e727ed52e45db2f5db9bf4efcea4ba8c64c3 (patch) | |
| tree | 2fc69c30619e7525e940ee77f20695036595cd5c | |
| parent | 84c0dc13babffe781fff96611b526f5fb58ff9dd (diff) | |
| download | bootstrap-4436e727ed52e45db2f5db9bf4efcea4ba8c64c3.tar.xz bootstrap-4436e727ed52e45db2f5db9bf4efcea4ba8c64c3.zip | |
Properly unstyle the `.list-unstyled` class by switching from `margin` to `padding`
Also add better comments
| -rw-r--r-- | docs/assets/css/bootstrap.css | 4 | ||||
| -rw-r--r-- | less/type.less | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 67db9c112..04d5bc1fd 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 c18bfe86e..a74bdaeff 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 |
