mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Improve Z-Indexes for Notifications / Menus / Toolbar (#13494)
* Fix: zIndexes of Menu's and Notifications + add overview of the currently used z-indexes * fix markdown
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
top: -24px;
|
top: -24px;
|
||||||
z-index: 999;
|
z-index: 998;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
width: 350px;
|
width: 350px;
|
||||||
z-index: 1400; // 1400 is above modal backgrounds
|
z-index: 999;
|
||||||
|
|
||||||
top: var(--current-scrollY);
|
top: var(--current-scrollY);
|
||||||
|
|
||||||
|
|||||||
14
website/client/src/components/z-index-overview.md
Normal file
14
website/client/src/components/z-index-overview.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# List of the current zIndexes
|
||||||
|
|
||||||
|
|Type|zIndex|File|
|
||||||
|
|:-|:-|:-|
|
||||||
|
|Progress Bar|1600|app.vue|
|
||||||
|
|Create App Menu|999|create-task.scss|
|
||||||
|
|Loading Screen|1050|loading-screen.scss|
|
||||||
|
|Modals|1350|modal.scss|
|
||||||
|
|Toolbar (Habitica Menu)|1080|menu.vue|
|
||||||
|
|Toolbar (Habitica Menu), when a Modal is opened|1035||
|
||||||
|
|Top Banner (above Toolbar)|1300|base.vue|
|
||||||
|
|Top Banner (above Toolbar), when a Modal is opened|1035|
|
||||||
|
|Toolbar Dropdown|1000|.dropdown-menu|
|
||||||
|
|Notifications|999|notifications.vue|
|
||||||
Reference in New Issue
Block a user