Skip to content

Commit

Permalink
feat(clay-css): Utilities .c-inner should inherit sizing styles fro…
Browse files Browse the repository at this point in the history
…m parent

feat(clay-css): Utilities adds Sass map `$c-inner` which uses mixin `clay-css`

issue #2763
  • Loading branch information
pat270 authored and marcoscv-work committed Feb 17, 2020
1 parent 81ea040 commit 7dd8f58
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clay-css/src/scss/components/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@

@if ($enable-c-inner) {
.c-inner {
outline: 0;
@include clay-css($c-inner);
}
}

Expand Down
22 changes: 22 additions & 0 deletions packages/clay-css/src/scss/variables/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,28 @@ $close: map-deep-merge((
lexicon-icon-margin-top: 0
), $close);

// C Inner

$c-inner: () !default;
$c-inner: map-deep-merge((
align-items: inherit,
display: inherit,
flex-direction: inherit,
height: inherit,
justify-content: inherit,
line-height: inherit,
max-width: inherit,
min-width: inherit,
outline: 0,
overflow: inherit,
padding-bottom: inherit,
padding-left: inherit,
padding-right: inherit,
padding-top: inherit,
text-overflow: inherit,
width: inherit,
), $c-inner);

// Heading

$heading-spacer-x: 1rem !default; // 16px
Expand Down

0 comments on commit 7dd8f58

Please sign in to comment.