diff --git a/dev/Knoin/Knoin.js b/dev/Knoin/Knoin.js index 90818fe32..2d47888c0 100644 --- a/dev/Knoin/Knoin.js +++ b/dev/Knoin/Knoin.js @@ -54,9 +54,8 @@ const if (!vmDom.showModal) { vmDom.classList.add('polyfill'); vmDom.showModal = () => { - if (!vmDom.backdrop) { + vmDom.backdrop || vmDom.before(vmDom.backdrop = Element.fromHTML('
')); - } vmDom.setAttribute('open',''); vmDom.open = true; vmDom.returnValue = null; diff --git a/dev/View/User/MailBox/MessageView.js b/dev/View/User/MailBox/MessageView.js index b30b5eda3..c50bb8a7b 100644 --- a/dev/View/User/MailBox/MessageView.js +++ b/dev/View/User/MailBox/MessageView.js @@ -66,7 +66,7 @@ export class MailMessageView extends AbstractViewRight { const /** * @param {Function} fExecute - * @param {(Function|boolean|null)=} fCanExecute = true + * @param {Function} fCanExecute = true * @returns {Function} */ createCommand = (fExecute, fCanExecute) => { diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Themes.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Themes.php index c64aaef6b..45d63cf66 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Themes.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Themes.php @@ -125,5 +125,6 @@ trait Themes \str_replace('@{base}', $sBase, \implode("\n", $mResult))); return $bLess ? (new \LessPHP\lessc())->compile($mResult) : $mResult; +// : \str_replace(';}', '}', \preg_replace('/\\s*([:;{},])\\s*/', '\1', \preg_replace('/\\s+/', ' ', \preg_replace('#/\\*.*?\\*/#s', '', $mResult)))); } } diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Api.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Api.php index 6b14e8908..aa69ba039 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Api.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Api.php @@ -92,10 +92,7 @@ class Api $sSslCapath = static::Config()->Get('ssl', 'capath', ''); Utils::$CookieDefaultPath = static::Config()->Get('labs', 'cookie_default_path', ''); - if (static::Config()->Get('labs', 'cookie_default_secure', false)) - { - Utils::$CookieDefaultSecure = true; - } + Utils::$CookieDefaultSecure = !!static::Config()->Get('labs', 'cookie_default_secure', false); if (!empty($sSslCafile) || !empty($sSslCapath)) { diff --git a/snappymail/v/0.0.0/themes/example.css b/snappymail/v/0.0.0/themes/example.css index 78d8eb033..8e1cd8975 100644 --- a/snappymail/v/0.0.0/themes/example.css +++ b/snappymail/v/0.0.0/themes/example.css @@ -3,23 +3,23 @@ /* MAIN */ --main-color: #333; --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-repeat: repeat; --link-color: #369; /* LOADING */ - --loading-color: #000; /* #ddd */ - --loading-text-shadow: none; /* 0px 1px 0px rgba(0, 0, 0, 0.5); */ + --loading-color: #000; + --loading-text-shadow: none; /* 0px 1px 0px rgba(0, 0, 0, 0.5); */ /* LOGIN */ --login-color: #555; --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-radius: 7px; - --login-gradient-start: none; /* #f4f4f4 */ - --login-gradient-end: none; /* #dfdfdf */ + --login-gradient-start: none; /* #f4f4f4 */ + --login-gradient-end: none; /* #dfdfdf */ --spinner-color: #fff; @@ -51,8 +51,8 @@ /* MESSAGE LIST */ --message-list-toolbar-bg-color: #eee; - --message-list-toolbar-gradient-start: none; /* #f4f4f4 */ - --message-list-toolbar-gradient-end: none; /* #dfdfdf */ + --message-list-toolbar-gradient-start: none; /* #f4f4f4 */ + --message-list-toolbar-gradient-end: none; /* #dfdfdf */ /* MESSAGE */ --message-bg-color: #fff;