mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-09 06:34:28 +08:00
Fixes cPanel CSS issue #697
This commit is contained in:
parent
0d7ffcb0a5
commit
e067079f8a
5 changed files with 19 additions and 8 deletions
|
@ -0,0 +1,3 @@
|
|||
url: "/3rdparty/snappymail/"
|
||||
displayname: "SnappyMail"
|
||||
icon: "/3rdparty/snappymail/snappymail/v/2.22.1/static/logo-text.png"
|
|
@ -16,6 +16,14 @@ class LoginRemotePlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
public function Init() : void
|
||||
{
|
||||
$this->addPartHook('RemoteAutoLogin', 'ServiceRemoteAutoLogin');
|
||||
$this->addHook('filter.app-data', 'FilterAppData');
|
||||
}
|
||||
|
||||
public function FilterAppData($bAdmin, &$aResult)
|
||||
{
|
||||
if (!$bAdmin && \is_array($aResult) && empty($aResult['Auth']) && isset($_ENV['REMOTE_USER'])) {
|
||||
$aResult['DevEmail'] = $this->Config()->Get('plugin', 'email', $_ENV['REMOTE_USER']);
|
||||
}
|
||||
}
|
||||
|
||||
public function ServiceRemoteAutoLogin() : bool
|
||||
|
|
|
@ -172,7 +172,7 @@ input, textarea, .select, select, .emailaddresses {
|
|||
color: #fff;
|
||||
}
|
||||
.select, select {
|
||||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='10px' width='15px'><text x='0' y='10' fill='rgb(255,255,255)'>▾</text></svg>");
|
||||
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMTBweCcgd2lkdGg9JzE1cHgnPjx0ZXh0IHg9JzAnIHk9JzEwJyBmaWxsPSdyZ2IoMjU1LDI1NSwyNTUpJz7ilr48L3RleHQ+PC9zdmc+);
|
||||
}
|
||||
|
||||
hr {
|
||||
|
|
|
@ -45,6 +45,11 @@
|
|||
|
||||
/* MESSAGE LIST */
|
||||
--message-list-toolbar-bg-color: #222;
|
||||
|
||||
/* FORMS */
|
||||
--input-clr: #fff;
|
||||
--input-bg-clr: #000;
|
||||
--input-border-clr: #aaa;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
|
@ -144,13 +149,8 @@
|
|||
background: linear-gradient(#555 0%, #000 100%);
|
||||
}
|
||||
|
||||
input, textarea, .select, select, .emailaddresses {
|
||||
background-color: #000;
|
||||
border-color: #aaa;
|
||||
color: #fff;
|
||||
}
|
||||
.select, select {
|
||||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='10px' width='15px'><text x='0' y='10' fill='rgb(255,255,255)'>▾</text></svg>");
|
||||
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMTBweCcgd2lkdGg9JzE1cHgnPjx0ZXh0IHg9JzAnIHk9JzEwJyBmaWxsPSdyZ2IoMjU1LDI1NSwyNTUpJz7ilr48L3RleHQ+PC9zdmc+);
|
||||
}
|
||||
|
||||
hr {
|
||||
|
|
2
vendors/bootstrap/less/forms.less
vendored
2
vendors/bootstrap/less/forms.less
vendored
|
@ -83,7 +83,7 @@ select, .select {
|
|||
// Safari requires -webkit-
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
background: var(--input-bg-clr, #fff) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='10px' width='15px'><text x='0' y='10' fill='rgb(85,85,85)'>▾</text></svg>") right center/1em no-repeat border-box;
|
||||
background: var(--input-bg-clr, #fff) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMTBweCcgd2lkdGg9JzE1cHgnPjx0ZXh0IHg9JzAnIHk9JzEwJyBmaWxsPSdyZ2IoODUsODUsODUpJz7ilr48L3RleHQ+PC9zdmc+) right center/1em no-repeat border-box;
|
||||
border: 1px solid var(--input-border-clr, #ccc);
|
||||
cursor: pointer;
|
||||
padding-right: 1.5em;
|
||||
|
|
Loading…
Add table
Reference in a new issue