react-responsive-tools 2.1.3 → 2.1.4
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/package.json
CHANGED
@@ -11,19 +11,35 @@ const __dirname = path.dirname(__filename);
|
|
11
11
|
// Функция генерации SCSS содержимого для горизонтальных брейкпоинтов
|
12
12
|
const generateHorizontalSCSS = (breakpoints) => {
|
13
13
|
const beforeMixins = Object.keys(breakpoints).map(bp => `
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
/**
|
15
|
+
* Mixin for applying styles for screens greater than or equal to ${breakpoints[bp]}px.
|
16
|
+
* Usage:
|
17
|
+
*
|
18
|
+
* @include for-${bp} {
|
19
|
+
* // your styles here
|
20
|
+
* }
|
21
|
+
*/
|
22
|
+
@mixin for-${bp}() {
|
23
|
+
@include mob-first(${bp}) {
|
17
24
|
@content;
|
18
25
|
}
|
19
26
|
}`).join('\n');
|
27
|
+
|
20
28
|
const afterMixins = Object.keys(breakpoints).map(bp => `
|
21
|
-
|
22
|
-
|
23
|
-
|
29
|
+
/**
|
30
|
+
* Mixin for applying styles for screens less than ${breakpoints[bp]}px.
|
31
|
+
* Usage:
|
32
|
+
*
|
33
|
+
* @include before-${bp} {
|
34
|
+
* // your styles here
|
35
|
+
* }
|
36
|
+
*/
|
37
|
+
@mixin before-${bp}() {
|
38
|
+
@include desk-first(${bp}) {
|
24
39
|
@content;
|
25
40
|
}
|
26
41
|
}`).join('\n');
|
42
|
+
|
27
43
|
return `
|
28
44
|
@import "horizontal";
|
29
45
|
|
@@ -36,19 +52,35 @@ ${afterMixins}
|
|
36
52
|
// Функция генерации SCSS содержимого для вертикальных брейкпоинтов
|
37
53
|
const generateVerticalSCSS = (breakpoints) => {
|
38
54
|
const beforeMixins = Object.keys(breakpoints).map(bp => `
|
39
|
-
|
40
|
-
|
41
|
-
|
55
|
+
/**
|
56
|
+
* Mixin for applying styles for screens with height greater than or equal to ${breakpoints[bp]}px.
|
57
|
+
* Usage:
|
58
|
+
*
|
59
|
+
* @include v-for-${bp} {
|
60
|
+
* // your styles here
|
61
|
+
* }
|
62
|
+
*/
|
63
|
+
@mixin v-for-${bp}() {
|
64
|
+
@include v-mob-first(${bp}) {
|
42
65
|
@content;
|
43
66
|
}
|
44
67
|
}`).join('\n');
|
68
|
+
|
45
69
|
const afterMixins = Object.keys(breakpoints).map(bp => `
|
46
|
-
|
47
|
-
|
48
|
-
|
70
|
+
/**
|
71
|
+
* Mixin for applying styles for screens with height less than ${breakpoints[bp]}px.
|
72
|
+
* Usage:
|
73
|
+
*
|
74
|
+
* @include v-before-${bp} {
|
75
|
+
* // your styles here
|
76
|
+
* }
|
77
|
+
*/
|
78
|
+
@mixin v-before-${bp}() {
|
79
|
+
@include v-desk-first(${bp}) {
|
49
80
|
@content;
|
50
81
|
}
|
51
82
|
}`).join('\n');
|
83
|
+
|
52
84
|
return `
|
53
85
|
@import "vertical";
|
54
86
|
|
@@ -2,143 +2,283 @@
|
|
2
2
|
@import "horizontal";
|
3
3
|
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
/**
|
6
|
+
* Mixin for applying styles for screens greater than or equal to 320pxpx.
|
7
|
+
* Usage:
|
8
|
+
*
|
9
|
+
* @include for-xs {
|
10
|
+
* // your styles here
|
11
|
+
* }
|
12
|
+
*/
|
13
|
+
@mixin for-xs() {
|
14
|
+
@include mob-first(xs) {
|
8
15
|
@content;
|
9
16
|
}
|
10
17
|
}
|
11
18
|
|
12
|
-
|
13
|
-
|
14
|
-
|
19
|
+
/**
|
20
|
+
* Mixin for applying styles for screens greater than or equal to 576pxpx.
|
21
|
+
* Usage:
|
22
|
+
*
|
23
|
+
* @include for-sm {
|
24
|
+
* // your styles here
|
25
|
+
* }
|
26
|
+
*/
|
27
|
+
@mixin for-sm() {
|
28
|
+
@include mob-first(sm) {
|
15
29
|
@content;
|
16
30
|
}
|
17
31
|
}
|
18
32
|
|
19
|
-
|
20
|
-
|
21
|
-
|
33
|
+
/**
|
34
|
+
* Mixin for applying styles for screens greater than or equal to 768pxpx.
|
35
|
+
* Usage:
|
36
|
+
*
|
37
|
+
* @include for-md {
|
38
|
+
* // your styles here
|
39
|
+
* }
|
40
|
+
*/
|
41
|
+
@mixin for-md() {
|
42
|
+
@include mob-first(md) {
|
22
43
|
@content;
|
23
44
|
}
|
24
45
|
}
|
25
46
|
|
26
|
-
|
27
|
-
|
28
|
-
|
47
|
+
/**
|
48
|
+
* Mixin for applying styles for screens greater than or equal to 992pxpx.
|
49
|
+
* Usage:
|
50
|
+
*
|
51
|
+
* @include for-lg {
|
52
|
+
* // your styles here
|
53
|
+
* }
|
54
|
+
*/
|
55
|
+
@mixin for-lg() {
|
56
|
+
@include mob-first(lg) {
|
29
57
|
@content;
|
30
58
|
}
|
31
59
|
}
|
32
60
|
|
33
|
-
|
34
|
-
|
35
|
-
|
61
|
+
/**
|
62
|
+
* Mixin for applying styles for screens greater than or equal to 1024pxpx.
|
63
|
+
* Usage:
|
64
|
+
*
|
65
|
+
* @include for-lt {
|
66
|
+
* // your styles here
|
67
|
+
* }
|
68
|
+
*/
|
69
|
+
@mixin for-lt() {
|
70
|
+
@include mob-first(lt) {
|
36
71
|
@content;
|
37
72
|
}
|
38
73
|
}
|
39
74
|
|
40
|
-
|
41
|
-
|
42
|
-
|
75
|
+
/**
|
76
|
+
* Mixin for applying styles for screens greater than or equal to 1200pxpx.
|
77
|
+
* Usage:
|
78
|
+
*
|
79
|
+
* @include for-ltm {
|
80
|
+
* // your styles here
|
81
|
+
* }
|
82
|
+
*/
|
83
|
+
@mixin for-ltm() {
|
84
|
+
@include mob-first(ltm) {
|
43
85
|
@content;
|
44
86
|
}
|
45
87
|
}
|
46
88
|
|
47
|
-
|
48
|
-
|
49
|
-
|
89
|
+
/**
|
90
|
+
* Mixin for applying styles for screens greater than or equal to 1440pxpx.
|
91
|
+
* Usage:
|
92
|
+
*
|
93
|
+
* @include for-ltl {
|
94
|
+
* // your styles here
|
95
|
+
* }
|
96
|
+
*/
|
97
|
+
@mixin for-ltl() {
|
98
|
+
@include mob-first(ltl) {
|
50
99
|
@content;
|
51
100
|
}
|
52
101
|
}
|
53
102
|
|
54
|
-
|
55
|
-
|
56
|
-
|
103
|
+
/**
|
104
|
+
* Mixin for applying styles for screens greater than or equal to 1920pxpx.
|
105
|
+
* Usage:
|
106
|
+
*
|
107
|
+
* @include for-xl {
|
108
|
+
* // your styles here
|
109
|
+
* }
|
110
|
+
*/
|
111
|
+
@mixin for-xl() {
|
112
|
+
@include mob-first(xl) {
|
57
113
|
@content;
|
58
114
|
}
|
59
115
|
}
|
60
116
|
|
61
|
-
|
62
|
-
|
63
|
-
|
117
|
+
/**
|
118
|
+
* Mixin for applying styles for screens greater than or equal to 2560pxpx.
|
119
|
+
* Usage:
|
120
|
+
*
|
121
|
+
* @include for-xxl {
|
122
|
+
* // your styles here
|
123
|
+
* }
|
124
|
+
*/
|
125
|
+
@mixin for-xxl() {
|
126
|
+
@include mob-first(xxl) {
|
64
127
|
@content;
|
65
128
|
}
|
66
129
|
}
|
67
130
|
|
68
|
-
|
69
|
-
|
70
|
-
|
131
|
+
/**
|
132
|
+
* Mixin for applying styles for screens greater than or equal to 3840pxpx.
|
133
|
+
* Usage:
|
134
|
+
*
|
135
|
+
* @include for-qxl {
|
136
|
+
* // your styles here
|
137
|
+
* }
|
138
|
+
*/
|
139
|
+
@mixin for-qxl() {
|
140
|
+
@include mob-first(qxl) {
|
71
141
|
@content;
|
72
142
|
}
|
73
143
|
}
|
74
144
|
|
75
145
|
|
76
|
-
|
77
|
-
|
78
|
-
|
146
|
+
/**
|
147
|
+
* Mixin for applying styles for screens less than 320pxpx.
|
148
|
+
* Usage:
|
149
|
+
*
|
150
|
+
* @include before-xs {
|
151
|
+
* // your styles here
|
152
|
+
* }
|
153
|
+
*/
|
154
|
+
@mixin before-xs() {
|
155
|
+
@include desk-first(xs) {
|
79
156
|
@content;
|
80
157
|
}
|
81
158
|
}
|
82
159
|
|
83
|
-
|
84
|
-
|
85
|
-
|
160
|
+
/**
|
161
|
+
* Mixin for applying styles for screens less than 576pxpx.
|
162
|
+
* Usage:
|
163
|
+
*
|
164
|
+
* @include before-sm {
|
165
|
+
* // your styles here
|
166
|
+
* }
|
167
|
+
*/
|
168
|
+
@mixin before-sm() {
|
169
|
+
@include desk-first(sm) {
|
86
170
|
@content;
|
87
171
|
}
|
88
172
|
}
|
89
173
|
|
90
|
-
|
91
|
-
|
92
|
-
|
174
|
+
/**
|
175
|
+
* Mixin for applying styles for screens less than 768pxpx.
|
176
|
+
* Usage:
|
177
|
+
*
|
178
|
+
* @include before-md {
|
179
|
+
* // your styles here
|
180
|
+
* }
|
181
|
+
*/
|
182
|
+
@mixin before-md() {
|
183
|
+
@include desk-first(md) {
|
93
184
|
@content;
|
94
185
|
}
|
95
186
|
}
|
96
187
|
|
97
|
-
|
98
|
-
|
99
|
-
|
188
|
+
/**
|
189
|
+
* Mixin for applying styles for screens less than 992pxpx.
|
190
|
+
* Usage:
|
191
|
+
*
|
192
|
+
* @include before-lg {
|
193
|
+
* // your styles here
|
194
|
+
* }
|
195
|
+
*/
|
196
|
+
@mixin before-lg() {
|
197
|
+
@include desk-first(lg) {
|
100
198
|
@content;
|
101
199
|
}
|
102
200
|
}
|
103
201
|
|
104
|
-
|
105
|
-
|
106
|
-
|
202
|
+
/**
|
203
|
+
* Mixin for applying styles for screens less than 1024pxpx.
|
204
|
+
* Usage:
|
205
|
+
*
|
206
|
+
* @include before-lt {
|
207
|
+
* // your styles here
|
208
|
+
* }
|
209
|
+
*/
|
210
|
+
@mixin before-lt() {
|
211
|
+
@include desk-first(lt) {
|
107
212
|
@content;
|
108
213
|
}
|
109
214
|
}
|
110
215
|
|
111
|
-
|
112
|
-
|
113
|
-
|
216
|
+
/**
|
217
|
+
* Mixin for applying styles for screens less than 1200pxpx.
|
218
|
+
* Usage:
|
219
|
+
*
|
220
|
+
* @include before-ltm {
|
221
|
+
* // your styles here
|
222
|
+
* }
|
223
|
+
*/
|
224
|
+
@mixin before-ltm() {
|
225
|
+
@include desk-first(ltm) {
|
114
226
|
@content;
|
115
227
|
}
|
116
228
|
}
|
117
229
|
|
118
|
-
|
119
|
-
|
120
|
-
|
230
|
+
/**
|
231
|
+
* Mixin for applying styles for screens less than 1440pxpx.
|
232
|
+
* Usage:
|
233
|
+
*
|
234
|
+
* @include before-ltl {
|
235
|
+
* // your styles here
|
236
|
+
* }
|
237
|
+
*/
|
238
|
+
@mixin before-ltl() {
|
239
|
+
@include desk-first(ltl) {
|
121
240
|
@content;
|
122
241
|
}
|
123
242
|
}
|
124
243
|
|
125
|
-
|
126
|
-
|
127
|
-
|
244
|
+
/**
|
245
|
+
* Mixin for applying styles for screens less than 1920pxpx.
|
246
|
+
* Usage:
|
247
|
+
*
|
248
|
+
* @include before-xl {
|
249
|
+
* // your styles here
|
250
|
+
* }
|
251
|
+
*/
|
252
|
+
@mixin before-xl() {
|
253
|
+
@include desk-first(xl) {
|
128
254
|
@content;
|
129
255
|
}
|
130
256
|
}
|
131
257
|
|
132
|
-
|
133
|
-
|
134
|
-
|
258
|
+
/**
|
259
|
+
* Mixin for applying styles for screens less than 2560pxpx.
|
260
|
+
* Usage:
|
261
|
+
*
|
262
|
+
* @include before-xxl {
|
263
|
+
* // your styles here
|
264
|
+
* }
|
265
|
+
*/
|
266
|
+
@mixin before-xxl() {
|
267
|
+
@include desk-first(xxl) {
|
135
268
|
@content;
|
136
269
|
}
|
137
270
|
}
|
138
271
|
|
139
|
-
|
140
|
-
|
141
|
-
|
272
|
+
/**
|
273
|
+
* Mixin for applying styles for screens less than 3840pxpx.
|
274
|
+
* Usage:
|
275
|
+
*
|
276
|
+
* @include before-qxl {
|
277
|
+
* // your styles here
|
278
|
+
* }
|
279
|
+
*/
|
280
|
+
@mixin before-qxl() {
|
281
|
+
@include desk-first(qxl) {
|
142
282
|
@content;
|
143
283
|
}
|
144
284
|
}
|
@@ -2,87 +2,171 @@
|
|
2
2
|
@import "vertical";
|
3
3
|
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
/**
|
6
|
+
* Mixin for applying styles for screens with height greater than or equal to 600pxpx.
|
7
|
+
* Usage:
|
8
|
+
*
|
9
|
+
* @include v-for-xs {
|
10
|
+
* // your styles here
|
11
|
+
* }
|
12
|
+
*/
|
13
|
+
@mixin v-for-xs() {
|
14
|
+
@include v-mob-first(xs) {
|
8
15
|
@content;
|
9
16
|
}
|
10
17
|
}
|
11
18
|
|
12
|
-
|
13
|
-
|
14
|
-
|
19
|
+
/**
|
20
|
+
* Mixin for applying styles for screens with height greater than or equal to 800pxpx.
|
21
|
+
* Usage:
|
22
|
+
*
|
23
|
+
* @include v-for-sm {
|
24
|
+
* // your styles here
|
25
|
+
* }
|
26
|
+
*/
|
27
|
+
@mixin v-for-sm() {
|
28
|
+
@include v-mob-first(sm) {
|
15
29
|
@content;
|
16
30
|
}
|
17
31
|
}
|
18
32
|
|
19
|
-
|
20
|
-
|
21
|
-
|
33
|
+
/**
|
34
|
+
* Mixin for applying styles for screens with height greater than or equal to 1000pxpx.
|
35
|
+
* Usage:
|
36
|
+
*
|
37
|
+
* @include v-for-md {
|
38
|
+
* // your styles here
|
39
|
+
* }
|
40
|
+
*/
|
41
|
+
@mixin v-for-md() {
|
42
|
+
@include v-mob-first(md) {
|
22
43
|
@content;
|
23
44
|
}
|
24
45
|
}
|
25
46
|
|
26
|
-
|
27
|
-
|
28
|
-
|
47
|
+
/**
|
48
|
+
* Mixin for applying styles for screens with height greater than or equal to 1200pxpx.
|
49
|
+
* Usage:
|
50
|
+
*
|
51
|
+
* @include v-for-lg {
|
52
|
+
* // your styles here
|
53
|
+
* }
|
54
|
+
*/
|
55
|
+
@mixin v-for-lg() {
|
56
|
+
@include v-mob-first(lg) {
|
29
57
|
@content;
|
30
58
|
}
|
31
59
|
}
|
32
60
|
|
33
|
-
|
34
|
-
|
35
|
-
|
61
|
+
/**
|
62
|
+
* Mixin for applying styles for screens with height greater than or equal to 1600pxpx.
|
63
|
+
* Usage:
|
64
|
+
*
|
65
|
+
* @include v-for-xl {
|
66
|
+
* // your styles here
|
67
|
+
* }
|
68
|
+
*/
|
69
|
+
@mixin v-for-xl() {
|
70
|
+
@include v-mob-first(xl) {
|
36
71
|
@content;
|
37
72
|
}
|
38
73
|
}
|
39
74
|
|
40
|
-
|
41
|
-
|
42
|
-
|
75
|
+
/**
|
76
|
+
* Mixin for applying styles for screens with height greater than or equal to 1601pxpx.
|
77
|
+
* Usage:
|
78
|
+
*
|
79
|
+
* @include v-for-xxl {
|
80
|
+
* // your styles here
|
81
|
+
* }
|
82
|
+
*/
|
83
|
+
@mixin v-for-xxl() {
|
84
|
+
@include v-mob-first(xxl) {
|
43
85
|
@content;
|
44
86
|
}
|
45
87
|
}
|
46
88
|
|
47
89
|
|
48
|
-
|
49
|
-
|
50
|
-
|
90
|
+
/**
|
91
|
+
* Mixin for applying styles for screens with height less than 600pxpx.
|
92
|
+
* Usage:
|
93
|
+
*
|
94
|
+
* @include v-before-xs {
|
95
|
+
* // your styles here
|
96
|
+
* }
|
97
|
+
*/
|
98
|
+
@mixin v-before-xs() {
|
99
|
+
@include v-desk-first(xs) {
|
51
100
|
@content;
|
52
101
|
}
|
53
102
|
}
|
54
103
|
|
55
|
-
|
56
|
-
|
57
|
-
|
104
|
+
/**
|
105
|
+
* Mixin for applying styles for screens with height less than 800pxpx.
|
106
|
+
* Usage:
|
107
|
+
*
|
108
|
+
* @include v-before-sm {
|
109
|
+
* // your styles here
|
110
|
+
* }
|
111
|
+
*/
|
112
|
+
@mixin v-before-sm() {
|
113
|
+
@include v-desk-first(sm) {
|
58
114
|
@content;
|
59
115
|
}
|
60
116
|
}
|
61
117
|
|
62
|
-
|
63
|
-
|
64
|
-
|
118
|
+
/**
|
119
|
+
* Mixin for applying styles for screens with height less than 1000pxpx.
|
120
|
+
* Usage:
|
121
|
+
*
|
122
|
+
* @include v-before-md {
|
123
|
+
* // your styles here
|
124
|
+
* }
|
125
|
+
*/
|
126
|
+
@mixin v-before-md() {
|
127
|
+
@include v-desk-first(md) {
|
65
128
|
@content;
|
66
129
|
}
|
67
130
|
}
|
68
131
|
|
69
|
-
|
70
|
-
|
71
|
-
|
132
|
+
/**
|
133
|
+
* Mixin for applying styles for screens with height less than 1200pxpx.
|
134
|
+
* Usage:
|
135
|
+
*
|
136
|
+
* @include v-before-lg {
|
137
|
+
* // your styles here
|
138
|
+
* }
|
139
|
+
*/
|
140
|
+
@mixin v-before-lg() {
|
141
|
+
@include v-desk-first(lg) {
|
72
142
|
@content;
|
73
143
|
}
|
74
144
|
}
|
75
145
|
|
76
|
-
|
77
|
-
|
78
|
-
|
146
|
+
/**
|
147
|
+
* Mixin for applying styles for screens with height less than 1600pxpx.
|
148
|
+
* Usage:
|
149
|
+
*
|
150
|
+
* @include v-before-xl {
|
151
|
+
* // your styles here
|
152
|
+
* }
|
153
|
+
*/
|
154
|
+
@mixin v-before-xl() {
|
155
|
+
@include v-desk-first(xl) {
|
79
156
|
@content;
|
80
157
|
}
|
81
158
|
}
|
82
159
|
|
83
|
-
|
84
|
-
|
85
|
-
|
160
|
+
/**
|
161
|
+
* Mixin for applying styles for screens with height less than 1601pxpx.
|
162
|
+
* Usage:
|
163
|
+
*
|
164
|
+
* @include v-before-xxl {
|
165
|
+
* // your styles here
|
166
|
+
* }
|
167
|
+
*/
|
168
|
+
@mixin v-before-xxl() {
|
169
|
+
@include v-desk-first(xxl) {
|
86
170
|
@content;
|
87
171
|
}
|
88
172
|
}
|