corrections sur radio / checkbox

This commit is contained in:
Raphaël Goetter 2022-01-24 17:03:36 +01:00
parent d9833fe12c
commit 6e13e8bc48
4 changed files with 8 additions and 9 deletions

View file

@ -1,5 +1,6 @@
# Changelog # Changelog
- 24 janvier 2022 (8.2.1) : corrections des radio / checkbox
- 19 janvier 2022 (8.2) : refonte des variables d'espacement - 19 janvier 2022 (8.2) : refonte des variables d'espacement
- 5 janvier 2022 (8.1) : refonte des variables de couleur - 5 janvier 2022 (8.1) : refonte des variables de couleur
- 9 juillet 2021 (8.0.5) : suppression min-height: 0 par défaut - 9 juillet 2021 (8.0.5) : suppression min-height: 0 par défaut

View file

@ -1,6 +1,6 @@
{ {
"name": "knacss", "name": "knacss",
"version": "8.2", "version": "8.2.1",
"homepage": "http://www.knacss.com/", "homepage": "http://www.knacss.com/",
"bugs": "https://github.com/alsacreations/KNACSS/issues", "bugs": "https://github.com/alsacreations/KNACSS/issues",
"author": "Raphaël GOETTER, Alsacreations (http://www.alsacreations.fr)", "author": "Raphaël GOETTER, Alsacreations (http://www.alsacreations.fr)",

View file

@ -30,14 +30,13 @@ $checkbox-border-radius: 4px;
width: $checkbox-size; width: $checkbox-size;
height: $checkbox-size; height: $checkbox-size;
vertical-align: text-bottom; vertical-align: text-bottom;
outline: 0;
box-shadow: inset 0 0 0 1px $primary; box-shadow: inset 0 0 0 1px $primary;
background-color: $checkbox-color; background-color: $checkbox-color;
transition: background-color 0.15s; transition: background-color 0.15s;
cursor: pointer; cursor: pointer;
} }
.checkbox+label { .checkbox + label {
cursor: pointer; cursor: pointer;
} }
@ -45,7 +44,7 @@ $checkbox-border-radius: 4px;
opacity: 0.6; opacity: 0.6;
} }
.checkbox:disabled+label { .checkbox:disabled + label {
opacity: 0.6; opacity: 0.6;
cursor: not-allowed; cursor: not-allowed;
} }
@ -56,4 +55,4 @@ $checkbox-border-radius: 4px;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: $checkbox-background; background-color: $checkbox-background;
} }

View file

@ -30,14 +30,13 @@ $radio-border-radius: 50%;
width: $radio-size; width: $radio-size;
height: $radio-size; height: $radio-size;
vertical-align: text-bottom; vertical-align: text-bottom;
outline: 0;
box-shadow: inset 0 0 0 1px $primary; box-shadow: inset 0 0 0 1px $primary;
background-color: $radio-background; background-color: $radio-background;
transition: background-size 0.15s; transition: background-size 0.15s;
cursor: pointer; cursor: pointer;
} }
.radio+label { .radio + label {
cursor: pointer; cursor: pointer;
} }
@ -45,7 +44,7 @@ $radio-border-radius: 50%;
opacity: 0.6; opacity: 0.6;
} }
.radio:disabled+label { .radio:disabled + label {
opacity: 0.6; opacity: 0.6;
cursor: not-allowed; cursor: not-allowed;
} }
@ -56,4 +55,4 @@ $radio-border-radius: 50%;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: $primary; background-color: $primary;
} }