Browse Source

Add line height offset for label inside header

pull/2034/head
jlukic 9 years ago
parent
commit
235dc8a8ca
2 changed files with 9 additions and 2 deletions
  1. 4
      src/definitions/elements/label.less
  2. 7
      src/themes/default/elements/label.variables

4
src/definitions/elements/label.less

@ -114,6 +114,10 @@ a.ui.label {
Coupling Coupling
--------------------*/ --------------------*/
.ui.header > .ui.label {
margin-top: @lineHeightOffset;
}
/* Remove border radius on attached segment */ /* Remove border radius on attached segment */
.ui.attached.segment > .ui.top.left.attached.label, .ui.attached.segment > .ui.top.left.attached.label,
.ui.bottom.attached.segment > .ui.top.left.attached.label { .ui.bottom.attached.segment > .ui.top.left.attached.label {

7
src/themes/default/elements/label.variables

@ -14,12 +14,14 @@
@backgroundColor: #E8E8E8; @backgroundColor: #E8E8E8;
@backgroundImage: none; @backgroundImage: none;
@labelTextColor: rgba(0, 0, 0, 0.6); @labelTextColor: rgba(0, 0, 0, 0.6);
@verticalPadding: 0.6em;
@horizontalPadding: 0.8em;
@verticalPadding: 0.5833em;
@horizontalPadding: 0.833em;
@borderRadius: @absoluteBorderRadius; @borderRadius: @absoluteBorderRadius;
@textTransform: none; @textTransform: none;
@fontWeight: bold; @fontWeight: bold;
@lineHeightOffset: -(@verticalPadding / 2);
@labelTransitionDuration: @transitionDuration; @labelTransitionDuration: @transitionDuration;
@labelTransitionEasing: @transitionEasing; @labelTransitionEasing: @transitionEasing;
@transition: background @labelTransitionDuration @labelTransitionEasing; @transition: background @labelTransitionDuration @labelTransitionEasing;
@ -28,6 +30,7 @@
@groupVerticalMargin: 0.75em; @groupVerticalMargin: 0.75em;
@groupHorizontalMargin: 0.5em; @groupHorizontalMargin: 0.5em;
/*------------------- /*-------------------
Parts Parts
--------------------*/ --------------------*/

Loading…
Cancel
Save