Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acf42abf authored by theronakpatel's avatar theronakpatel
Browse files

Add guest share stylesheet and form fixes

parent b637dd98
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -31,11 +31,15 @@ class BeforeTemplateRenderedListener implements IEventListener {
		$pathInfo = $this->request->getPathInfo();
		$this->util->addStyle($this->appName, 'icons');
		$this->util->addStyle($this->appName, 'icons-vars');
		$isGuest = !$this->userSession->isLoggedIn();

		if (strpos($pathInfo, '/apps/files') !== false) {
			$this->util->addStyle($this->appName, 'files');
			$this->util->addScript($this->appName, $this->appName . '-files-icon-alignment');
		}
		if ($isGuest && strpos($pathInfo, '/s/') === 0) {
			$this->util->addStyle($this->appName, 'files-share');
		}
		if (strpos($pathInfo, '/apps/activity') !== false) {
			$this->util->addStyle($this->appName, 'activity');
		}

scss/files-share.scss

0 → 100644
+42 −0
Original line number Diff line number Diff line
/* Guest/public share styles for Files */

.guest-box{
    #password-input-form {
        .warning {
            background-color: var(--color-main-background);
            border-color: var(--color-error);
            color: var(--color-error);
        }

        .warning-info {
            color: var(--color-error);
        }

        label.infield,
        #password {
            color: var(--color-main-text);
        }
    }
    #email-input-form {
        .warning {
            background-color: var(--color-main-background);
            border-color: var(--color-error);
            color: var(--color-error);
        }

        .warning-info {
            color: var(--color-error);
        }

        #email {
            color: var(--color-main-text);
        }
    }
}

body .icon-download {
    background-image: var(--icon-download-white) !important;
}
body .icon-download-dark {
    background-image: var(--icon-download-dark) !important;
}
 No newline at end of file