Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonmaur committed Jul 9, 2022
1 parent fdc55be commit 9426045
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/generators/aspect-ratio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Aspect Ratio

`.aspect-auto`
`.aspect-square`
`.aspect-video`
5 changes: 5 additions & 0 deletions lib/generators/aspect-ratio/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@mixin render($pre, $app) {
.#{$pre}aspect-auto#{$app} { aspect-ratio: auto; }
.#{$pre}aspect-square#{$app} { aspect-ratio: 1 / 1; }
.#{$pre}aspect-video#{$app} { aspect-ratio: 16 / 9; }
}
5 changes: 5 additions & 0 deletions lib/generators/container/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Container

A component for fixing an element's width to the current breakpoint.

`.container`
14 changes: 14 additions & 0 deletions lib/generators/container/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@use "../../config";
@use "../../forward/media";

@mixin render($pre, $app) {
.#{$pre}container#{$app} {
width: 100%;

@each $key, $value in config.$screens {
@include media.media-up-to($key) {
max-width: $value;
}
}
}
}

0 comments on commit 9426045

Please sign in to comment.