Skip to content

Commit

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

@mixin Height ($Height) {
height: $Height !important;
}

@mixin Width ($Width) {
width: $Width !important;
}

@mixin BoxShadow ($Arguments) {
-webkit-box-shadow: $Arguments;
-moz-box-shadow: $Arguments;
Expand Down
26 changes: 26 additions & 0 deletions test/_helper.spec.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,32 @@
}
}

@include it('check Height output') {
@include assert {
@include output {
@include Height(95%);
@include Height(95px);
}
@include expect {
height: 95% !important;
height: 95px !important;
}
}
}

@include it('check Width output') {
@include assert {
@include output {
@include Width(95%);
@include Width(95px);
}
@include expect {
width: 95% !important;
width: 95px !important;
}
}
}

@include it('check BoxShadow output') {
@include assert {
$Arguments: 1px solid;
Expand Down

0 comments on commit 68bd644

Please sign in to comment.