Files
postfixadmin/public/css/dark-theme.css
T
Rodrigo Cortés Cano dcf9318d27 Fix 4.0.x UI layout and Spanish i18n issues (#1077)
This PR contains corrective UI and Spanish i18n fixes for the 4.0.x
branch.

Fixes included:
- Fix domain list layout stability by adding explicit column classes and
widths.
- Fix horizontal overflow in the domain list so wide tables remain
usable on smaller screens.
- Fix quota bar rendering consistency in domain and mailbox listings.
- Fix action buttons in list views by using compact icon buttons with
title and aria-label attributes.
- Fix top menu spacing and labels so the navigation remains readable in
constrained widths.
- Fix untranslated dashboard/global search labels by adding language
strings.
- Fix Spanish labels and wording used by the affected 4.0.x screens.
- Fix the total quota label shown in the domain list.

Thanks @TrapoSAMA
2026-07-13 08:47:57 +01:00

253 lines
6.9 KiB
CSS
Executable File

@import url(bootstrap-3.4.1-dist/css/bootstrap.min.css);
@import url(bootstrap-3.4.1-dist/css/bootstrap-datetimepicker.min.css);
:root{
--c1:#333;
--c11:#222;
--c2:#ccc;
--c3:#555;
--c31:#777;
--c4:#ba1bd0;
--c5:#dfgfgd;
--c6:#111;
}
body {
background-color: var(--c1);
color: var(--c11)
}
.navbar-default {
background-color: var(--c1);
border-color: var(--c3);
}
.navbar-default .navbar-nav > li a{
color: var(--c2);
}
.navbar-default .navbar-nav > li a:hover{
color: var(--c31);
}
.btn-default {
color: var(--c2);
background-color: var(--c11);
border-color: var(--c31);
}
.btn-default:hover {
color: var(--c31);
background-color: var(--c2);
border-color: var(--c31);
}
.panel, .panel-default{
background-color:var(--c11)
}
.panel-default {
border-color: var(--c3);
}
.panel-default .btn-primary {
width: 15em;
}
.panel-default > .panel-heading {
color: var(--c11);
background-color: var(--c3);
border-color: var(--c1);
}
.panel-footer {
background-color: var(--c11);
}
.control-label{
color: var(--c1);
}
.dropdown-menu{
background-color:var(--c31);
}
.navbar-nav > li > .dropdown-menu {
background-color: var(--c1);
}
.dropdown-menu > li:hover{
background-color: var(--c6);
}
.btn-warning{
color: var(--11);
}
td{
color: var(--c31);
}
#admin_table tr:hover{
background-color:var(--c1);
}
#admin_table tr{
color:var(--c31);
}
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:focus, .navbar-default .navbar-nav > .open > a:hover {
color: var(--c11);
background-color: var(--c31);
}
.form-control{
background-color: var(--c31)
}
.mr {
margin-right: 5px;
}
.ml {
margin-left: 5px;
}
body > .container {
padding: 10px 15px 0;
}
.well{
max-width: 35em;
background-color: var(--c5);
}
button, input, select, textarea {
border-color: transparent;
}
.table > tr > td > btn-primary{
min-width: 10em;
}
.panel-body > .text-center{
color:var(--c3);
}
.panel-body > .text-center li{
list-style:none;
}
.footer > .container {
padding-right: 15px;
padding-left: 15px;
}
.footer { font-size: 10px; line-height: 30px; }
@media (min-width: 768px) {
.footer { font-size: 12px; line-height: 60px; }
}
code {
font-size: 80%;
}
.navbar-header a.navbar-brand { padding-top: 0; padding-bottom: 0; }
@media (min-width: 768px) {
.navbar-fixed-top .container-fluid .navbar-collapse { font-size: 12px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 5px; padding-right: 5px; }
.navbar-fixed-top .container-fluid .navbar-right { font-size: 11px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { padding: 5px; }
.navbar-header a.navbar-brand { padding: 0; }
}
@media (min-width: 992px) {
.navbar-header a.navbar-brand { padding: 0 15px; }
.navbar-fixed-top .container-fluid .navbar-collapse { font-size: 14px; }
.navbar-fixed-top .container-fluid .navbar-right { font-size: 12px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 8px; padding-right: 8px; }
.navbar-fixed-top .container-fluid .navbar-right { padding-right: 5px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 5px; padding: 5px 10px; }
}
@media (min-width: 1200px) {
.navbar-fixed-top .container-fluid .navbar-right a { font-size: 14px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 8px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 10px; padding-right: 10px; }
}
span.active { font-weight: bold; }
/* Unified quota bars used by the domain overview and mailbox list. */
.quota_bar {
position: relative;
display: inline-block;
box-sizing: border-box;
min-width: 122px;
height: 16px;
overflow: hidden;
background-color: white;
border: 1px solid #999;
line-height: 14px;
text-align: center;
vertical-align: middle;
white-space: nowrap;
}
.quota_fill { position: absolute; z-index: 1; top: 0; right: auto; bottom: 0; left: 0; max-width: 100%; }
.quota_label { position: relative; z-index: 2; display: block; height: 14px; padding: 0 4px; font-size: 12px; color: #666; cursor: default; }
.quota_no_border { min-width: 0; background: transparent; border: none; }
.quota_high { background: url(../images/quota-colors.png) repeat-x 0 -28px #f90509; }
.quota_mid { background: url(../images/quota-colors.png) repeat-x 0 -14px #e3e909; }
.quota_low { background: url(../images/quota-colors.png) repeat-x 0 0px #05f905; }
.quota_text_high { color: white; }
.quota_text_mid { color: #666; }
.quota_text_low { color: #666; }
/* Domain list column sizing. */
#admin_table th.list-col-domain,
#admin_table td.list-col-domain { min-width: 180px; }
#admin_table th.list-col-description,
#admin_table td.list-col-description { min-width: 120px; }
#admin_table th.list-col-aliases_quot,
#admin_table td.list-col-aliases_quot,
#admin_table th.list-col-mailboxes_quot,
#admin_table td.list-col-mailboxes_quot { width: 138px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-maxquota,
#admin_table td.list-col-maxquota { width: 80px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-total_quot,
#admin_table td.list-col-total_quot { width: 142px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-transport,
#admin_table td.list-col-transport { width: 80px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-backupmx,
#admin_table td.list-col-backupmx { width: 62px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-active,
#admin_table td.list-col-active { width: 70px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-modified,
#admin_table td.list-col-modified { width: 110px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-password_expiry,
#admin_table td.list-col-password_expiry { width: 64px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-action,
#admin_table td.list-col-action { width: 46px; text-align: center; white-space: nowrap; }
#admin_table .list-action-icon,
#mailbox_table .list-action-icon { width: 34px; padding-left: 0; padding-right: 0; }
.domain-list-scroll { display: block; width: 100%; overflow-x: auto; }
.domain-list-scroll > #admin_table { min-width: 1240px; margin-bottom: 0; }
/* Keep the essential domain columns and actions visible before scrolling. */
.domain-list-scroll > #admin_table th.list-col-total_quot,
.domain-list-scroll > #admin_table th.list-col-password_expiry { white-space: normal; line-height: 1.2; }
@media (max-width: 1300px) {
.domain-list-scroll > #admin_table .list-col-modified { display: none; }
.domain-list-scroll > #admin_table { min-width: 1120px; }
}
@media (max-width: 1200px) {
.domain-list-scroll > #admin_table .list-col-backupmx { display: none; }
.domain-list-scroll > #admin_table { min-width: 1060px; }
}
@media (max-width: 1120px) {
.domain-list-scroll > #admin_table .list-col-transport { display: none; }
.domain-list-scroll > #admin_table { min-width: 980px; }
}