Browse Source

Add auto spacing of extra content on items

pull/1129/head
jlukic 10 years ago
parent
commit
f9b632bcad
2 changed files with 14 additions and 2 deletions
  1. 12
      src/definitions/views/item.less
  2. 4
      src/themes/packages/default/views/item.variables

12
src/definitions/views/item.less

@ -152,9 +152,13 @@
margin: @headerMargin;
font-family: @headerFont;
font-weight: @headerFontWeight;
font-size: @headerFontSize;
color: @headerColor;
}
/* Default Header Size */
.ui.items > .item > .content > .header:not(.ui) {
font-size: @headerFontSize;
}
.ui.items > .item > .content > .meta + .description{
margin-top: @descriptionDistance;
}
@ -314,6 +318,12 @@
transition: @extraTransition;
border-top: @extraDivider;
}
.ui.items > .item .extra > * {
margin-right: @extraSpacing;
}
.ui.items > .item .extra > .right.floated {
margin-left: @extraSpacing;
}
.ui.items > .item .extra:after {
display: block;

4
src/themes/packages/default/views/item.variables

@ -102,7 +102,9 @@
@paragraphDistance: 0.5em;
/* Additional Content */
@extraDivider: 1px solid rgba(0, 0, 0, 0.05);
@extraDivider: none;
@extraSpacing: 0.5em;
@extraBackground: none;
@extraDisplay: block;
@extraPosition: relative;

Loading…
Cancel
Save