@enigmatry/scss-foundation 17.0.0-preview.5.1 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/index.html +1 -1
- package/docs/modules/README.md +19 -19
- package/docs/modules/absolute-positioning.md +28 -28
- package/docs/modules/alignment.md +45 -45
- package/docs/modules/background-hover.md +18 -18
- package/docs/modules/border-radius.md +19 -19
- package/docs/modules/breakpoints.md +27 -27
- package/docs/modules/fixed-positioning.md +28 -28
- package/docs/modules/grid.md +46 -46
- package/docs/modules/row-coloring.md +23 -23
- package/docs/modules/text-hover.md +18 -18
- package/docs/modules/text-modification.md +27 -27
- package/docs/modules/visibility.md +27 -27
- package/docs/partials/README.md +14 -14
- package/docs/partials/alignment.md +15 -15
- package/docs/partials/cursor.md +13 -13
- package/docs/partials/resize.md +9 -9
- package/docs/partials/text-control.md +11 -11
- package/docs/partials/visibility.md +9 -9
- package/jest.config.js +21 -21
- package/package.json +24 -24
- package/src/modules/_index.scss +7 -7
- package/src/modules/_map.scss +53 -53
- package/src/modules/_variables.scss +11 -11
- package/src/modules/borders/_border-radius.scss +10 -10
- package/src/modules/display/_items.scss +21 -21
- package/src/modules/layout/_grid-core.scss +53 -53
- package/src/modules/layout/_grid.scss +98 -98
- package/src/modules/layout/_index.scss +1 -1
- package/src/modules/lists/_row-coloring.scss +12 -12
- package/src/modules/position/_absolute.scss +8 -8
- package/src/modules/position/_fixed.scss +8 -8
- package/src/modules/position/_index.scss +2 -2
- package/src/modules/position/_set-position.scss +24 -24
- package/src/modules/responsiveness/_breakpoints.scss +55 -55
- package/src/modules/states/_hover.scss +6 -6
- package/src/modules/states/_index.scss +1 -1
- package/src/modules/states/_visibility.scss +15 -15
- package/src/modules/text/_hover.scss +6 -6
- package/src/modules/text/_index.scss +1 -1
- package/src/modules/text/_modification.scss +29 -29
- package/src/partials/core/_index.scss +2 -2
- package/src/partials/core/fonts/_text-control.scss +10 -10
- package/src/partials/core/layouts/_alignment.scss +21 -21
- package/src/partials/core/states/_cursors.scss +10 -10
- package/src/partials/core/states/_index.scss +2 -2
- package/src/partials/core/states/_resize.scss +2 -2
- package/src/partials/core/states/_visibility.scss +2 -2
- package/tests/display/items.tests.scss +99 -99
- package/tests/layout/grid-core.tests.scss +115 -115
- package/tests/layout/grid.tests.scss +1154 -1154
- package/tests/lists/row-coloring.tests.scss +51 -51
- package/tests/position/absolute.tests.scss +67 -67
- package/tests/position/fixed.tests.scss +67 -67
- package/tests/position/set-position.tests.scss +64 -64
- package/tests/shim.test.js +13 -13
- package/tests/text/modification.tests.scss +20 -20
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@use 'fonts';
|
|
2
|
-
@use 'layouts';
|
|
1
|
+
@use 'fonts';
|
|
2
|
+
@use 'layouts';
|
|
3
3
|
@use 'states';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.first-letter-capitalized {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
|
|
4
|
-
&::first-letter {
|
|
5
|
-
text-transform: capitalize;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.capitalized {
|
|
10
|
-
text-transform: uppercase;
|
|
1
|
+
.first-letter-capitalized {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
|
|
4
|
+
&::first-letter {
|
|
5
|
+
text-transform: capitalize;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.capitalized {
|
|
10
|
+
text-transform: uppercase;
|
|
11
11
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@use '../../../modules/display/items';
|
|
2
|
-
|
|
3
|
-
.space-between {
|
|
4
|
-
@include items.fully-align(center, space-between);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.align-center {
|
|
8
|
-
@include items.align-absolute-center();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.align-right {
|
|
12
|
-
@include items.fully-align(center, flex-end);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.align-vertical {
|
|
16
|
-
@include items.align(center);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.stack-vertical {
|
|
20
|
-
@include items.fully-align(baseline, space-between, column, nowrap);
|
|
21
|
-
}
|
|
1
|
+
@use '../../../modules/display/items';
|
|
2
|
+
|
|
3
|
+
.space-between {
|
|
4
|
+
@include items.fully-align(center, space-between);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.align-center {
|
|
8
|
+
@include items.align-absolute-center();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.align-right {
|
|
12
|
+
@include items.fully-align(center, flex-end);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.align-vertical {
|
|
16
|
+
@include items.align(center);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.stack-vertical {
|
|
20
|
+
@include items.fully-align(baseline, space-between, column, nowrap);
|
|
21
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.clickable {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.draggable {
|
|
6
|
-
cursor: grab;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.forbidden {
|
|
10
|
-
cursor: not-allowed;
|
|
1
|
+
.clickable {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.draggable {
|
|
6
|
+
cursor: grab;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.forbidden {
|
|
10
|
+
cursor: not-allowed;
|
|
11
11
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@use 'cursors';
|
|
2
|
-
@use 'visibility';
|
|
1
|
+
@use 'cursors';
|
|
2
|
+
@use 'visibility';
|
|
3
3
|
@use 'resize';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.no-resize {
|
|
2
|
-
resize: none;
|
|
1
|
+
.no-resize {
|
|
2
|
+
resize: none;
|
|
3
3
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.hidden {
|
|
2
|
-
display: none;
|
|
1
|
+
.hidden {
|
|
2
|
+
display: none;
|
|
3
3
|
}
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
@use 'sass-true/sass/true';
|
|
2
|
-
@use '../../src/modules/display/items';
|
|
3
|
-
|
|
4
|
-
@include true.describe('align($align)') {
|
|
5
|
-
@include true.it('should be centered. if direction not provided then it should be flex-start') {
|
|
6
|
-
@include true.assert() {
|
|
7
|
-
@include true.output() {
|
|
8
|
-
@include items.align(center);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@include true.expect() {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex: {
|
|
14
|
-
direction: row;
|
|
15
|
-
wrap: wrap;
|
|
16
|
-
}
|
|
17
|
-
align-items: center;
|
|
18
|
-
justify-content: flex-start;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@include true.describe('align-absolute-center()') {
|
|
25
|
-
@include true.it('should be centered') {
|
|
26
|
-
@include true.assert() {
|
|
27
|
-
@include true.output() {
|
|
28
|
-
@include items.align-absolute-center();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@include true.expect() {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex: {
|
|
34
|
-
direction: row;
|
|
35
|
-
wrap: wrap;
|
|
36
|
-
}
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@include true.describe('align-center()') {
|
|
45
|
-
@include true.it('should set default values and align centered') {
|
|
46
|
-
@include true.assert() {
|
|
47
|
-
@include true.output() {
|
|
48
|
-
@include items.align-center();
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@include true.expect() {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex: {
|
|
54
|
-
direction: row;
|
|
55
|
-
wrap: wrap;
|
|
56
|
-
}
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: flex-start;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@include true.describe('fully-align($align, $justify, $direction $wrap)') {
|
|
65
|
-
@include true.it('should set default values and align baseline') {
|
|
66
|
-
@include true.assert() {
|
|
67
|
-
@include true.output() {
|
|
68
|
-
@include items.fully-align(baseline);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@include true.expect() {
|
|
72
|
-
display: flex;
|
|
73
|
-
flex: {
|
|
74
|
-
direction: row;
|
|
75
|
-
wrap: wrap;
|
|
76
|
-
}
|
|
77
|
-
align-items: baseline;
|
|
78
|
-
justify-content: flex-start;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@include true.it('should set properties in given order') {
|
|
84
|
-
@include true.assert() {
|
|
85
|
-
@include true.output() {
|
|
86
|
-
@include items.fully-align(flex-end, space-between, column, nowrap);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@include true.expect() {
|
|
90
|
-
display: flex;
|
|
91
|
-
flex: {
|
|
92
|
-
direction: column;
|
|
93
|
-
wrap: nowrap;
|
|
94
|
-
}
|
|
95
|
-
align-items: flex-end;
|
|
96
|
-
justify-content: space-between;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
1
|
+
@use 'sass-true/sass/true';
|
|
2
|
+
@use '../../src/modules/display/items';
|
|
3
|
+
|
|
4
|
+
@include true.describe('align($align)') {
|
|
5
|
+
@include true.it('should be centered. if direction not provided then it should be flex-start') {
|
|
6
|
+
@include true.assert() {
|
|
7
|
+
@include true.output() {
|
|
8
|
+
@include items.align(center);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@include true.expect() {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex: {
|
|
14
|
+
direction: row;
|
|
15
|
+
wrap: wrap;
|
|
16
|
+
}
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include true.describe('align-absolute-center()') {
|
|
25
|
+
@include true.it('should be centered') {
|
|
26
|
+
@include true.assert() {
|
|
27
|
+
@include true.output() {
|
|
28
|
+
@include items.align-absolute-center();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include true.expect() {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex: {
|
|
34
|
+
direction: row;
|
|
35
|
+
wrap: wrap;
|
|
36
|
+
}
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include true.describe('align-center()') {
|
|
45
|
+
@include true.it('should set default values and align centered') {
|
|
46
|
+
@include true.assert() {
|
|
47
|
+
@include true.output() {
|
|
48
|
+
@include items.align-center();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include true.expect() {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex: {
|
|
54
|
+
direction: row;
|
|
55
|
+
wrap: wrap;
|
|
56
|
+
}
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@include true.describe('fully-align($align, $justify, $direction $wrap)') {
|
|
65
|
+
@include true.it('should set default values and align baseline') {
|
|
66
|
+
@include true.assert() {
|
|
67
|
+
@include true.output() {
|
|
68
|
+
@include items.fully-align(baseline);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include true.expect() {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex: {
|
|
74
|
+
direction: row;
|
|
75
|
+
wrap: wrap;
|
|
76
|
+
}
|
|
77
|
+
align-items: baseline;
|
|
78
|
+
justify-content: flex-start;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include true.it('should set properties in given order') {
|
|
84
|
+
@include true.assert() {
|
|
85
|
+
@include true.output() {
|
|
86
|
+
@include items.fully-align(flex-end, space-between, column, nowrap);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@include true.expect() {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex: {
|
|
92
|
+
direction: column;
|
|
93
|
+
wrap: nowrap;
|
|
94
|
+
}
|
|
95
|
+
align-items: flex-end;
|
|
96
|
+
justify-content: space-between;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
100
|
}
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
/* stylelint-disable selector-max-attribute */
|
|
2
|
-
/* stylelint-disable csstools/use-nesting */
|
|
3
|
-
/* stylelint-disable shorthand-property-no-redundant-values */
|
|
4
|
-
/* stylelint-disable max-nesting-depth */
|
|
5
|
-
/* stylelint-disable at-rule-allowed-list */
|
|
6
|
-
$custom-breakpoints: () !default;
|
|
7
|
-
|
|
8
|
-
@use 'sass-true/sass/true';
|
|
9
|
-
@use '../../src/modules/variables' as vars;
|
|
10
|
-
|
|
11
|
-
@forward '../../src/modules/layout/grid' with (
|
|
12
|
-
$breakpoints: vars.$custom-breakpoints
|
|
13
|
-
);
|
|
14
|
-
@use '../../src/modules/responsiveness/breakpoints' as custom-breakpoints;
|
|
15
|
-
@use '../../src/modules/layout/grid-core';
|
|
16
|
-
|
|
17
|
-
@include true.describe('generate($column-prefix, $offset-prefix, $spacing)') {
|
|
18
|
-
@include true.it('should generate column and offset classes. If spacing not provided, padding should be 0.') {
|
|
19
|
-
@include true.assert() {
|
|
20
|
-
@include true.output() {
|
|
21
|
-
@include grid-core.generate('col-', 'offset-');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@include true.expect() {
|
|
25
|
-
.row {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-wrap: wrap;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.row [class *= 'col-'], .row [class *= 'offset-'] {
|
|
31
|
-
box-sizing: border-box;
|
|
32
|
-
flex-shrink: 0;
|
|
33
|
-
max-width: 100%;
|
|
34
|
-
padding: 0 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.col-auto {
|
|
38
|
-
flex: 0 0 auto;
|
|
39
|
-
width: auto;
|
|
40
|
-
padding: 0 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@include true.describe('generate($column-prefix, $offset-prefix, $spacing)') {
|
|
48
|
-
@include true.it('should generate column and offset classes with prefixes column- and gap-. Spacing should be 8px.') {
|
|
49
|
-
@include true.assert() {
|
|
50
|
-
@include true.output() {
|
|
51
|
-
@include grid-core.generate('column-', 'gap-', 8px);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@include true.expect() {
|
|
55
|
-
.row {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-wrap: wrap;
|
|
58
|
-
margin: 0 -8px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.row [class *= 'column-'], .row [class *= 'gap-'] {
|
|
62
|
-
box-sizing: border-box;
|
|
63
|
-
flex-shrink: 0;
|
|
64
|
-
max-width: 100%;
|
|
65
|
-
padding: 0 8px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.column-auto {
|
|
69
|
-
flex: 0 0 auto;
|
|
70
|
-
width: auto;
|
|
71
|
-
padding: 0 8px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@include true.describe('generate-reverse-row($breakpoints)') {
|
|
79
|
-
@include true.it('should generate revert row classes for a given breakpoint') {
|
|
80
|
-
@include true.assert() {
|
|
81
|
-
@include true.output() {
|
|
82
|
-
@include grid-core.generate-reverse-row(custom-breakpoints.$breakpoints);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@include true.expect() {
|
|
86
|
-
@media only screen and (width >= 540px) {
|
|
87
|
-
.row.reverse-row-sm {
|
|
88
|
-
flex-direction: row-reverse;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@media only screen and (width >= 800px) {
|
|
93
|
-
.row.reverse-row-md {
|
|
94
|
-
flex-direction: row-reverse;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.row.reverse-row-under-sm {
|
|
99
|
-
flex-direction: row-reverse;
|
|
100
|
-
|
|
101
|
-
@media only screen and (width >= 540px) {
|
|
102
|
-
flex-direction: row;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.row.reverse-row-under-md {
|
|
107
|
-
flex-direction: row-reverse;
|
|
108
|
-
|
|
109
|
-
@media only screen and (width >= 800px) {
|
|
110
|
-
flex-direction: row;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
1
|
+
/* stylelint-disable selector-max-attribute */
|
|
2
|
+
/* stylelint-disable csstools/use-nesting */
|
|
3
|
+
/* stylelint-disable shorthand-property-no-redundant-values */
|
|
4
|
+
/* stylelint-disable max-nesting-depth */
|
|
5
|
+
/* stylelint-disable at-rule-allowed-list */
|
|
6
|
+
$custom-breakpoints: () !default;
|
|
7
|
+
|
|
8
|
+
@use 'sass-true/sass/true';
|
|
9
|
+
@use '../../src/modules/variables' as vars;
|
|
10
|
+
|
|
11
|
+
@forward '../../src/modules/layout/grid' with (
|
|
12
|
+
$breakpoints: vars.$custom-breakpoints
|
|
13
|
+
);
|
|
14
|
+
@use '../../src/modules/responsiveness/breakpoints' as custom-breakpoints;
|
|
15
|
+
@use '../../src/modules/layout/grid-core';
|
|
16
|
+
|
|
17
|
+
@include true.describe('generate($column-prefix, $offset-prefix, $spacing)') {
|
|
18
|
+
@include true.it('should generate column and offset classes. If spacing not provided, padding should be 0.') {
|
|
19
|
+
@include true.assert() {
|
|
20
|
+
@include true.output() {
|
|
21
|
+
@include grid-core.generate('col-', 'offset-');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include true.expect() {
|
|
25
|
+
.row {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.row [class *= 'col-'], .row [class *= 'offset-'] {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
padding: 0 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.col-auto {
|
|
38
|
+
flex: 0 0 auto;
|
|
39
|
+
width: auto;
|
|
40
|
+
padding: 0 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include true.describe('generate($column-prefix, $offset-prefix, $spacing)') {
|
|
48
|
+
@include true.it('should generate column and offset classes with prefixes column- and gap-. Spacing should be 8px.') {
|
|
49
|
+
@include true.assert() {
|
|
50
|
+
@include true.output() {
|
|
51
|
+
@include grid-core.generate('column-', 'gap-', 8px);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include true.expect() {
|
|
55
|
+
.row {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
margin: 0 -8px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.row [class *= 'column-'], .row [class *= 'gap-'] {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
max-width: 100%;
|
|
65
|
+
padding: 0 8px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.column-auto {
|
|
69
|
+
flex: 0 0 auto;
|
|
70
|
+
width: auto;
|
|
71
|
+
padding: 0 8px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@include true.describe('generate-reverse-row($breakpoints)') {
|
|
79
|
+
@include true.it('should generate revert row classes for a given breakpoint') {
|
|
80
|
+
@include true.assert() {
|
|
81
|
+
@include true.output() {
|
|
82
|
+
@include grid-core.generate-reverse-row(custom-breakpoints.$breakpoints);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include true.expect() {
|
|
86
|
+
@media only screen and (width >= 540px) {
|
|
87
|
+
.row.reverse-row-sm {
|
|
88
|
+
flex-direction: row-reverse;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media only screen and (width >= 800px) {
|
|
93
|
+
.row.reverse-row-md {
|
|
94
|
+
flex-direction: row-reverse;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.row.reverse-row-under-sm {
|
|
99
|
+
flex-direction: row-reverse;
|
|
100
|
+
|
|
101
|
+
@media only screen and (width >= 540px) {
|
|
102
|
+
flex-direction: row;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.row.reverse-row-under-md {
|
|
107
|
+
flex-direction: row-reverse;
|
|
108
|
+
|
|
109
|
+
@media only screen and (width >= 800px) {
|
|
110
|
+
flex-direction: row;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
116
|
}
|