]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add notifications popover and tooltips to the z-index table
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 18 Feb 2020 11:01:08 +0000 (12:01 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Tue, 18 Feb 2020 11:01:08 +0000 (12:01 +0100)
client/src/sass/bootstrap.scss
client/src/sass/include/_bootstrap-variables.scss
client/src/sass/include/_variables.scss

index e10b8459635dc69938cc01ad8dd448ec0f7d4018..6cced995e27fe4f9d34ec7b80eee2cff34509acc 100644 (file)
@@ -22,11 +22,13 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
   }
 }
 
-.dropdown {
+/* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */
+.dropdown:not(.btn-group) {
   z-index: z(dropdown) !important;
 }
 
 .dropdown-menu {
+  z-index: z(dropdown) !important;
   border-radius: 3px;
   box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
   font-size: 15px;
@@ -187,6 +189,14 @@ ngb-modal-window {
   z-index: z(modal) !important;
 }
 
+ngb-popover-window {
+  z-index: z(popover) !important;
+}
+
+ngb-tooltip-window {
+  z-index: z(tooltip) !important;
+}
+
 .btn-outline-tertiary {
   color: var(--secondaryColor);
   border-color: var(--secondaryColor);
index b3ab0eb2b6b3586f3be437727502dad14a88e22f..d536eac8663a76dfa79f99c944a3d5effbce6e7b 100644 (file)
@@ -1,6 +1,5 @@
 $dropdown-link-active-bg: inherit;
 
-$zindex-modal: 10005;
 $modal-footer-border-width: 0;
 $modal-md: 600px;
 
@@ -31,6 +30,3 @@ $input-focus-border-color: #ced4da;
 
 $nav-pills-link-active-bg: #F0F0F0;
 $nav-pills-link-active-color: #000;
-
-$zindex-dropdown: 10000;
-$zindex-popover: 10000;
index 3fb8bb625d290c623996463fd8bc21d79130ff6d..0c37cd68ac2f746a24a865259df93fb0f6f0e80e 100644 (file)
@@ -104,13 +104,15 @@ $variables: (
 $zindex: (
   header       :  1000,
   /* header context */
-  headerLeft :    10,
+  headerLeft   :    10,
   menu         : 11000,
   dropdown     : 12000,
-  loadbar      : 13000,
-  modal        : 14000,
-  notification : 15000,
-  hotkeys      : 16000
+  popover      : 13000,
+  tooltip      : 14000,
+  loadbar      : 15000,
+  modal        : 16000,
+  notification : 17000,
+  hotkeys      : 18000
 );
 
 @function z($label) {