Browse Source

Expanded some list vars, content can now be top aligned #1273

1.0
jlukic 10 years ago
parent
commit
0c4ae6c045
2 changed files with 10 additions and 3 deletions
  1. 8
      src/definitions/elements/list.less
  2. 5
      src/themes/default/elements/list.variables

8
src/definitions/elements/list.less

@ -167,6 +167,10 @@ ol.ui.list ol,
.ui.list > .item > img.image + .content { .ui.list > .item > img.image + .content {
display: inline-block; 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 .list > .item > .content > .list,
.ui.list > .item > .content > .list { .ui.list > .item > .content > .list {
margin-left: 0em; margin-left: 0em;
@ -219,12 +223,12 @@ ol.ui.list ol,
.ui.list .list > .item [class*="left floated"], .ui.list .list > .item [class*="left floated"],
.ui.list > .item [class*="left floated"] { .ui.list > .item [class*="left floated"] {
float: left; float: left;
margin-right: @floatMargin;
margin: @leftFloatMargin;
} }
.ui.list .list > .item [class*="right floated"], .ui.list .list > .item [class*="right floated"],
.ui.list > .item [class*="right floated"] { .ui.list > .item [class*="right floated"] {
float: right; float: right;
margin-left: @floatMargin;
margin: @rightFloatMargin;
} }
/******************************* /*******************************

5
src/themes/default/elements/list.variables

@ -40,6 +40,7 @@
/* Content */ /* Content */
@contentDistance: 0.5em; @contentDistance: 0.5em;
@contentLineHeight: 1.2em; @contentLineHeight: 1.2em;
@contentLineHeightOffset: (@contentLineHeight - 1em) / 2;
@contentVerticalAlign: middle; @contentVerticalAlign: middle;
/* Link */ /* Link */
@ -71,7 +72,9 @@
--------------------*/ --------------------*/
/* Float */ /* Float */
@floatMargin: 1em;
@floatDistance: 1em;
@leftFloatMargin: 0em @floatDistance 0em 0em;
@rightFloatMargin: 0em 0em 0em @floatDistance;
/* Horizontal */ /* Horizontal */
@horizontalSpacing: 1em; @horizontalSpacing: 1em;

Loading…
Cancel
Save