Skip to content

Commit

Permalink
Add method.
Browse files Browse the repository at this point in the history
  • Loading branch information
milanowicz committed Oct 15, 2020
1 parent 68bd644 commit 96b62ae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CSSSassCollectionMixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@
}
}

@mixin BoxSquare ($Size) {
width: $Size;
height: $Size;
}

@mixin Height ($Height) {
height: $Height !important;
}
Expand Down
15 changes: 15 additions & 0 deletions test/_helper.spec.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
}
}

@include it('check BoxSquare output') {
@include assert {
@include output {
@include BoxSquare(100%);
@include BoxSquare(95px);
}
@include expect {
width: 100%;
height: 100%;
width: 95px;
height: 95px;
}
}
}

@include it('check Height output') {
@include assert {
@include output {
Expand Down

0 comments on commit 96b62ae

Please sign in to comment.