Debian Codegraph @

sass-spec/spec/libsass/bourbon/lib/css3/_flex-box.scss

raw
1 // CSS3 Flexible Box Model and property defaults
2
3 // Custom shorthand notation for flexbox
4 @mixin box($orient: inline-axis, $pack: start, $align: stretch) {
5 @include display-box;
6 @include box-orient($orient);
7 @include box-pack($pack);
8 @include box-align($align);
9 }
10
11 @mixin display-box {
12 display: -webkit-box;
13 display: -moz-box;
14 display: box;
15 }
16
17 @mixin box-orient($orient: inline-axis) {
18 // horizontal|vertical|inline-axis|block-axis|inherit
19 @include prefixer(box-orient, $orient, webkit moz spec);
20 }
21
22 @mixin box-pack($pack: start) {
23 // start|end|center|justify
24 @include prefixer(box-pack, $pack, webkit moz spec);
25 }
26
27 @mixin box-align($align: stretch) {
28 // start|end|center|baseline|stretch
29 @include prefixer(box-align, $align, webkit moz spec);
30 }
31
32 @mixin box-direction($direction: normal) {
33 // normal|reverse|inherit
34 @include prefixer(box-direction, $direction, webkit moz spec);
35 }
36
37 @mixin box-lines($lines: single) {
38 // single|multiple
39 @include prefixer(box-lines, $lines, webkit moz spec);
40 }
41
42 @mixin box-ordinal-group($int: 1) {
43 @include prefixer(box-ordinal-group, $int, webkit moz spec);
44 }
45
46 @mixin box-flex($value: 0.0) {
47 @include prefixer(box-flex, $value, webkit moz spec);
48 }
49
50 @mixin box-flex-group($int: 1) {
51 @include prefixer(box-flex-group, $int, webkit moz spec);
52 }