Skip to content

Commit

Permalink
Add Utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Jan 27, 2024
1 parent 892e786 commit b7faebc
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/zui/src/css/_layouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@
.box-1 {
padding: var(--s1);
}

.center {
margin-inline: auto;
}

.flex {
display: flex;
}
44 changes: 44 additions & 0 deletions apps/zui/src/css/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit b7faebc

Please sign in to comment.