From 12d65c7743ffe0cc73f86b93bc1cb406c70c687d Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Tue, 23 Jul 2024 12:33:50 +0200 Subject: [PATCH] :sparkles: Add z-index tokens to the ds --- frontend/src/app/main/ui/ds/z-index.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 frontend/src/app/main/ui/ds/z-index.scss diff --git a/frontend/src/app/main/ui/ds/z-index.scss b/frontend/src/app/main/ui/ds/z-index.scss new file mode 100644 index 000000000..4d0e6c592 --- /dev/null +++ b/frontend/src/app/main/ui/ds/z-index.scss @@ -0,0 +1,21 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. +// +// Copyright (c) KALEIDOS INC + +$z-index-auto: auto; +$z-index-100: 100; +$z-index-200: 200; +$z-index-300: 300; +$z-index-400: 400; +$z-index-500: 500; + +:global(:root) { + --z-index-auto: #{$z-index-auto}; // Index for elements such as workspace, rulers ... + --z-index-panels: #{$z-index-100}; // Index for elements such as toolbars, palettes ... + --z-index-guides: #{$z-index-200}; // Index for guides + --z-index-set: #{$z-index-300}; // Index for configuration elements like modals, color picker, grid edition elements + --z-index-dropdown: #{$z-index-400}; // Index for dropdown like elements, selects, menus, dropdowns + --z-index-notifications: #{$z-index-500}; // Index for notification +}