Skip to content

Commit

Permalink
feat(grid): add 1:2 aspect ratio class (carbon-design-system#2858)
Browse files Browse the repository at this point in the history
* feat(grid): add 1:2 aspect ratio class

* chore: typo

* chore(project): sync generated files
  • Loading branch information
alisonjoseph authored and joshblack committed May 28, 2019
1 parent f1dd241 commit 43c9446
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,9 @@ exports[`_grid.scss grid--x should generate grid code when the grid feature flag
.bx--aspect-ratio--1x1 {
padding-bottom: 100%; }
.bx--aspect-ratio--1x2 {
padding-bottom: 200%; }
"
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
/// @type List
/// @access public
/// @group @carbon/grid
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1));
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1), (1, 2));

/// Output the CSS classes for generating aspect ratio classes
/// @param {List} $aspect-ratios [$carbon--aspect-ratios] - A list of aspect ratios to generate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
/// @type List
/// @access public
/// @group @carbon/grid
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1));
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1), (1, 2));

/// Output the CSS classes for generating aspect ratio classes
/// @param {List} $aspect-ratios [$carbon--aspect-ratios] - A list of aspect ratios to generate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
/// @type List
/// @access public
/// @group @carbon/grid
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1));
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1), (1, 2));

/// Output the CSS classes for generating aspect ratio classes
/// @param {List} $aspect-ratios [$carbon--aspect-ratios] - A list of aspect ratios to generate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
/// @type List
/// @access public
/// @group @carbon/grid
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1));
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1), (1, 2));

/// Output the CSS classes for generating aspect ratio classes
/// @param {List} $aspect-ratios [$carbon--aspect-ratios] - A list of aspect ratios to generate
Expand Down
2 changes: 1 addition & 1 deletion packages/elements/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ in code
<summary>Source code</summary>

```scss
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1));
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1), (1, 2));
```

</details>
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ in code
<summary>Source code</summary>

```scss
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1));
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1), (1, 2));
```

</details>
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
/// @type List
/// @access public
/// @group @carbon/grid
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1));
$carbon--aspect-ratios: ((16, 9), (2, 1), (4, 3), (1, 1), (1, 2));

/// Output the CSS classes for generating aspect ratio classes
/// @param {List} $aspect-ratios [$carbon--aspect-ratios] - A list of aspect ratios to generate
Expand Down

0 comments on commit 43c9446

Please sign in to comment.