Merge pull request #8155 from nextcloud/use-guest-css
Fix styling issues of guest pages
This commit is contained in:
commit
0225ea1b9a
2 changed files with 8 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue