mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-31 03:52:01 +08:00
Some small cleanups/corrections
This commit is contained in:
parent
28b32edfab
commit
f0b0d21386
5 changed files with 12 additions and 15 deletions
|
@ -54,9 +54,8 @@ const
|
||||||
if (!vmDom.showModal) {
|
if (!vmDom.showModal) {
|
||||||
vmDom.classList.add('polyfill');
|
vmDom.classList.add('polyfill');
|
||||||
vmDom.showModal = () => {
|
vmDom.showModal = () => {
|
||||||
if (!vmDom.backdrop) {
|
vmDom.backdrop ||
|
||||||
vmDom.before(vmDom.backdrop = Element.fromHTML('<div class="dialog-backdrop"></div>'));
|
vmDom.before(vmDom.backdrop = Element.fromHTML('<div class="dialog-backdrop"></div>'));
|
||||||
}
|
|
||||||
vmDom.setAttribute('open','');
|
vmDom.setAttribute('open','');
|
||||||
vmDom.open = true;
|
vmDom.open = true;
|
||||||
vmDom.returnValue = null;
|
vmDom.returnValue = null;
|
||||||
|
|
|
@ -66,7 +66,7 @@ export class MailMessageView extends AbstractViewRight {
|
||||||
const
|
const
|
||||||
/**
|
/**
|
||||||
* @param {Function} fExecute
|
* @param {Function} fExecute
|
||||||
* @param {(Function|boolean|null)=} fCanExecute = true
|
* @param {Function} fCanExecute = true
|
||||||
* @returns {Function}
|
* @returns {Function}
|
||||||
*/
|
*/
|
||||||
createCommand = (fExecute, fCanExecute) => {
|
createCommand = (fExecute, fCanExecute) => {
|
||||||
|
|
|
@ -125,5 +125,6 @@ trait Themes
|
||||||
\str_replace('@{base}', $sBase, \implode("\n", $mResult)));
|
\str_replace('@{base}', $sBase, \implode("\n", $mResult)));
|
||||||
|
|
||||||
return $bLess ? (new \LessPHP\lessc())->compile($mResult) : $mResult;
|
return $bLess ? (new \LessPHP\lessc())->compile($mResult) : $mResult;
|
||||||
|
// : \str_replace(';}', '}', \preg_replace('/\\s*([:;{},])\\s*/', '\1', \preg_replace('/\\s+/', ' ', \preg_replace('#/\\*.*?\\*/#s', '', $mResult))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,10 +92,7 @@ class Api
|
||||||
$sSslCapath = static::Config()->Get('ssl', 'capath', '');
|
$sSslCapath = static::Config()->Get('ssl', 'capath', '');
|
||||||
|
|
||||||
Utils::$CookieDefaultPath = static::Config()->Get('labs', 'cookie_default_path', '');
|
Utils::$CookieDefaultPath = static::Config()->Get('labs', 'cookie_default_path', '');
|
||||||
if (static::Config()->Get('labs', 'cookie_default_secure', false))
|
Utils::$CookieDefaultSecure = !!static::Config()->Get('labs', 'cookie_default_secure', false);
|
||||||
{
|
|
||||||
Utils::$CookieDefaultSecure = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($sSslCafile) || !empty($sSslCapath))
|
if (!empty($sSslCafile) || !empty($sSslCapath))
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,23 +3,23 @@
|
||||||
/* MAIN */
|
/* MAIN */
|
||||||
--main-color: #333;
|
--main-color: #333;
|
||||||
--main-bg-color: #e3e3e3;
|
--main-bg-color: #e3e3e3;
|
||||||
--main-bg-image: none; /* url("images/background.png"); */
|
--main-bg-image: none; /* url("images/background.png"); */
|
||||||
--main-bg-size: auto;
|
--main-bg-size: auto;
|
||||||
--main-bg-repeat: repeat;
|
--main-bg-repeat: repeat;
|
||||||
--link-color: #369;
|
--link-color: #369;
|
||||||
|
|
||||||
/* LOADING */
|
/* LOADING */
|
||||||
--loading-color: #000; /* #ddd */
|
--loading-color: #000;
|
||||||
--loading-text-shadow: none; /* 0px 1px 0px rgba(0, 0, 0, 0.5); */
|
--loading-text-shadow: none; /* 0px 1px 0px rgba(0, 0, 0, 0.5); */
|
||||||
|
|
||||||
/* LOGIN */
|
/* LOGIN */
|
||||||
--login-color: #555;
|
--login-color: #555;
|
||||||
--login-bg-color: #eee;
|
--login-bg-color: #eee;
|
||||||
--login-box-shadow: none; /* 0px 2px 10px rgba(0,0,0,0.5) */
|
--login-box-shadow: none; /* 0px 2px 10px rgba(0,0,0,0.5) */
|
||||||
--login-border: 1px solid #ccc;
|
--login-border: 1px solid #ccc;
|
||||||
--login-border-radius: 7px;
|
--login-border-radius: 7px;
|
||||||
--login-gradient-start: none; /* #f4f4f4 */
|
--login-gradient-start: none; /* #f4f4f4 */
|
||||||
--login-gradient-end: none; /* #dfdfdf */
|
--login-gradient-end: none; /* #dfdfdf */
|
||||||
|
|
||||||
--spinner-color: #fff;
|
--spinner-color: #fff;
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@
|
||||||
|
|
||||||
/* MESSAGE LIST */
|
/* MESSAGE LIST */
|
||||||
--message-list-toolbar-bg-color: #eee;
|
--message-list-toolbar-bg-color: #eee;
|
||||||
--message-list-toolbar-gradient-start: none; /* #f4f4f4 */
|
--message-list-toolbar-gradient-start: none; /* #f4f4f4 */
|
||||||
--message-list-toolbar-gradient-end: none; /* #dfdfdf */
|
--message-list-toolbar-gradient-end: none; /* #dfdfdf */
|
||||||
|
|
||||||
/* MESSAGE */
|
/* MESSAGE */
|
||||||
--message-bg-color: #fff;
|
--message-bg-color: #fff;
|
||||||
|
|
Loading…
Reference in a new issue