summaryrefslogtreecommitdiffstats
path: root/core/css/inputs.scss
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-01-21 19:05:20 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-01-21 19:05:20 +0100
commitf68ff25cc05e08cf44ba79125658719288ccba6e (patch)
tree346260cba023e542faadb8a205396d17bd12c383 /core/css/inputs.scss
parent05f39906166432676c7fce90b7b30cecc14798c0 (diff)
downloadnextcloud-server-f68ff25cc05e08cf44ba79125658719288ccba6e.tar.gz
nextcloud-server-f68ff25cc05e08cf44ba79125658719288ccba6e.zip
Going back to svg for the checkmark and the mixed mark
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/css/inputs.scss')
-rw-r--r--core/css/inputs.scss44
1 files changed, 13 insertions, 31 deletions
diff --git a/core/css/inputs.scss b/core/css/inputs.scss
index f445edd8201..19deb59b1d7 100644
--- a/core/css/inputs.scss
+++ b/core/css/inputs.scss
@@ -205,6 +205,7 @@ input {
vertical-align: middle;
border-radius: 50%;
margin: 3px;
+ margin-top: 1px;
border: 1px solid #888;
}
&:not(:disabled):not(:checked) + label:hover:before,
@@ -231,35 +232,16 @@ input {
&.checkbox {
+ label:before {
border-radius: 1px;
- height: 11px;
- width: 11px;
+ height: 10px;
+ width: 10px;
box-shadow: none !important;
+ background-position: center;
}
- &:checked + label,
- &:indeterminate + label {
- position: relative;
+ &:checked + label:before {
+ background-image: url('../img/actions/checkbox-mark.svg');
}
- &:checked + label:after,
- &:indeterminate + label:after {
- content: '';
- display: inline-block;
- position: absolute;
- }
- &:checked + label:after {
- width: 7px;
- height: 3px;
- border: 1px solid #fff;
- top: 7px;
- left: 5px;
- border-width: 0 0 2px 2px;
- transform: rotate(-45deg);
- }
- &:indeterminate + label:after {
- width: 9px;
- height: 3px;
- top: 9px;
- left: 5px;
- background-color: #fff;
+ &:indeterminate + label:before {
+ background-image: url('../img/actions/checkbox-mixed.svg');
}
&:indeterminate:disabled + label:before {
border-color: #888;
@@ -293,15 +275,15 @@ input {
}
}
&.checkbox--white {
- &:checked + label:after {
- border-color: #000;
+ &:checked + label:before {
+ background-image: url('../img/actions/checkbox-mark.svg');
+ }
+ &:indeterminate + label:before {
+ background-image: url('../img/actions/checkbox-mixed.svg');
}
&:checked:disabled + label:after {
border-color: #aaa;
}
- &:indeterminate + label:after {
- background-color: #000;
- }
&:indeterminate:disabled + label:after {
background-color: #aaa;
}