Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-07-25 17:44:56 +0300
committerJulius Haertl <jus@bitgrid.net>2016-07-27 21:00:23 +0300
commit7ff19e342e8c44def7fe9aeb3a209e91c3ff107e (patch)
treeaba431e0697ef6e13abfd5cfa43f3172782b242b /apps/theming/js
parentacd11729987004edbcb1244577a80585a3d20a21 (diff)
Theming: Colorize radio buttons and append new styles on preview
Diffstat (limited to 'apps/theming/js')
-rw-r--r--apps/theming/js/settings-admin.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js
index bf3571e2438..a45694b9aa6 100644
--- a/apps/theming/js/settings-admin.js
+++ b/apps/theming/js/settings-admin.js
@@ -64,7 +64,7 @@ function preview(setting, value) {
icon = 'caret';
}
if (luminance>0.8) {
- elementColor = '#969696';
+ elementColor = '#555555';
}
headerClass.style.background = value;
@@ -74,11 +74,15 @@ function preview(setting, value) {
$('#previewStyles').html(
'#header .icon-caret { background-image: url(\'' + OC.getRootPath() + '/core/img/actions/' + icon + '.svg\') }' +
- 'input[type="checkbox"].checkbox:checked + label:before {' +
- 'background-image: url(\'' + OC.getRootPath() + '/core/img/actions/checkmark-white.svg\');' +
- 'background-color: ' + elementColor + ';' +
- 'background-position: center center; background-size:contain;' +
- 'width:12px; height:12px; padding:0; margin:1px 6px 7px 2px; }'
+ 'html:not(.ie):not(.edge) input[type="checkbox"].checkbox:checked:enabled:not(.checkbox--white) + label:before {' +
+ 'background-image:url(\'' + OC.getRootPath() + '/core/img/actions/checkmark-white.svg\');' +
+ 'background-color: ' + elementColor + '; background-position: center center; background-size:contain;' +
+ 'width:12px; height:12px; padding:0; margin:2px 6px 6px 2px; border-radius:1px;}' +
+ 'html:not(.ie):not(.edge) input[type="radio"].radio:checked:not(.radio--white):not(:disabled) + label:before {' +
+ '-webkit-mask-image: url(\'' + OC.getRootPath() + '/core/img/actions/radio-checked-white.svg\');' +
+ '-webkit-mask-repeat: no-repeat;' +
+ 'background-color: ' + elementColor+ ';' +
+ 'background-image: none; }'
);
}
if (setting === 'logoMime') {