@andreyshpigunov/x 0.4.4 → 0.5.1
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/assets/css/app.css +1 -1
- package/assets/js/app.js +1 -1
- package/cheatsheet.html +18 -14
- package/dist/x.css +1 -1
- package/dist/x.js +1 -1
- package/index.html +102 -102
- package/package.json +1 -1
- package/src/components/x/animate.js +1 -1
- package/src/components/x/buttons.css +191 -187
- package/src/components/x/colors.css +57 -35
- package/src/components/x/dropdown.css +127 -123
- package/src/components/x/dropdown.js +19 -19
- package/src/components/x/flex.css +141 -137
- package/src/components/x/flow.css +35 -31
- package/src/components/x/form.css +97 -93
- package/src/components/x/grid.css +99 -94
- package/src/components/x/helpers.css +915 -912
- package/src/components/x/icons.css +40 -36
- package/src/components/x/lib.js +4 -4
- package/src/components/x/links.css +63 -59
- package/src/components/x/modal.css +218 -214
- package/src/components/x/modal.js +23 -23
- package/src/components/x/reset.css +166 -162
- package/src/components/x/scroll.css +77 -71
- package/src/components/x/sheets.css +6 -2
- package/src/components/x/slider.css +74 -70
- package/src/components/x/space.css +30 -26
- package/src/components/x/sticky.css +18 -14
- package/src/components/x/sticky.js +5 -5
- package/src/components/x/typo.css +208 -205
- package/src/css/x.css +20 -17
|
@@ -13,112 +13,117 @@ All right reserved.
|
|
|
13
13
|
.grid > .c[1-12]/[1-12] (s,m,l,xl) - columns range for content
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
.grid { display: grid }
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
grid
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@for $m from 12 to $i {
|
|
27
|
-
& > .c$(i)\/$(m) { grid-column: $(i) / calc($(m) + 1) }
|
|
28
|
-
}
|
|
29
|
-
}
|
|
17
|
+
@layer grid {
|
|
18
|
+
|
|
19
|
+
.grid { display: grid }
|
|
20
|
+
|
|
21
|
+
[class*=grid] {
|
|
22
|
+
width: 100%;
|
|
23
|
+
grid-template-columns: repeat(12, 1fr);
|
|
24
|
+
grid-auto-flow: dense;
|
|
30
25
|
|
|
31
|
-
@media (min-width: 640px) {
|
|
32
26
|
@for $i from 1 to 12 {
|
|
33
|
-
&.
|
|
34
|
-
& > .
|
|
27
|
+
&.g$(i) { grid-template-columns: repeat($(i), 1fr) }
|
|
28
|
+
& > .c$(i) { grid-column: span $(i) }
|
|
35
29
|
@for $m from 12 to $i {
|
|
36
|
-
& > .
|
|
30
|
+
& > .c$(i)\/$(m) { grid-column: $(i) / calc($(m) + 1) }
|
|
37
31
|
}
|
|
38
32
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
|
|
34
|
+
@media (min-width: 640px) {
|
|
35
|
+
@for $i from 1 to 12 {
|
|
36
|
+
&.s\:g$(i) { grid-template-columns: repeat($(i), 1fr) }
|
|
37
|
+
& > .s\:c$(i) { grid-column: span $(i) }
|
|
38
|
+
@for $m from 12 to $i {
|
|
39
|
+
& > .s\:c$(i)\/$(m) { grid-column: $(i) / calc($(m) + 1) }
|
|
40
|
+
}
|
|
47
41
|
}
|
|
48
42
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
43
|
+
|
|
44
|
+
@media (min-width: 768px) {
|
|
45
|
+
@for $i from 1 to 12 {
|
|
46
|
+
&.m\:g$(i) { grid-template-columns: repeat($(i), 1fr) }
|
|
47
|
+
& > .m\:c$(i) { grid-column: span $(i) }
|
|
48
|
+
@for $m from 12 to $i {
|
|
49
|
+
& > .m\:c$(i)\/$(m) { grid-column: $(i) / calc($(m) + 1) }
|
|
50
|
+
}
|
|
57
51
|
}
|
|
58
52
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
|
|
54
|
+
@media (min-width: 1024px) {
|
|
55
|
+
@for $i from 1 to 12 {
|
|
56
|
+
&.l\:g$(i) { grid-template-columns: repeat($(i), 1fr) }
|
|
57
|
+
& > .l\:c$(i) { grid-column: span $(i) }
|
|
58
|
+
@for $m from 12 to $i {
|
|
59
|
+
& > .l\:c$(i)\/$(m) { grid-column: $(i) / calc($(m) + 1) }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (min-width: 1280px) {
|
|
65
|
+
@for $i from 1 to 12 {
|
|
66
|
+
&.xl\:g$(i) { grid-template-columns: repeat($(i), 1fr) }
|
|
67
|
+
& > .xl\:c$(i) { grid-column: span $(i) }
|
|
68
|
+
@for $m from 12 to $i {
|
|
69
|
+
& > .xl\:c$(i)\/$(m) { grid-column: $(i) / calc($(m) + 1) }
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.
|
|
73
|
-
.
|
|
74
|
-
.
|
|
75
|
-
.
|
|
76
|
-
.
|
|
77
|
-
.
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
74
|
+
|
|
75
|
+
.jss { justify-self: start }
|
|
76
|
+
.jse { justify-self: end }
|
|
77
|
+
.jsc { justify-self: center }
|
|
78
|
+
.jsstr { justify-self: stretch }
|
|
79
|
+
.ass { align-self: start }
|
|
80
|
+
.ase { align-self: end }
|
|
81
|
+
.asc { align-self: center }
|
|
82
|
+
.asstr { align-self: stretch }
|
|
83
|
+
|
|
84
|
+
@media (min-width: 640px) {
|
|
85
|
+
.s\:jss { justify-self: start }
|
|
86
|
+
.s\:jse { justify-self: end }
|
|
87
|
+
.s\:jsc { justify-self: center }
|
|
88
|
+
.s\:jsstr { justify-self: stretch }
|
|
89
|
+
.s\:ass { align-self: start }
|
|
90
|
+
.s\:ase { align-self: end }
|
|
91
|
+
.s\:asc { align-self: center }
|
|
92
|
+
.s\:asstr { align-self: stretch }
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (min-width: 768px) {
|
|
96
|
+
.m\:jss { justify-self: start }
|
|
97
|
+
.m\:jse { justify-self: end }
|
|
98
|
+
.m\:jsc { justify-self: center }
|
|
99
|
+
.m\:jsstr { justify-self: stretch }
|
|
100
|
+
.m\:ass { align-self: start }
|
|
101
|
+
.m\:ase { align-self: end }
|
|
102
|
+
.m\:asc { align-self: center }
|
|
103
|
+
.m\:asstr { align-self: stretch }
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (min-width: 1024px) {
|
|
107
|
+
.l\:jss { justify-self: start }
|
|
108
|
+
.l\:jse { justify-self: end }
|
|
109
|
+
.l\:jsc { justify-self: center }
|
|
110
|
+
.l\:jsstr { justify-self: stretch }
|
|
111
|
+
.l\:ass { align-self: start }
|
|
112
|
+
.l\:ase { align-self: end }
|
|
113
|
+
.l\:asc { align-self: center }
|
|
114
|
+
.l\:asstr { align-self: stretch }
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
@media (min-width: 1280px) {
|
|
119
|
+
.xl\:jss { justify-self: start }
|
|
120
|
+
.xl\:jse { justify-self: end }
|
|
121
|
+
.xl\:jsc { justify-self: center }
|
|
122
|
+
.xl\:jsstr { justify-self: stretch }
|
|
123
|
+
.xl\:ass { align-self: start }
|
|
124
|
+
.xl\:ase { align-self: end }
|
|
125
|
+
.xl\:asc { align-self: center }
|
|
126
|
+
.xl\:asstr { align-self: stretch }
|
|
127
|
+
}
|
|
114
128
|
|
|
115
|
-
@media (min-width: 1280px) {
|
|
116
|
-
.xl\:jss { justify-self: start }
|
|
117
|
-
.xl\:jse { justify-self: end }
|
|
118
|
-
.xl\:jsc { justify-self: center }
|
|
119
|
-
.xl\:jsstr { justify-self: stretch }
|
|
120
|
-
.xl\:ass { align-self: start }
|
|
121
|
-
.xl\:ase { align-self: end }
|
|
122
|
-
.xl\:asc { align-self: center }
|
|
123
|
-
.xl\:asstr { align-self: stretch }
|
|
124
129
|
}
|