projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
less/roojs-bootstrap/checkbox.less
[roojs1]
/
less
/
roojs-bootstrap
/
checkbox.less
diff --git
a/less/roojs-bootstrap/checkbox.less
b/less/roojs-bootstrap/checkbox.less
index
2f0f69a
..
6d66d90
100644
(file)
--- a/
less/roojs-bootstrap/checkbox.less
+++ b/
less/roojs-bootstrap/checkbox.less
@@
-3,7
+3,7
@@
* From https://github.com/flatlogic/awesome-bootstrap-checkbox
*
*/
* From https://github.com/flatlogic/awesome-bootstrap-checkbox
*
*/
-.checkbox label {
+.checkbox label
.box-label
{
display: inline-block;
position: relative;
padding-left: 5px;
display: inline-block;
position: relative;
padding-left: 5px;
@@
-25,60
+25,55
@@
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;
content: "\f14a"; }
.checkbox input[type="checkbox"]:not(:checked) + label::after {
font-size: 18px;
padding-top: 0px;
font-weight: 900;
color: @brand-success;
content: "\f14a"; }
.checkbox input[type="checkbox"]:not(:checked) + label::after {
font-size: 18px;
padding-top: 0px;
- font-family: 'Font Awesome 5 Free 400';
+ font-family: 'Font Awesome 5 Free 400';
/* change the font - uses the filled one */
font-weight: 900;
content: "\f0c8"; }
.checkbox input[type="checkbox"]:disabled + label {
opacity: 0.65; }
font-weight: 900;
content: "\f0c8"; }
.checkbox input[type="checkbox"]:disabled + label {
opacity: 0.65; }
-.checkbox input[type="checkbox"]:disabled + label::before {
- background-color: @gray-lighter;
- cursor: not-allowed; }
+
+.checkbox input[type="checkbox"]:disabled + label::after {
+ color: @gray-lighter;
+ cursor: not-allowed;
+}
+
.checkbox.checkbox-circle label::before {
border-radius: 50%; }
.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: @body-bg; }
-
-.checkbox-info input[type="checkbox"]:checked + label::before {
- background-color: @brand-info;
- border-color: @brand-info; }
+ color: @brand-danger; }
+
.checkbox-info input[type="checkbox"]:checked + label::after {
.checkbox-info input[type="checkbox"]:checked + label::after {
- color:
@body-bg
; }
+ color:
@brand-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-b
g; }
+ color: @b
rand-warnin
g; }
-.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.. */
@@
-179,4
+174,10
@@
.checkbox.checkbox-inline,
.radio.radio-inline {
margin-top: 0;
.checkbox.checkbox-inline,
.radio.radio-inline {
margin-top: 0;
-}
\ No newline at end of file
+}
+
+.form-group.checkbox {
+ padding-bottom:25px;
+ margin-top: 0;
+
+}