Skip to content

Commit

Permalink
fix(objects): o-grid, prevent <figure> shrink
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Jan 24, 2023
1 parent 09a9bd7 commit ee96b93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/core-styles.base.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/objects/o-grid.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/lib/_imports/objects/o-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ Styleguide Objects.Grid
max-width: 100%;
}

/* Avoid figure size shrinking */
/* HELP: Why does this happen to figure only inside a gid? */
/* SEE: components/c-card--frontera/c-card--frontera.hbs */
.o-grid figure {
width: unset; /* undo html-elements.css */
}

/* Hide content that does exceed cell size */
.o-grid > * {
overflow: hidden;
Expand Down

0 comments on commit ee96b93

Please sign in to comment.