]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix help component z-index
authorChocobozzz <me@florianbigard.com>
Wed, 4 May 2022 07:02:50 +0000 (09:02 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 4 May 2022 07:02:59 +0000 (09:02 +0200)
client/src/app/app.component.scss
client/src/app/shared/shared-main/misc/help.component.html
client/src/app/shared/shared-main/misc/help.component.scss
client/src/sass/application.scss
client/src/sass/bootstrap.scss
client/src/sass/primeng-custom.scss
client/src/sass/z-index.scss [new file with mode: 0644]

index 4a32ad2d7ab83492532204ed64ac5ff1171dfe0b..5f3e15d8074a115b608f53c30c9b91996398303f 100644 (file)
@@ -21,7 +21,6 @@
   top: 0;
   width: 100%;
   background-color: pvar(--mainBackgroundColor);
-  z-index: z(header);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
   display: flex;
 }
index af8cb3b17a60040d82f39839138682f0baae5fe5..360a476f6202ce165beb893cbbef83f62aa36541 100644 (file)
@@ -25,7 +25,6 @@
 <span
   role="button"
   class="help-tooltip-button"
-  container="body"
   [title]="title"
   tabindex=0
   popoverClass="help-popover"
index 1427faca43268e18934aecec52da30c5d7511b96..32fafb446024b952da980800be0ab9348100d402 100644 (file)
@@ -19,7 +19,6 @@
 
 ::ng-deep {
   .help-popover {
-    z-index: z(help-popover) !important;
     max-width: 300px;
 
     .popover-body {
index 81bbfa43a809a270121e5034ed1a4964d9967a0d..84b575eb3d49c927b4c15cb0d5b3921d002441a9 100644 (file)
@@ -17,6 +17,8 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
 @import './bootstrap';
 @import './primeng-custom';
 
+@import './z-index';
+
 [hidden] {
   display: none !important;
 }
@@ -324,10 +326,6 @@ table {
   margin-top: 10px;
 }
 
-ngx-loading-bar {
-  z-index: z(header) + 1 !important;
-}
-
 @media screen and (max-width: #{breakpoint(xxl)}) {
   .main-col {
     --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
index b0a18e6f2ca59415e619aa9a2dd165170fef1394..bc37134dd12f6601148a6a8fc34f8ca8ddb9c02a 100644 (file)
@@ -58,33 +58,12 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
   }
 }
 
-/* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */
-.dropdown,
-.dropup {
-  z-index: z(dropdown) !important;
-}
-
-.list-overflow-menu,
-.parent-entry {
-  z-index: z(menu) - 1 !important;
-}
-
-.btn-group,
-.dropdown-root,
-.action-dropdown,
-.input-group-prepend,
-.column-toggle {
-  z-index: inherit !important;
-}
-
 .btn-group > .btn:not(:first-child) {
   border-top-left-radius: 0 !important;
   border-bottom-left-radius: 0 !important;
 }
 
 .dropdown-menu {
-  z-index: z(dropdown) + 1 !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;
@@ -302,22 +281,6 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
   margin: 0.3rem 0;
 }
 
-ngb-modal-backdrop {
-  z-index: z(modal) - 1 !important;
-}
-
-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-secondary {
   border-color: $input-border-color;
 
index ace0fd63aa318035380f5890adf88e2199a32dda..9fc010d4f31c938088e23e358f6ca89cba8dc12b 100644 (file)
@@ -898,7 +898,6 @@ p-toast {
     width: auto;
     max-width: 300px;
     min-width: 200px;
-    z-index: z(notification) !important;
 
     .p-toast-icon-close {
       font-family: "Glyphicons Halflings";
diff --git a/client/src/sass/z-index.scss b/client/src/sass/z-index.scss
new file mode 100644 (file)
index 0000000..e46813d
--- /dev/null
@@ -0,0 +1,69 @@
+@use '_variables' as *;
+@use '_mixins' as *;
+
+.header {
+  z-index: z(header);
+}
+
+.help-popover {
+  z-index: z(help-popover);
+}
+
+ngx-loading-bar {
+  z-index: z(header) + 1 !important;
+}
+
+/* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */
+.dropdown,
+.dropup {
+  z-index: z(dropdown) !important;
+}
+
+.list-overflow-menu,
+.parent-entry {
+  z-index: z(menu) - 1 !important;
+}
+
+.btn-group,
+.dropdown-root,
+.action-dropdown,
+.input-group-prepend,
+.column-toggle {
+  z-index: inherit !important;
+}
+
+.dropdown-menu {
+  z-index: z(dropdown) + 1 !important;
+}
+
+p-toast .p-toast {
+  z-index: z(notification) !important;
+}
+
+ngb-modal-backdrop {
+  z-index: z(modal) - 1 !important;
+}
+
+ngb-popover-window {
+  z-index: z(popover) !important;
+}
+
+ngb-tooltip-window {
+  z-index: z(tooltip) !important;
+}
+
+ngb-modal-window {
+  z-index: z(modal) !important;
+
+  ngb-tooltip-window {
+    z-index: z(modal + 1) !important;
+  }
+
+  ngb-popover-window {
+    z-index: z(modal + 1) !important;
+  }
+
+  .help-popover {
+    z-index: z(modal + 1) !important;
+  }
+}