Skip to content

Commit

Permalink
Fixes #1105 - ClayCSS: Mixin clay-text-typography and option to pas…
Browse files Browse the repository at this point in the history
…s in display, max-width, and word-wrap properties
  • Loading branch information
pat270 authored and Carlos Lancha committed Sep 19, 2018
1 parent 54a7a1c commit 97a3661
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/clay-css/src/scss/mixins/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@

@mixin clay-text-typography($map) {
$color: map-get($map, color);
$display: map-get($map, display);
$font-family: map-get($map, font-family);
$font-size: map-get($map, font-size);
$font-weight: map-get($map, font-weight);
Expand All @@ -154,15 +155,18 @@
$margin-left: map-get($map, margin-left);
$margin-right: map-get($map, margin-right);
$margin-top: map-get($map, margin-top);
$max-width: map-get($map, max-width);
$padding-bottom: map-get($map, padding-bottom);
$padding-left: map-get($map, padding-left);
$padding-right: map-get($map, padding-right);
$padding-top: map-get($map, padding-top);
$text-transform: map-get($map, text-transform);
$word-wrap: map-get($map, word-wrap);

$clay-link: setter(map-get($map, clay-link), ());

color: $color;
display: $display;
font-family: $font-family;
font-size: $font-size;
font-weight: $font-weight;
Expand All @@ -172,11 +176,13 @@
margin-left: $margin-left;
margin-right: $margin-right;
margin-top: $margin-top;
max-width: $max-width;
padding-bottom: $padding-bottom;
padding-left: $padding-left;
padding-right: $padding-right;
padding-top: $padding-top;
text-transform: $text-transform;
word-wrap: $word-wrap;

a {
@include clay-link($clay-link);
Expand Down

0 comments on commit 97a3661

Please sign in to comment.