Integrate styles/animations for page alert, top bar, tab bar, off canvas

This commit is contained in:
Kristina Lim
2019-07-24 12:29:08 +08:00
parent fca82375e8
commit 6419edcb1f
2 changed files with 15 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ Darkswarm.directive "ofnPageAlert", ($timeout) ->
restrict: 'A'
scope: true
link: (scope, elem, attrs) ->
container_elems = $(".off-canvas-wrap .inner-wrap, .off-canvas-wrap .inner-wrap .fixed, .page-alert")
container_elems = $(".off-canvas-wrap .inner-wrap, .off-canvas-wrap .inner-wrap .fixed, .off-canvas-fixed .top-bar, .off-canvas-fixed ofn-flash, .off-canvas-fixed nav.tab-bar, .off-canvas-fixed .page-alert")
# Wait a moment after page load before showing the alert. Otherwise we often miss the
# start of the animation.