[icinga-checkins] icinga.org: icingaweb2/bugfix/js-close-container-8590: CSS: Avoid !important for gutter in .controls

git at icinga.org git at icinga.org
Mon Feb 22 13:38:13 CET 2016


Module: icingaweb2
Branch: bugfix/js-close-container-8590
Commit: 17d0f7be5e20c6bcd92be34b8968efdb2f9b59fe
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=17d0f7be5e20c6bcd92be34b8968efdb2f9b59fe

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Mon Feb 22 09:26:53 2016 +0100

CSS: Avoid !important for gutter in .controls

fixes #11143

---

 public/css/icinga/layout.less |   17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/public/css/icinga/layout.less b/public/css/icinga/layout.less
index 7fc0848..9b155b9 100644
--- a/public/css/icinga/layout.less
+++ b/public/css/icinga/layout.less
@@ -97,20 +97,15 @@
     & > .controls {
       z-index: 3;
 
-      > * {
-       margin-left: @gutter !important;
-       margin-right: @gutter !important;
-      }
+      padding-left: @gutter;
+      padding-right: @gutter;
 
-      > ul {
-       margin-left: 0 !important;
-       margin-right: 0 !important;
+      > .tabs {
+        // Remove gutter for tabs
+        margin-left: -1 * @gutter;
+        margin-right: -1 * @gutter;
       }
     }
-
-    // 1em gutter of containers is maintained by padding of content and margin of every element in controls. We're not
-    // setting padding to .container because else horizontally scrolled .content may overflow .controls when scrolled
-    // vertically
   }
 }
 



More information about the icinga-checkins mailing list