Browse Source

Leet fix for #1337, checkbox now supports multi-line label

pull/1550/head
jlukic 10 years ago
parent
commit
aac00f123b
2 changed files with 9 additions and 6 deletions
  1. 14
      src/definitions/modules/checkbox.less
  2. 1
      src/themes/default/modules/checkbox.variables

14
src/definitions/modules/checkbox.less

@ -32,7 +32,7 @@
position: relative; position: relative;
display: inline-block; display: inline-block;
height: @checkboxSize;
min-height: @checkboxSize;
font-size: 1rem; font-size: 1rem;
line-height: @checkboxLineHeight; line-height: @checkboxLineHeight;
@ -213,7 +213,7 @@
---------------*/ ---------------*/
.ui.radio.checkbox { .ui.radio.checkbox {
height: @checkboxRadioSize;
min-height: @checkboxRadioSize;
} }
/* Box */ /* Box */
@ -255,7 +255,7 @@
.ui.slider.checkbox { .ui.slider.checkbox {
cursor: pointer; cursor: pointer;
height: @sliderHeight;
min-height: @sliderHeight;
} }
.ui.slider.checkbox .box, .ui.slider.checkbox .box,
@ -350,16 +350,18 @@
.ui.toggle.checkbox { .ui.toggle.checkbox {
cursor: pointer; cursor: pointer;
height: @toggleHeight;
min-height: @toggleHeight;
} }
.ui.toggle.checkbox .box, .ui.toggle.checkbox .box,
.ui.toggle.checkbox label { .ui.toggle.checkbox label {
height: @toggleHandleSize;
min-height: @toggleHandleSize;
padding-left: @toggleLabelDistance; padding-left: @toggleLabelDistance;
line-height: @toggleLabelLineHeight;
color: @toggleOffLabelColor; color: @toggleOffLabelColor;
} }
.ui.toggle.checkbox label {
padding-top: @toggleLabelOffset;
}
/* Switch */ /* Switch */
.ui.toggle.checkbox .box:before, .ui.toggle.checkbox .box:before,

1
src/themes/default/modules/checkbox.variables

@ -123,6 +123,7 @@
@toggleLabelDistance: @toggleLaneWidth + 1rem; @toggleLabelDistance: @toggleLaneWidth + 1rem;
@toggleLabelLineHeight: 1.5rem; @toggleLabelLineHeight: 1.5rem;
@toggleLabelOffset: 0.15em;
@toggleFocusColor: @strongTransparentBlack; @toggleFocusColor: @strongTransparentBlack;

Loading…
Cancel
Save