Skip to content

Commit

Permalink
Fixes for grouped/inline form label sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Oct 29, 2014
1 parent 298fb28 commit a6975a9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
6 changes: 6 additions & 0 deletions src/definitions/collections/form.less
Expand Up @@ -568,6 +568,9 @@
.ui.form .grouped.fields:last-child {
margin-bottom: 0em;
}
.ui.form .grouped.fields > label {
font-size: @groupedLabelFontSize;
}
.ui.form .grouped.fields .field {
display: block;
float: none;
Expand Down Expand Up @@ -791,6 +794,9 @@
.ui.form .inline.field > input {
font-size: @inlineLabelFontSize;
}
.ui.form .inline.fields .field > .ui.checkbox label {
padding-left: @inlineCheckboxLabelDistance;
}

/* Label */
.ui.form .inline.fields .field > :first-child,
Expand Down
34 changes: 17 additions & 17 deletions src/themes/default/collections/form.variables
Expand Up @@ -24,22 +24,6 @@
@labelTextTransform: none;
@labelColor: @textColor;

/* Grouped Labels */
@groupedLabelDistance: @labelDistance;
@groupedLabelColor: @labelColor;
@groupedLabelMargin: @labelMargin;
@groupedLabelFontSize: @labelFontSize;
@groupedLabelFontWeight: @labelFontWeight;
@groupedLabelTextTransform: @labelTextTransform;

/* Inline Labels */
@inlineLabelMargin: 0em 1em 0em 0em;
@inlineLabelDistance: @labelDistance;
@inlineLabelColor: @labelColor;
@inlineLabelFontSize: @labelFontSize;
@inlineLabelFontWeight: @labelFontWeight;
@inlineLabelTextTransform: @labelTextTransform;

/* Input */
@inputWidth: 100%;
@inputFontSize: 1em;
Expand Down Expand Up @@ -171,10 +155,26 @@
@groupedMargin: @fieldMargin;
@groupedFieldMargin: 0.5em 0em;

@groupedLabelDistance: @labelDistance;
@groupedLabelColor: @labelColor;
@groupedLabelMargin: @labelMargin;
@groupedLabelFontSize: @labelFontSize;
@groupedLabelFontWeight: @labelFontWeight;
@groupedLabelTextTransform: @labelTextTransform;


/* Inline */
@inlineLabelFontSize: 1em;
@inlineLabelFontSize: @labelFontSize;
@inlineLabelVerticalAlign: middle;
@inlineGroupedFieldLabelDistance: 0.5rem;
@inlineCheckboxLabelDistance: 1.75em;

@inlineLabelMargin: 0em 1em 0em 0em;
@inlineLabelDistance: @labelDistance;
@inlineLabelColor: @labelColor;
@inlineLabelFontSize: @labelFontSize;
@inlineLabelFontWeight: @labelFontWeight;
@inlineLabelTextTransform: @labelTextTransform;

/* Sizes */
@small: 0.875em;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/default/globals/site.variables
Expand Up @@ -291,7 +291,7 @@
@circularRadius : 500rem;

@borderColor : rgba(39, 41, 43, 0.15);
@selectedBorderColor : rgba(39, 41, 43, 0.2);
@selectedBorderColor : rgba(39, 41, 43, 0.3);

@solidBorderColor : #D4D4D5;
@solidSelectedBorderColor : #BEBEBF;
Expand Down

0 comments on commit a6975a9

Please sign in to comment.