mirror of
https://github.com/CoderSherlock/CoderSherlock.github.io.git
synced 2026-06-13 08:08:10 -07:00
Updated to new theme of TeXt
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
@mixin overflow($overflow: auto, $direction: default) {
|
||||
@if $direction == default {
|
||||
overflow: $overflow;
|
||||
} @else if $direction == "x" {
|
||||
@if $overflow == auto {
|
||||
overflow: hidden;
|
||||
}
|
||||
overflow-x: $overflow;
|
||||
} @else if $direction == "y" {
|
||||
@if $overflow == auto {
|
||||
overflow: hidden;
|
||||
}
|
||||
overflow-y: $overflow;
|
||||
}
|
||||
@if $overflow == auto {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
|
||||
.of-auto {
|
||||
@include overflow(auto);
|
||||
}
|
||||
|
||||
.of-hidden {
|
||||
@include overflow(hidden);
|
||||
}
|
||||
Reference in New Issue
Block a user