Skip to content

Commit

Permalink
Fixes cPanel CSS issue #697
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Nov 24, 2022
1 parent 0d7ffcb commit e067079
Show file tree
Hide file tree
Showing 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"
8 changes: 8 additions & 0 deletions plugins/login-remote/index.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion snappymail/v/0.0.0/themes/SnowDarkV1/styles.css
Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions snappymail/v/0.0.0/themes/SquaresDark/styles.css
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion vendors/bootstrap/less/forms.less
Expand Up @@ -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;
Expand Down

0 comments on commit e067079

Please sign in to comment.