]> source.dussan.org Git - nextcloud-server.git/commitdiff
Transparent white checkbox 3341/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 31 Jan 2017 18:29:30 +0000 (19:29 +0100)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 31 Jan 2017 18:29:30 +0000 (19:29 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
core/css/inputs.scss
core/img/actions/checkbox-mark-white.svg
core/img/actions/checkbox-mixed-white.svg

index f7b9cdb723c28f311f735aad4c7558f795551aae..faddcc502142fb080cef6d3554e9239d1405b881 100644 (file)
@@ -265,16 +265,13 @@ input {
                &.radio--white,
                &.checkbox--white {
                        + label:before {
-                               border-color: #aaa;
+                               border-color: #ddd;
                        }
                        &:not(:disabled):not(:checked) + label:hover:before,
                        &:focus + label:before {
                                border-color: #fff;
                        }
-                       &:checked + label:before,
-                       &.checkbox:indeterminate + label:before {
-                       /* ^ :indeterminate have a strange behavior on radio,
-                       so we respecified the checkbox class again to be safe */
+                       &:checked + label:before {
                                box-shadow: inset 0px 0px 0px 2px #000;
                                background-color: #eee;
                                border-color: #eee
@@ -290,7 +287,10 @@ input {
                        }
                }
                &.checkbox--white {
-                       &:checked + label:before {
+                       &:checked + label:before,
+                       &:indeterminate + label:before {
+                               background-color: transparent !important; /* Override default checked */
+                               border-color: #fff !important; /* Override default checked */
                                background-image: url('../img/actions/checkbox-mark-white.svg');
                        }
                        &:indeterminate + label:before {
index 8407898164b3f657362df6622fc54f0e4098fa66..1441e8666fb8e28abccdb9afabae2e9342ffb3e4 100644 (file)
@@ -1 +1,4 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M11.924 4.066l-4.932 4.97-2.828-2.83L2.75 7.618l4.242 4.243 6.365-6.365-1.433-1.432z"/></svg>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg">
+ <path d="m0 0v16h16v-16h-16zm11.924 4.0664l1.4336 1.4297-6.3652 6.3652-4.2422-4.2441 1.4141-1.4121 2.8281 2.8301 4.9316-4.9688z" fill="#fff"/>
+</svg>
index c66636717be6fca17bb59c8823a03399f45f7741..6909d0fc04c1350f8d656c41381460165b0e0d9f 100644 (file)
@@ -1 +1,4 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M4 7v2h8V7H4z"/></svg>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg">
+ <path d="m0 0v16h16v-16h-16zm4 7h8v2h-8v-2z" fill="#fff"/>
+</svg>