From 4436e727ed52e45db2f5db9bf4efcea4ba8c64c3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 17 Jun 2013 13:49:22 -0700 Subject: [PATCH] Properly unstyle the `.list-unstyled` class by switching from `margin` to `padding` Also add better comments --- docs/assets/css/bootstrap.css | 4 ++-- 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 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