-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add: menambahkan overflow saya menambahkan overflow * fix: memperbaiki prefix dan node modules
- Loading branch information
1 parent
e6d177c
commit 5e249f8
Showing
6 changed files
with
388 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
@import "paddings"; | ||
@import "margins"; | ||
|
||
@import "overflow"; | ||
@import "display"; | ||
|
||
@import "flexbox"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@mixin overflow($sumbu: false, $prefix: "") { | ||
$overflow: (auto, hidden, scroll, visible) !default; | ||
|
||
@if $sumbu == false { | ||
@each $value in $overflow { | ||
.#{$prefix}overflow-#{$value} { | ||
overflow: $value; | ||
} | ||
} | ||
} @else { | ||
@if $sumbu == x { | ||
@each $value in $overflow { | ||
.#{$prefix}overflow-x-#{$value} { | ||
overflow-x: $value; | ||
} | ||
} | ||
} | ||
@if $sumbu == y { | ||
@each $value in $overflow { | ||
.#{$prefix}overflow-y-#{$value} { | ||
overflow-y: $value; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@include overflow(); | ||
|
||
@include overflow($sumbu: x); | ||
@include overflow($sumbu: y); | ||
|
||
@each $key, $value in $breakpoints { | ||
$prefix: $key + "\\:"; | ||
@include screen($key) { | ||
@include overflow($prefix: $prefix); | ||
|
||
@include overflow($sumbu: x, $prefix: $prefix); | ||
@include overflow($sumbu: y, $prefix: $prefix); | ||
} | ||
} |