Skip to content

Commit

Permalink
Add a au-u-height-full utility
Browse files Browse the repository at this point in the history
This is common enough to warrant a new utility.
  • Loading branch information
Windvis committed Nov 5, 2024
1 parent f63f383 commit 7060113
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
51 changes: 51 additions & 0 deletions stories/4-utilities/Heights.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { Meta } from "@storybook/addon-docs";

<Meta title="Utilities/Heights" />

<style>{`
.sbdocs-p,
.sbdocs-ul,
.sbdocs-li,
.sbdocs-p code {
font-weight: 400;
font-size: 1.6rem;
}
.sbdocs-a {
display: inline-flex;
align-items: center;
font-family: var(--au-font);
transition: color var(--au-transition), text-decoration var(--au-transition);
font-weight: var(--au-regular);
text-decoration: underline;
text-decoration-color: var(--au-blue-300);
color: var(--au-blue-700);
}
.sbdocs-a:visited {
color: var(--au-blue-700);
}
.sbdocs-a:hover,
.sbdocs-a:focus {
color: var(--au-blue-900);
text-decoration-color: var(--au-blue-200);
}
.sbdocs-a:focus {
outline: var(--au-outline);
outline-offset: var(--au-outline-offset);
}
code {
font-family: courier, monospace;
}
.os-content {
background-color: var(--au-gray-100);
}
`}</style>

# Heights

`.au-u-height-full`: 100%
1 change: 1 addition & 0 deletions styles/_a-utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import "./utilities/u-background";
@import "./utilities/u-break-word";
@import "./utilities/u-headings";
@import "./utilities/u-heights";
@import "./utilities/u-hide";
@import "./utilities/u-flex";
@import "./utilities/u-font-family";
Expand Down
3 changes: 3 additions & 0 deletions styles/utilities/_u-heights.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.au-u-height-full {
height: 100% !important;
}

0 comments on commit 7060113

Please sign in to comment.