1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | @mixin xy-grid-frame(
|
9 | $vertical: false,
|
10 | $nested: false,
|
11 | $gutters: null,
|
12 | $breakpoint: null,
|
13 | $include-base: true
|
14 | ) {
|
15 |
|
16 | @if $include-base {
|
17 | overflow: hidden;
|
18 | position: relative;
|
19 | flex-wrap: nowrap;
|
20 | align-items: stretch;
|
21 | }
|
22 |
|
23 | @if $breakpoint == null and type-of($gutters) == 'map' {
|
24 | @include -zf-each-breakpoint() {
|
25 | @include xy-grid-frame($vertical, $nested, $gutters, $-zf-size, false);
|
26 | }
|
27 | } @else {
|
28 |
|
29 | $gutter: -zf-get-bp-val($gutters, $breakpoint);
|
30 |
|
31 |
|
32 | @if $gutter {
|
33 | @if $vertical == true {
|
34 | $unit: if($nested == true, 100%, 100vh);
|
35 | $gutter: rem-calc($gutter);
|
36 | height: calc(#{$unit} + #{$gutter});
|
37 | } @else {
|
38 | $unit: if($nested == true, 100%, 100vw);
|
39 | $gutter: rem-calc($gutter);
|
40 | width: calc(#{$unit} + #{$gutter});
|
41 | }
|
42 | }
|
43 | @else {
|
44 | @if $vertical == true {
|
45 | height: if($nested == true, 100%, 100vh);
|
46 | } @else {
|
47 | width: if($nested == true, 100%, 100vw);
|
48 | }
|
49 | }
|
50 | }
|
51 | }
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | @mixin xy-cell-block(
|
57 | $vertical: false
|
58 | ) {
|
59 | $property: if($vertical == true, 'overflow-y', 'overflow-x');
|
60 |
|
61 | @if $vertical == true {
|
62 | overflow-y: auto;
|
63 | max-height: 100%;
|
64 | } @else {
|
65 | overflow-x: auto;
|
66 | max-width: 100%;
|
67 | }
|
68 |
|
69 | -webkit-overflow-scrolling: touch;
|
70 | -ms-overflow-stype: -ms-autohiding-scrollbar;
|
71 | }
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | @mixin xy-cell-block-container() {
|
77 | display: flex;
|
78 | flex-direction: column;
|
79 | max-height: 100%;
|
80 |
|
81 | > .grid-x {
|
82 | max-height: 100%;
|
83 | flex-wrap: nowrap;
|
84 | }
|
85 | }
|