projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uncommited changes synced
[roojs1]
/
scss
/
roojs-bootstrap
/
checkbox.scss
diff --git
a/scss/roojs-bootstrap/checkbox.scss
b/scss/roojs-bootstrap/checkbox.scss
index
bfed23f
..
910a753
100644
(file)
--- a/
scss/roojs-bootstrap/checkbox.scss
+++ b/
scss/roojs-bootstrap/checkbox.scss
@@
-14,7
+14,9
@@
-ms-user-select: none;
user-select: none;
}
-ms-user-select: none;
user-select: none;
}
+
.checkbox label::after {
.checkbox label::after {
+
display: inline-block;
position: absolute;
width: 16px;
display: inline-block;
position: absolute;
width: 16px;
@@
-25,16
+27,19
@@
padding-left: 3px;
padding-top: 1px;
font-size: 11px;
padding-left: 3px;
padding-top: 1px;
font-size: 11px;
- color: $gray; }
+ color: $gray;
+}
.checkbox input[type="checkbox"] {
.checkbox input[type="checkbox"] {
- display: none; }
+ display: none;
+}
.checkbox input[type="checkbox"]:checked + label::after {
font-size: 18px;
padding-top: 0px;
.checkbox input[type="checkbox"]:checked + label::after {
font-size: 18px;
padding-top: 0px;
- font-family: 'Font Awesome 5 Free
400
';
+ font-family: 'Font Awesome 5 Free';
font-weight: 900;
color: $brand-success;
font-weight: 900;
color: $brand-success;
- content: "\f14a"; }
+ content: "\f14a";
+}
.checkbox input[type="checkbox"]:not(:checked) + label::after {
font-size: 18px;
padding-top: 0px;
.checkbox input[type="checkbox"]:not(:checked) + label::after {
font-size: 18px;
padding-top: 0px;
@@
-44,41
+49,31
@@
.checkbox input[type="checkbox"]:disabled + label {
opacity: 0.65; }
.checkbox input[type="checkbox"]:disabled + label {
opacity: 0.65; }
-.checkbox input[type="checkbox"]:disabled + label::
before
{
- background-color: $gray-lighter;
+.checkbox input[type="checkbox"]:disabled + label::
after
{
+ color: $gray-lighter !important; /* overrides primary etc.. */
cursor: not-allowed; }
.checkbox.checkbox-circle label::before {
border-radius: 50%; }
cursor: not-allowed; }
.checkbox.checkbox-circle label::before {
border-radius: 50%; }
-.checkbox-primary input[type="checkbox"]:checked + label::before {
- background-color: $brand-primary;
- border-color: $brand-primary; }
+
.checkbox-primary input[type="checkbox"]:checked + label::after {
.checkbox-primary input[type="checkbox"]:checked + label::after {
- color: $b
ody-bg
; }
+ color: $b
rand-primary
; }
-.checkbox-danger input[type="checkbox"]:checked + label::before {
- background-color: $brand-danger;
- border-color: $brand-danger; }
+
.checkbox-danger input[type="checkbox"]:checked + label::after {
.checkbox-danger input[type="checkbox"]:checked + label::after {
- color: $b
ody-bg;
}
+ color: $b
rand-danger;
}
-.checkbox-info input[type="checkbox"]:checked + label::before {
- background-color: $brand-info;
- border-color: $brand-info; }
+
.checkbox-info input[type="checkbox"]:checked + label::after {
.checkbox-info input[type="checkbox"]:checked + label::after {
- color: $b
ody-bg
; }
+ color: $b
rand-info
; }
-.checkbox-warning input[type="checkbox"]:checked + label::before {
- background-color: $brand-warning;
- border-color: $brand-warning; }
+
.checkbox-warning input[type="checkbox"]:checked + label::after {
.checkbox-warning input[type="checkbox"]:checked + label::after {
- color: $b
ody-bg; }
+ color: $b
rand-warning; }
-.checkbox-success input[type="checkbox"]:checked + label::before {
- background-color: $brand-success;
- border-color: $brand-success; }
+
.checkbox-success input[type="checkbox"]:checked + label::after {
.checkbox-success input[type="checkbox"]:checked + label::after {
- color:
$body-bg;
}
+ color:
$brand-success;
}
/* before is the outer cicle */
/* after is the inner circle.. */
/* before is the outer cicle */
/* after is the inner circle.. */