-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorganism.aside.styl
40 lines (37 loc) · 1017 Bytes
/
organism.aside.styl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[data-atoms=app]
> [data-organism-aside]
background: DARK
width: ASIDE_WIDTH
&.active
z-index: 0
&:not(.active)
z-index: -1
& [data-organism-header]
background-color: darken(DARK, 10%)
&[data-screen=small] > [data-organism-aside]
vendor(animation-duration, ANIMATION_DURATION)
vendor(animation-timing-function, ANIMATION_EASE)
&.active
&[data-state="in"]
&:not(.right)
vendor(animation-name, aside-in)
&.right
vendor(animation-name, aside-in-right)
&[data-state="out"]
&:not(.right)
vendor(animation-name, aside-in)
&.right
vendor(animation-name, aside-in-right)
vendor(animation-direction, reverse)
vendor(animation-fill-mode, forwards)
TRANSLATE = -25%
@keyframes aside-in
0%
transform: translateX(TRANSLATE)
100%
transform: translateX(0)
@keyframes aside-in-right
0%
transform: translateX(-(TRANSLATE))
100%
transform: translateX(0)