|
|
@@ -1,166 +0,0 @@
|
|
|
-/* =============
|
|
|
- Checkbox and Radios
|
|
|
-============= */
|
|
|
-.checkbox {
|
|
|
- padding-left: 20px;
|
|
|
-
|
|
|
- label {
|
|
|
- position: relative;
|
|
|
- display: inline-block;
|
|
|
- padding-left: 5px;
|
|
|
-
|
|
|
- &::before {
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- display: inline-block;
|
|
|
- width: 17px;
|
|
|
- height: 17px;
|
|
|
- margin-left: -20px;
|
|
|
- content: '';
|
|
|
- background-color: $white;
|
|
|
- border: 1px solid darken($border, 10%);
|
|
|
- border-radius: 1px;
|
|
|
- outline: none !important;
|
|
|
- -o-transition: 0.3s ease-in-out;
|
|
|
- -webkit-transition: 0.3s ease-in-out;
|
|
|
- transition: 0.3s ease-in-out;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- display: inline-block;
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- padding-top: 1px;
|
|
|
- padding-left: 3px;
|
|
|
- margin-left: -20px;
|
|
|
- font-size: 11px;
|
|
|
- color: $dark;
|
|
|
- }
|
|
|
- }
|
|
|
- input[type='checkbox'] {
|
|
|
- z-index: 1;
|
|
|
- cursor: pointer;
|
|
|
- outline: none !important;
|
|
|
- opacity: 0;
|
|
|
-
|
|
|
- &:disabled + label {
|
|
|
- opacity: 0.65;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- input[type='checkbox']:focus + label {
|
|
|
- &::before {
|
|
|
- outline: none;
|
|
|
- outline: thin dotted;
|
|
|
- outline-offset: -2px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::after {
|
|
|
- font-family: 'FontAwesome';
|
|
|
- content: '\f00c';
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- input[type='checkbox']:disabled + label {
|
|
|
- &::before {
|
|
|
- cursor: not-allowed;
|
|
|
- background-color: $light;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.checkbox-primary {
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::before {
|
|
|
- background-color: $primary;
|
|
|
- border-color: $primary;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- color: $white;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.checkbox-danger {
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::before {
|
|
|
- background-color: $danger;
|
|
|
- border-color: $danger;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- color: $white;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.checkbox-info {
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::before {
|
|
|
- background-color: $info;
|
|
|
- border-color: $info;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- color: $white;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.checkbox-warning {
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::before {
|
|
|
- background-color: $warning;
|
|
|
- border-color: $warning;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- color: $white;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.checkbox-success {
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::before {
|
|
|
- background-color: $success;
|
|
|
- border-color: $success;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- color: $white;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.checkbox-purple {
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::before {
|
|
|
- background-color: $purple;
|
|
|
- border-color: $purple;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- color: $white;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.checkbox-red {
|
|
|
- input[type='checkbox']:checked + label {
|
|
|
- &::before {
|
|
|
- background-color: $danger;
|
|
|
- border-color: $danger;
|
|
|
- }
|
|
|
-
|
|
|
- &::after {
|
|
|
- color: $white;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|