From e65b6337f8e9c57a93e641511dc79c6b5ca998ff Mon Sep 17 00:00:00 2001 From: moisseev Date: Wed, 22 Jul 2020 18:51:17 +0300 Subject: [PATCH] [Minor] CSS clean up - remove unused declarations - use Bootstrap classes --- interface/css/rspamd.css | 56 ---------------------------------------- interface/index.html | 38 +++++++++++++-------------- 2 files changed, 19 insertions(+), 75 deletions(-) diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index 8f0262645..af410a3bb 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -104,10 +104,6 @@ textarea { } /* local overrides */ -.navbar-brand { - margin-left: auto !important; - padding: 0; -} .navbar-brand > img { height: 50px; } @@ -115,20 +111,6 @@ textarea { border-top-right-radius: .25rem !important; border-bottom-right-radius: .25rem !important; } -.chart-content { - text-align: center; -} -.chart { - height: 400px; - margin: 0 auto; - text-align: center; - background: #fff; - display: flex; - justify-content: center; -} -.chart svg { - flex: none; -} .notice { display: none; } @@ -257,12 +239,6 @@ table#symbolsTable input[type="number"] { .stat-box .widget strong { font-size: 26px; } -.nomargin { - margin: 0 !important; -} -.nopadding { - padding: 0 !important; -} /* Symbols coloring */ .symbol-default { @@ -318,16 +294,6 @@ table#symbolsTable input[type="number"] { margin-right: 9px; } -#throughput div.card-body { - text-align: center; -} -#throughput div.card-body > div { - display: inline-block; -} -#throughput div.card-body div.row { - background: #fff; -} - /* RRD summary */ #summary-row { padding-left: 80px; @@ -416,9 +382,6 @@ table#symbolsTable input[type="number"] { } #row-main { - display: flex; - flex-wrap: wrap; - clear: both; margin-left: -17.5px; margin-right: -17.5px; } @@ -438,9 +401,6 @@ table#symbolsTable input[type="number"] { transition: all 0.3s ease; transition-property: flex-basis, max-width, width; } -#content label { - font-weight: normal; -} .sidebar { padding: 8px; @@ -467,20 +427,14 @@ table#symbolsTable input[type="number"] { .sidebar-nav { width: 20px; - border-bottom: none; } .sidebar-nav .nav-link, .sidebar-nav .nav-link:hover { border: 1px solid #ddd; - border-bottom: none; - padding-left: 1rem; - padding-right: 1rem; } #sidebar-tab-left > a, #sidebar-tab-right > a { background-color: #ffe; - padding-top: 0; - padding-bottom: 0; margin-left: 12px; margin-right: 12px; } @@ -554,18 +508,8 @@ table#symbolsTable input[type="number"] { border-radius: 0 0 calc(.25rem - 1px) 0; } -/* Dynamic width for modal */ -#modalDialog { - text-align: center; -} #modalDialog > .modal-dialog { - display: inline-block; - max-width: 100%; - text-align: left; - width: auto !important; - /* Center the modal vertically */ - margin: 0 auto; top: 50%; transform: translate(0, -50%); -webkit-transform: translate(0, -50%); diff --git a/interface/index.html b/interface/index.html index c8c05e5cc..b6dd4c502 100644 --- a/interface/index.html +++ b/interface/index.html @@ -29,7 +29,7 @@