aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-03-27 15:42:11 -0700
committerMark Otto <[email protected]>2013-03-27 15:42:11 -0700
commitf0f33eb9a3a25ae2f0032f630ff84c58cb0ca431 (patch)
tree7b65cd5896a8cef3130dc34330c6bd223fa00781 /less
parent5b298a2aaf5286564b1dc614bb439eb19edf2c25 (diff)
downloadbootstrap-f0f33eb9a3a25ae2f0032f630ff84c58cb0ca431.tar.xz
bootstrap-f0f33eb9a3a25ae2f0032f630ff84c58cb0ca431.zip
Refactor .list-inline and .list-unstyled
* Instead of shared and separate CSS, isolate by class for easier mixin-ability * .list-unstyled is now used as a mixin in .list-inline
Diffstat (limited to 'less')
-rw-r--r--less/type.less18
1 files changed, 10 insertions, 8 deletions
diff --git a/less/type.less b/less/type.less
index 193078c72..60ad793e9 100644
--- a/less/type.less
+++ b/less/type.less
@@ -126,18 +126,20 @@ li {
}
// List options
+
// Unstyled keeps list items block level, just removes list-style
-.list-unstyled,
-// Inline turns list items into inline-block
-.list-inline {
+.list-unstyled {
margin-left: 0;
list-style: none;
}
-// Single-line list items
-.list-inline > li {
- display: inline-block;
- padding-left: 5px;
- padding-right: 5px;
+// Inline turns list items into inline-block
+.list-inline {
+ .list-unstyled();
+ > li {
+ display: inline-block;
+ padding-left: 5px;
+ padding-right: 5px;
+ }
}
// Description Lists