Skip to content

Commit

Permalink
[BUGFIX] fixing loop of responsive icon classes - order wasn't the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Annez committed Oct 31, 2016
1 parent 07634d6 commit 318d869
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/ustyle-icons.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ustyle.json

Large diffs are not rendered by default.

31 changes: 22 additions & 9 deletions vendor/assets/stylesheets/ustyle/icons/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -221,29 +221,42 @@
$width: nth($size, 2);
$height: nth($size, 3);

@include respond-to(to-small-tablet) {
.us-icon--#{$size-name},
.us-icon--#{$size-name}--after:after,
.us-icon--#{$size-name}--before:before {
width: $width;
height: $height;
}
}

@include respond-to(to-small-tablet) {
@each $size in $icon-sizes {
$size-name: nth($size, 1);
$width: nth($size, 2);
$height: nth($size, 3);

.us-icon--#{$size-name}--sm-tablet,
.us-icon--#{$size-name}--after--sm-tablet:after,
.us-icon--#{$size-name}--before--sm-tablet:before {
width: $width;
height: $height;
}
}
}

@include respond-to(mobile) {
@each $size in $icon-sizes {
$size-name: nth($size, 1);
$width: nth($size, 2);
$height: nth($size, 3);

@include respond-to(mobile) {
.us-icon--#{$size-name}--mobile,
.us-icon--#{$size-name}--after--mobile:after,
.us-icon--#{$size-name}--before--mobile:before {
width: $width;
height: $height;
}
}

.us-icon--#{$size-name},
.us-icon--#{$size-name}--after:after,
.us-icon--#{$size-name}--before:before {
width: $width;
height: $height;
}
}
}

0 comments on commit 318d869

Please sign in to comment.