-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Aspect Ratio | ||
|
||
`.aspect-auto` | ||
`.aspect-square` | ||
`.aspect-video` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} | ||
} |