_mixins.sass
1.08 KB
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
41
42
43
44
=flex ($direction, $justify, $align, $wrap)
display: flex
flex-direction: $direction
justify-content: $justify
align-items: $align
flex-wrap: $wrap
=border-box
box-sizing: border-box
-moz-box-sizing: border-box
-webkit-box-sizing: border-box
// Figma xs shadow
=box-shadow-xs
box-shadow: 0 1px 2px rgba( 16, 24, 40, 0.05 )
// Figma lg shadow
=box-shadow-lg
box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03)
// Figma md shadow
=box-shadow-md
box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06)
=transition ($time, $action)
-webkit-transition: $time $action
-moz-transition: $time $action
-ms-transition: $time $action
-o-transition: $time $action
transition: $time $action
=keyframes ($name)
@-webkit-keyframes #{$name}
@content
@-moz-keyframes #{$name}
@content
@-ms-keyframes #{$name}
@content
@keyframes #{$name}
@content
=border-radius ($tl, $tr, $br, $bl)
border-radius: $tl $tr $br $bl
-moz-border-radius: $tl $tr $br $bl
-webkit-border-radius: $tl $tr $br $bl