diff options
author | moisseev <moiseev@mezonplus.ru> | 2020-06-20 19:59:34 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2020-06-20 19:59:34 +0300 |
commit | 68956878f6e0b35b5d7994cb5d7db713cec9f660 (patch) | |
tree | e9056e843f4e84078d147c7d3c6295ba5171caa5 /interface/css | |
parent | 187785857ff3dd0c9ed42be3f627c081ca10f289 (diff) | |
download | rspamd-68956878f6e0b35b5d7994cb5d7db713cec9f660.tar.gz rspamd-68956878f6e0b35b5d7994cb5d7db713cec9f660.zip |
[WebUI] Add selectors reference
Diffstat (limited to 'interface/css')
-rw-r--r-- | interface/css/rspamd.css | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index c7335e558..e8ed19381 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -493,6 +493,99 @@ input.radio { width: 1% !important; } +#row-main { + margin-top: -12px; + margin-bottom: -12px; + display: flex; + flex-wrap: wrap; + /* necessary to hide collapsed sidebar */ + overflow-x: hidden; +} +@media (min-width: 992px) { + #content > div { + display: flex; + } +} +#content { + transition: width 0.3s ease; +} #content label { font-weight: normal; } + +.sidebar { + padding: 8px; + background-color: #ffe; + transition: margin 0.3s ease; +} +.sidebar > div.table-responsive { + max-height: 610px; + background-color: white; +} +.collapsed { + /* hide it for small displays */ + display: none; +} +@media (min-width: 992px) { + .collapsed { + display: block; + } + #sidebar-left.collapsed { + /* same width as sidebar */ + margin-left: -25%; + } + #sidebar-right.collapsed { + /* same width as sidebar */ + margin-right: -25%; + } +} + +.sidebar-nav { + width: 20px; + border-bottom: none; +} +#sidebar-tab-left > a, +#sidebar-tab-right > a { + background-color: #ffe; + padding-top: 0; + padding-bottom: 0; + margin-left: 12px; + margin-right: 12px; +} +#sidebar-tab-left { + transform: rotate(180deg); +} +#sidebar-tab-text-left { + transform: rotate(180deg); +} +@media (min-width: 992px) { + .sidebar-nav { + margin-left: -2px; + margin-right: -2px; + } + #content { + border-left: 1px solid #ddd; + border-right: 1px solid #ddd; + } + #sidebar-tab-left { + transform: translateX(-50%) rotate(90deg) translate(50%, -50%); + } + #sidebar-tab-right { + float: right; + transform: translateX(50%) rotate(-90deg) translate(-50%, -50%); + } +} +@media (max-width: 991.98px) { + .sidebar-nav { + margin-top: -2px; + margin-bottom: -2px; + } + #content { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + } + #sidebar-tab-right { + bottom: 0; + right: 0; + } +} |