summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-26 14:04:00 +0100
committerJulius Härtl <jus@bitgrid.net>2018-04-19 20:14:38 +0200
commitdfda5c683da8fae6e90c22d002019489f64bd2c5 (patch)
tree6819f6b9eeec9ee066aebd31674250374347c4da /apps/theming
parent02d3e09c86b94d2b9172efc093e7cd69c5d50750 (diff)
downloadnextcloud-server-dfda5c683da8fae6e90c22d002019489f64bd2c5.tar.gz
nextcloud-server-dfda5c683da8fae6e90c22d002019489f64bd2c5.zip
Use SCSS for previewing images as well
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/css/theming.scss45
1 files changed, 39 insertions, 6 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss
index 3bb26a14814..88d3e7cf0fc 100644
--- a/apps/theming/css/theming.scss
+++ b/apps/theming/css/theming.scss
@@ -92,20 +92,53 @@
/* override styles for login screen in guest.css */
@if variable_exists('theming-logo-mime') and $theming-logo-mime != '' {
- #header .logo {
+ #theming-preview-logo,
+ #header .logo {
background-image: url(#{$image-logo});
background-size: contain;
}
#body-login #header .logo {
margin-bottom: 22px;
}
+} @else {
+ #theming-preview-logo {
+ background-image: url(#{$image-logo});
+ }
}
-#body-login,
-#firstrunwizard .firstrunwizard-header,
-#theming-preview {
- background-image: url(#{$image-login-background});
- background-color: $color-primary;
+@if variable_exists('theming-background-mime') and $theming-background-mime != '' {
+ #body-login,
+ #firstrunwizard .firstrunwizard-header,
+ #theming-preview {
+ background-image: url(#{$image-login-background});
+ background-color: $color-primary;
+ }
+} @else {
+ #theming-preview {
+ background-image: url(#{$image-login-background});
+ background-color: $color-primary;
+ }
+}
+
+@if variable_exists('theming-logoheader-mime') and $theming-logoheader-mime != '' {
+ #theming .advanced-option-logoheader .image-preview,
+ body:not(#body-login) #header .logo {
+ background-image: url(#{$image-logoheader});
+ }
+} @else {
+ #theming .advanced-option-favicon .image-preview {
+ background-image: none;
+ }
+}
+
+@if variable_exists('theming-favicon-mime') and $theming-favicon-mime != '' {
+ #theming .advanced-option-favicon .image-preview {
+ background-image: url(#{$image-favicon});
+ }
+} @else {
+ #theming .advanced-option-favicon .image-preview {
+ background-image: none;
+ }
}
input.primary,