From b7faebce70c15ef94ae8e944bad097568cef2f02 Mon Sep 17 00:00:00 2001 From: James Kerr Date: Fri, 26 Jan 2024 16:23:27 -0800 Subject: [PATCH] Add Utilities --- apps/zui/src/css/_layouts.scss | 8 ++++++ apps/zui/src/css/_utilities.scss | 44 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/apps/zui/src/css/_layouts.scss b/apps/zui/src/css/_layouts.scss index e54451a0f5..7d83ba628d 100644 --- a/apps/zui/src/css/_layouts.scss +++ b/apps/zui/src/css/_layouts.scss @@ -118,3 +118,11 @@ .box-1 { padding: var(--s1); } + +.center { + margin-inline: auto; +} + +.flex { + display: flex; +} diff --git a/apps/zui/src/css/_utilities.scss b/apps/zui/src/css/_utilities.scss index ad321d5110..757626960c 100644 --- a/apps/zui/src/css/_utilities.scss +++ b/apps/zui/src/css/_utilities.scss @@ -9,3 +9,47 @@ .justify\:between { justify-content: space-between; } + +.align\:center { + align-items: center; +} + +.width\:viewport { + width: 100vw; +} + +.height\:viewport { + height: 100vh; +} + +.z\:1 { + z-index: 1; +} + +.z\:2 { + z-index: 2; +} + +.bg\:bg { + background-color: var(--bg-color); +} + +.bg\:backdrop { + background: rgba(0, 0, 0, var(--backdrop-transparency, 0.3)); +} + +.bg\:transparent { + background: transparent; +} + +.width\:fit { + inline-size: fit-content; +} + +.max-height\:viewport { + max-block-size: 100vh; +} + +.scroll\:y { + overflow-y: auto; +}