Move form input required-mark closer to caption
This commit is contained in:
parent
b584e1afb6
commit
c055645f11
@ -30,22 +30,21 @@
|
|||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group__hint {
|
.form-group__label__hint {
|
||||||
margin-top: 7px;
|
margin-top: 7px;
|
||||||
color: var(--color-fontsec);
|
color: var(--color-fontsec);
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group--required {
|
.form-group--required {
|
||||||
|
.form-group__label__caption::after {
|
||||||
.form-group__label::after {
|
|
||||||
content: ' *';
|
content: ' *';
|
||||||
color: var(--color-error);
|
color: var(--color-error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group--optional {
|
.form-group--optional {
|
||||||
.form-group__label::after {
|
.form-group__label__caption::after {
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,9 +14,10 @@ $case formLayout
|
|||||||
<div .form-group :fvRequired view:.form-group--required :not $ fvRequired view:.form-group--optional :isJust $ fvErrors view:.form-group--has-error>
|
<div .form-group :fvRequired view:.form-group--required :not $ fvRequired view:.form-group--optional :isJust $ fvErrors view:.form-group--has-error>
|
||||||
$if not (Blaze.null $ fvLabel view)
|
$if not (Blaze.null $ fvLabel view)
|
||||||
<label .form-group__label for=#{fvId view}>
|
<label .form-group__label for=#{fvId view}>
|
||||||
#{fvLabel view}
|
<span .form-group__label__caption>
|
||||||
|
#{fvLabel view}
|
||||||
$maybe hint <- fvTooltip view
|
$maybe hint <- fvTooltip view
|
||||||
<div .form-group__hint>^{hint}
|
<div .form-group__label__hint>^{hint}
|
||||||
<div .form-group__input>
|
<div .form-group__input>
|
||||||
^{fvInput view}
|
^{fvInput view}
|
||||||
$maybe err <- fvErrors view
|
$maybe err <- fvErrors view
|
||||||
|
|||||||
Reference in New Issue
Block a user