|
@ -24,8 +24,8 @@ $crispy__field__border-color--focus: $crispy__color-primary !default; |
|
|
$crispy__field__border-color--valid: $crispy__color-success !default; |
|
|
$crispy__field__border-color--valid: $crispy__color-success !default; |
|
|
$crispy__field__border-color--error: $crispy__color-danger !default; |
|
|
$crispy__field__border-color--error: $crispy__color-danger !default; |
|
|
|
|
|
|
|
|
$crispy__field__checked: $crispy__color-success !default; |
|
|
|
|
|
$crispy__field__unchecked: $crispy__color-danger !default; |
|
|
|
|
|
|
|
|
$crispy__field__choice__checked__color: $crispy__color-success !default; |
|
|
|
|
|
$crispy__field__choice__unchecked__color: $crispy__color-danger !default; |
|
|
|
|
|
|
|
|
$crispy__field__input__font-size: $crispy__font-size !default; |
|
|
$crispy__field__input__font-size: $crispy__font-size !default; |
|
|
$crispy__field__input__padding: toEm(6px 8px) !default; |
|
|
$crispy__field__input__padding: toEm(6px 8px) !default; |
|
@ -33,8 +33,10 @@ $crispy__field__input__color: $crispy__color-text !default; |
|
|
|
|
|
|
|
|
$crispy__field__select__padding: toEm(8px) !default; |
|
|
$crispy__field__select__padding: toEm(8px) !default; |
|
|
|
|
|
|
|
|
|
|
|
$crispy__field__panel__padding: toEm(10px) !default; |
|
|
|
|
|
|
|
|
$crispy__field__select__background-color: white !default; |
|
|
$crispy__field__select__background-color: white !default; |
|
|
$crispy__field__select__border: $crispy_border !default; |
|
|
|
|
|
|
|
|
$crispy__field__select__border: $crispy__border !default; |
|
|
|
|
|
|
|
|
@mixin crispy__field() { |
|
|
@mixin crispy__field() { |
|
|
.field { |
|
|
.field { |
|
@ -125,66 +127,29 @@ $crispy__field__select__border: $crispy_border !default; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* radio |
|
|
|
|
|
* |
|
|
|
|
|
* |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
.field__radio { |
|
|
|
|
|
position: relative; |
|
|
|
|
|
display: none; |
|
|
|
|
|
|
|
|
|
|
|
+ .field__label { |
|
|
|
|
|
.field__radio__checked { |
|
|
|
|
|
display: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:checked + .field__label &__checked { |
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:checked + .field__label &__unchecked { |
|
|
|
|
|
display: none; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&__checked { |
|
|
|
|
|
fill: $crispy__field__checked__color; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&__unchecked { |
|
|
|
|
|
fill: $crispy__field__unchecked__color; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.field--valid { |
|
|
|
|
|
.field__radio__checked, .field__radio__unchecked { |
|
|
|
|
|
fill: $crispy__field__radio__color--valid; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.field--error { |
|
|
|
|
|
.field__radio__checked, .field__radio__unchecked { |
|
|
|
|
|
fill: $crispy__field__radio__color--error; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* checkbox |
|
|
|
|
|
|
|
|
* radio & checkbox |
|
|
* |
|
|
* |
|
|
|
|
|
* <div class="field"> |
|
|
|
|
|
* <input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" /> |
|
|
|
|
|
* <label for="field__checkbox__1" class="field__label"> |
|
|
|
|
|
* <svg class="icon field__choice__unchecked" aria-hidden="true"> |
|
|
|
|
|
* <use xlink:href="symbol-defs.svg#icon-minus"></use> |
|
|
|
|
|
* </svg> |
|
|
|
|
|
* <svg class="icon field__choice__checked" aria-hidden="true"> |
|
|
|
|
|
* <use xlink:href="symbol-defs.svg#icon-checked"></use> |
|
|
|
|
|
* </svg> |
|
|
|
|
|
* checkbox 1 |
|
|
|
|
|
* </label> |
|
|
|
|
|
* </div> |
|
|
* |
|
|
* |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
.field__checkbox { |
|
|
|
|
|
|
|
|
.field__choice { |
|
|
position: relative; |
|
|
position: relative; |
|
|
display: none; |
|
|
display: none; |
|
|
|
|
|
|
|
|
+ .field__label { |
|
|
+ .field__label { |
|
|
.field__checkbox__checked { |
|
|
|
|
|
|
|
|
.field__choice__checked { |
|
|
display: none; |
|
|
display: none; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -202,22 +167,22 @@ $crispy__field__select__border: $crispy_border !default; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&__checked { |
|
|
&__checked { |
|
|
fill: $crispy__field__checked__color; |
|
|
|
|
|
|
|
|
fill: $crispy__field__choice__checked__color; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&__unchecked { |
|
|
&__unchecked { |
|
|
fill: $crispy__field__unchecked__color; |
|
|
|
|
|
|
|
|
fill: $crispy__field__choice__unchecked__color; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.field--valid { |
|
|
.field--valid { |
|
|
.field__checkbox__checked, .field__checkbox__unchecked { |
|
|
|
|
|
|
|
|
.field__choice__checked, .field__choice__unchecked { |
|
|
fill: $crispy__field__color--valid; |
|
|
fill: $crispy__field__color--valid; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.field--error { |
|
|
.field--error { |
|
|
.field__checkbox__checked, .field__checkbox__unchecked { |
|
|
|
|
|
|
|
|
.field__choice__checked, .field__choice__unchecked { |
|
|
fill: $crispy__field__color--error; |
|
|
fill: $crispy__field__color--error; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -235,14 +200,14 @@ $crispy__field__select__border: $crispy_border !default; |
|
|
.field--valid { |
|
|
.field--valid { |
|
|
.field__panel { |
|
|
.field__panel { |
|
|
color: white; |
|
|
color: white; |
|
|
background-color: $crispy__field__background-color--valid; |
|
|
|
|
|
|
|
|
background-color: $crispy__field__color--valid; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.field--error { |
|
|
.field--error { |
|
|
.field__panel { |
|
|
.field__panel { |
|
|
color: white; |
|
|
color: white; |
|
|
background-color: $crispy__field__background-color--error; |
|
|
|
|
|
|
|
|
background-color: $crispy__field__color--error; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |