summaryrefslogtreecommitdiff
path: root/_sass/yat/_base.scss
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-25 09:43:10 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-25 09:43:10 +0800
commitaea2f30ffe7ca5b1aaa621a578433c3db7673385 (patch)
treec9030370bae09fc09908afe55554977530b44fa0 /_sass/yat/_base.scss
parent300e5e69326ec3377f0c1a3670efc478651dec1e (diff)
fix: sticky compatibility issue
Diffstat (limited to '_sass/yat/_base.scss')
-rw-r--r--_sass/yat/_base.scss4
1 files changed, 4 insertions, 0 deletions
diff --git a/_sass/yat/_base.scss b/_sass/yat/_base.scss
index 01b8d1a..e5fe278 100644
--- a/_sass/yat/_base.scss
+++ b/_sass/yat/_base.scss
@@ -243,6 +243,10 @@ table {
*/
@mixin flex-sticky($top) {
position: sticky;
+ position: -moz-sticky; /* <-- fix sticky compatibility issue */
+ position: -ms-sticky;
+ position: -o-sticky;
+ position: -webkit-sticky;
align-self: flex-start; /* <-- fix the sticky not work issue */
transform: scale(0.9999); /* <-- fix the sticky x overflow issue */
top: $top;