summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2018-02-10 00:04:40 +0100
committerGitHub <noreply@github.com>2018-02-10 00:04:40 +0100
commit3f91eaedfcc212ed73d39aa0e00139ed4518bbb5 (patch)
treec6656b0298af15860080971059819597fe22be3f
parent9c9c438c8b72162def65b31faf529a7605b1b533 (diff)
parentef571d69f3521760ef915847d0d9fef4b56a9ea3 (diff)
downloadnextcloud-server-3f91eaedfcc212ed73d39aa0e00139ed4518bbb5.tar.gz
nextcloud-server-3f91eaedfcc212ed73d39aa0e00139ed4518bbb5.zip
Merge pull request #8286 from nextcloud/stable13-8155
[13] Fix styling issues of guest pages #8155
-rw-r--r--apps/theming/css/theming.scss7
-rw-r--r--lib/private/TemplateLayout.php4
2 files changed, 8 insertions, 3 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss
index 3cb8ee2584d..623aad063f1 100644
--- a/apps/theming/css/theming.scss
+++ b/apps/theming/css/theming.scss
@@ -91,14 +91,17 @@
}
/* override styles for login screen in guest.css */
-@if variable_exists('theming-logo-mime') {
+@if variable_exists('theming-logo-mime') and $theming-logo-mime != '' {
#header .logo {
background-image: url(#{$image-logo});
background-size: contain;
}
+ #body-login #header .logo {
+ margin-bottom: 22px;
+ }
}
-@if variable_exists('theming-background-mime') {
+@if variable_exists('theming-background-mime') and $theming-background-mime != '' {
#body-login,
#firstrunwizard .firstrunwizard-header,
#theming-preview {
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 5e6d432c805..3acdae0e395 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -178,7 +178,9 @@ class TemplateLayout extends \OC_Template {
if(\OC::$server->getSystemConfig()->getValue('installed', false)
&& !\OCP\Util::needUpgrade()
&& $pathInfo !== ''
- && !preg_match('/^\/login/', $pathInfo)) {
+ && !preg_match('/^\/login/', $pathInfo)
+ && $renderAs !== 'error' && $renderAs !== 'guest'
+ ) {
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
} else {
// If we ignore the scss compiler,