From aea2f30ffe7ca5b1aaa621a578433c3db7673385 Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Wed, 25 Sep 2019 09:43:10 +0800 Subject: [PATCH] fix: sticky compatibility issue --- _sass/yat/_base.scss | 4 ++++ 1 file changed, 4 insertions(+) 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;