一键导入
mint-css-zindex
Z-index scale and layering system for proper element stacking. Use for managing modal overlays, dropdowns, popups, and other layered elements.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Z-index scale and layering system for proper element stacking. Use for managing modal overlays, dropdowns, popups, and other layered elements.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Accordion component with collapsible sections. Use for FAQs, nested content, or expandable details sections.
Button component with variants, sizes, loading states, and icon support. Use when creating clickable actions, forms, or navigation buttons.
Calendar component for date and month selection. Use when building date pickers, scheduling interfaces, or date range selectors.
Carousel component for image/content sliders with navigation controls. Use for image galleries, hero sections, or content that scrolls horizontally.
Checkbox component for boolean or multi-select inputs. Use when building forms with boolean toggles or multiple selection lists.
Dropdown menu component with trigger and content pattern. Use when building selectable menus, action menus, or nested navigation.
| name | mint-css-zindex |
| description | Z-index scale and layering system for proper element stacking. Use for managing modal overlays, dropdowns, popups, and other layered elements. |
/* Z-index is included in the full import */
import '@groww-tech/mint-css/dist/index.css';
/* or */
@import '@groww-tech/mint-css/dist/base/app.css';
The design system defines a z-index hierarchy:
| Element | Z-Index Value | Usage |
|---|---|---|
maxValue | 10001 | Maximum value (use sparingly) |
| snackbar | 900 | Toast notifications |
| popup | 800 | Modal dialogs, popups |
| video playback | 700 | Video player controls |
| sidebar | 600 | Side navigation |
| Header | 500 | Sticky headers |
| dropdown | 400 | Dropdown menus |
| fix bottom btn | 300 | Fixed bottom buttons |
:root {
--zindex-snackbar: 900;
--zindex-popup: 800;
--zindex-video: 700;
--zindex-sidebar: 600;
--zindex-header: 500;
--zindex-dropdown: 400;
--zindex-fixed-bottom: 300;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 800; /* popup */
}
.modal-content {
position: relative;
z-index: 801; /* Above overlay */
}
.dropdown-trigger {
position: relative;
z-index: 400;
}
.dropdown-menu {
position: absolute;
z-index: 401; /* Above trigger */
}
.header {
position: sticky;
top: 0;
z-index: 500;
}
.dropdown-menu {
z-index: 501; /* Above header when open */
}
.toast {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 900;
}
.sidebar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
z-index: 600;
}
.modal-overlay {
z-index: 800;
/* Sidebar is covered by modal */
}
/* Lowest to highest */
body { z-index: 1; }
.fixed-bottom { z-index: 300; }
.dropdown { z-index: 400; }
.header { z-index: 500; }
.sidebar { z-index: 600; }
.video-player { z-index: 700; }
.modal-overlay { z-index: 800; }
.toast { z-index: 900; }
.max-element { z-index: 10001; }
/* A dropdown inside a modal should appear above the modal content */
.modal {
z-index: 800;
}
.modal .dropdown {
z-index: 801; /* Above modal */
}
/* But below the modal's close button if needed */
.modal .dropdown {
z-index: 800; /* Below close button */
}
.modal .close-button {
z-index: 802;
}
.header {
z-index: 500;
}
.header .dropdown {
/* Automatically above header content */
z-index: 501;
}
.modal {
z-index: 800;
}
.modal .tooltip {
/* Above modal */
z-index: 801;
}
.sidebar {
z-index: 600;
}
.sidebar .popover {
z-index: 601;
}