@mapbox/assembly 1.2.0 → 1.4.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 +4 -0
- package/dist/assembly.css +15 -17
- package/dist/assembly.css.map +1 -1
- package/dist/assembly.js +1 -1
- package/dist/assembly.min.css +1 -1
- package/package.json +13 -13
- package/scripts/build-css.js +6 -4
- package/scripts/build-svg-loader.js +6 -5
- package/src/layout.css +1 -0
- package/src/svgs/android.svg +9 -0
- package/src/svgs/ios.svg +5 -0
- package/src/variables.json +112 -112
- package/CHANGELOG.md +0 -359
- package/src/.DS_Store +0 -0
- package/src/svgs/.DS_Store +0 -0
package/README.md
CHANGED
|
@@ -16,6 +16,10 @@ Assembly targets modern versions of Chrome, Firefox, Safari, and Edge on desktop
|
|
|
16
16
|
|
|
17
17
|
See https://labs.mapbox.com/assembly/ for usage guidelines.
|
|
18
18
|
|
|
19
|
+
## Migration
|
|
20
|
+
|
|
21
|
+
See our [`Migration guides`](https://github.com/mapbox/assembly/blob/publisher-staging/MIGRATION_GUIDES.md) to understand what changes you might need to make when upgrading Assembly in your project.
|
|
22
|
+
|
|
19
23
|
## Custom Builds
|
|
20
24
|
|
|
21
25
|
Assembly exposes a JS module for creating custom builds. Why might you want to create a custom build?
|
package/dist/assembly.css
CHANGED
|
@@ -117,8 +117,7 @@ q::after {
|
|
|
117
117
|
pre {
|
|
118
118
|
display: block;
|
|
119
119
|
white-space: pre-wrap;
|
|
120
|
-
|
|
121
|
-
tab-size: 2;
|
|
120
|
+
tab-size: 2;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
legend {
|
|
@@ -2707,17 +2706,17 @@ textarea {
|
|
|
2707
2706
|
*/
|
|
2708
2707
|
|
|
2709
2708
|
/**
|
|
2710
|
-
* Grids require at minimum two elements: A parent with the class `grid` and a child with the class `col`.
|
|
2709
|
+
* Grids require at minimum two elements: A parent with the class `grid` and a child with the class `col`. To define the width of `col` in a grid, add a width class, `col--auto`, or both. The `grid` class includes `*-mm`, `*-ml`, and `*-mxl` variations to target screen sizes.
|
|
2711
2710
|
*
|
|
2712
|
-
*
|
|
2711
|
+
* To avoid unexpected side-effects, do not add margin left or right to `grid` and do not add padding left or right to `col`.
|
|
2713
2712
|
*
|
|
2714
2713
|
* @group
|
|
2715
2714
|
* @memberof Grid
|
|
2716
2715
|
* @example
|
|
2717
2716
|
* <div class='grid'>
|
|
2718
|
-
* <div class='col border border--darken10'>one</div>
|
|
2719
|
-
* <div class='col border border--darken10'>two</div>
|
|
2720
|
-
* <div class='col border border--darken10'>three</div>
|
|
2717
|
+
* <div class='col w-1/3 border border--darken10'>one</div>
|
|
2718
|
+
* <div class='col w-1/3 border border--darken10'>two</div>
|
|
2719
|
+
* <div class='col w-1/3 border border--darken10'>three</div>
|
|
2721
2720
|
* </div>
|
|
2722
2721
|
*/
|
|
2723
2722
|
.grid {
|
|
@@ -2727,13 +2726,12 @@ textarea {
|
|
|
2727
2726
|
.col {
|
|
2728
2727
|
display: block;
|
|
2729
2728
|
max-width: 100%;
|
|
2730
|
-
flex-grow: 1;
|
|
2731
2729
|
flex-shrink: 1;
|
|
2732
2730
|
}
|
|
2733
2731
|
/** @endgroup */
|
|
2734
2732
|
|
|
2735
2733
|
/**
|
|
2736
|
-
* Apply to a `col` element to override a`col--{size}` rule and take on default `col`,occupying equal space with other `col` siblings.
|
|
2734
|
+
* Apply to a `col` element to override a`col--{size}` rule and take on default `col`, occupying equal space with other `col` siblings.
|
|
2737
2735
|
* This class is designed to be used with `*-mm`, `*-ml`, and `*-mxl` variations
|
|
2738
2736
|
* to target screen sizes.
|
|
2739
2737
|
*
|
|
@@ -2747,6 +2745,7 @@ textarea {
|
|
|
2747
2745
|
.col--auto {
|
|
2748
2746
|
width: auto !important;
|
|
2749
2747
|
flex: auto;
|
|
2748
|
+
flex-basis: 0;
|
|
2750
2749
|
}
|
|
2751
2750
|
|
|
2752
2751
|
/**
|
|
@@ -3881,13 +3880,13 @@ scripts/build-layout-scales.js to produce the output you want */
|
|
|
3881
3880
|
/** @endgroup */
|
|
3882
3881
|
|
|
3883
3882
|
/**
|
|
3884
|
-
* Apply percentage-based margin on the right.
|
|
3883
|
+
* Apply percentage-based margin on the right. When using with `col`, add a width class, `col--auto`, or both to define the size of the element.
|
|
3885
3884
|
*
|
|
3886
3885
|
* @group
|
|
3887
3886
|
* @memberof Margins
|
|
3888
3887
|
* @example
|
|
3889
3888
|
* <div class='grid'>
|
|
3890
|
-
* <div class='col mr-1/2 bg-darken10'>mr-1/2</div>
|
|
3889
|
+
* <div class='col w-1/2 mr-1/2 bg-darken10'>mr-1/2</div>
|
|
3891
3890
|
* </div>
|
|
3892
3891
|
*/
|
|
3893
3892
|
.mr-1\/12 {
|
|
@@ -4191,13 +4190,13 @@ scripts/build-layout-scales.js to produce the output you want */
|
|
|
4191
4190
|
/** @endgroup */
|
|
4192
4191
|
|
|
4193
4192
|
/**
|
|
4194
|
-
* Apply percentage-based margin on the left.
|
|
4193
|
+
* Apply percentage-based margin on the left. When using with `col`, add a width class, `col--auto`, or both to define the size of the element.
|
|
4195
4194
|
*
|
|
4196
4195
|
* @group
|
|
4197
4196
|
* @memberof Margins
|
|
4198
4197
|
* @example
|
|
4199
4198
|
* <div class='grid'>
|
|
4200
|
-
* <div class='col ml-1/2 bg-darken10'>ml-1/2</div>
|
|
4199
|
+
* <div class='col w-1/2 ml-1/2 bg-darken10'>ml-1/2</div>
|
|
4201
4200
|
* </div>
|
|
4202
4201
|
*/
|
|
4203
4202
|
.ml-1\/12 {
|
|
@@ -11215,7 +11214,6 @@ scripts/build-layout-scales.js to produce the output you want */
|
|
|
11215
11214
|
border-left-color: rgba(255, 255, 255, 0.25);
|
|
11216
11215
|
border-right-color: rgba(255, 255, 255, 0.25);
|
|
11217
11216
|
border-bottom-color: rgba(255, 255, 255, 0.25);
|
|
11218
|
-
border-top-color: currentColor;
|
|
11219
11217
|
}
|
|
11220
11218
|
|
|
11221
11219
|
.loading--s {
|
|
@@ -15332,12 +15330,12 @@ input:checked + .switch--dot-transparent::after {
|
|
|
15332
15330
|
.col-mm {
|
|
15333
15331
|
display: block;
|
|
15334
15332
|
max-width: 100%;
|
|
15335
|
-
flex-grow: 1;
|
|
15336
15333
|
flex-shrink: 1;
|
|
15337
15334
|
}
|
|
15338
15335
|
.col--auto-mm {
|
|
15339
15336
|
width: auto !important;
|
|
15340
15337
|
flex: auto;
|
|
15338
|
+
flex-basis: 0;
|
|
15341
15339
|
}
|
|
15342
15340
|
.inline-mm { display: inline !important; }
|
|
15343
15341
|
.block-mm { display: block !important; }
|
|
@@ -15526,12 +15524,12 @@ input:checked + .switch--dot-transparent::after {
|
|
|
15526
15524
|
.col-ml {
|
|
15527
15525
|
display: block;
|
|
15528
15526
|
max-width: 100%;
|
|
15529
|
-
flex-grow: 1;
|
|
15530
15527
|
flex-shrink: 1;
|
|
15531
15528
|
}
|
|
15532
15529
|
.col--auto-ml {
|
|
15533
15530
|
width: auto !important;
|
|
15534
15531
|
flex: auto;
|
|
15532
|
+
flex-basis: 0;
|
|
15535
15533
|
}
|
|
15536
15534
|
.inline-ml { display: inline !important; }
|
|
15537
15535
|
.block-ml { display: block !important; }
|
|
@@ -15720,12 +15718,12 @@ input:checked + .switch--dot-transparent::after {
|
|
|
15720
15718
|
.col-mxl {
|
|
15721
15719
|
display: block;
|
|
15722
15720
|
max-width: 100%;
|
|
15723
|
-
flex-grow: 1;
|
|
15724
15721
|
flex-shrink: 1;
|
|
15725
15722
|
}
|
|
15726
15723
|
.col--auto-mxl {
|
|
15727
15724
|
width: auto !important;
|
|
15728
15725
|
flex: auto;
|
|
15726
|
+
flex-basis: 0;
|
|
15729
15727
|
}
|
|
15730
15728
|
.inline-mxl { display: inline !important; }
|
|
15731
15729
|
.block-mxl { display: block !important; }
|