From 0c4ae6c04567f7ad0e4446f009573f9b460a6a5c Mon Sep 17 00:00:00 2001 From: jlukic Date: Sun, 23 Nov 2014 14:18:20 -0500 Subject: [PATCH] Expanded some list vars, content can now be top aligned #1273 --- src/definitions/elements/list.less | 8 ++++++-- src/themes/default/elements/list.variables | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/definitions/elements/list.less b/src/definitions/elements/list.less index 4ca1790cb..18d10d906 100755 --- a/src/definitions/elements/list.less +++ b/src/definitions/elements/list.less @@ -167,6 +167,10 @@ ol.ui.list ol, .ui.list > .item > img.image + .content { display: inline-block; } +.ui.list .list > .item [class*="top aligned"].content, +.ui.list > .item > [class*="top aligned"].content { + vertical-align: top; +} .ui.list .list > .item > .content > .list, .ui.list > .item > .content > .list { margin-left: 0em; @@ -219,12 +223,12 @@ ol.ui.list ol, .ui.list .list > .item [class*="left floated"], .ui.list > .item [class*="left floated"] { float: left; - margin-right: @floatMargin; + margin: @leftFloatMargin; } .ui.list .list > .item [class*="right floated"], .ui.list > .item [class*="right floated"] { float: right; - margin-left: @floatMargin; + margin: @rightFloatMargin; } /******************************* diff --git a/src/themes/default/elements/list.variables b/src/themes/default/elements/list.variables index 75c70cd67..9d8721e46 100644 --- a/src/themes/default/elements/list.variables +++ b/src/themes/default/elements/list.variables @@ -40,6 +40,7 @@ /* Content */ @contentDistance: 0.5em; @contentLineHeight: 1.2em; +@contentLineHeightOffset: (@contentLineHeight - 1em) / 2; @contentVerticalAlign: middle; /* Link */ @@ -71,7 +72,9 @@ --------------------*/ /* Float */ -@floatMargin: 1em; +@floatDistance: 1em; +@leftFloatMargin: 0em @floatDistance 0em 0em; +@rightFloatMargin: 0em 0em 0em @floatDistance; /* Horizontal */ @horizontalSpacing: 1em;