@mediafly/js-ui 50.2.0-beta.0 → 50.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## @mediafly/js-ui changelog
2
2
 
3
+ **50.2.0**
4
+
5
+ * Removed legacy header styles on h1, h2, etc. Headers now require an `o-h1` class to use the default styles.
6
+ * Removed the `has-no-margin` class from headers, this is now the default state. The previous default margins can be applied using the class `vertical-margin`.
7
+
3
8
  **50.1.0**
4
9
 
5
10
  * Support readonly fields in the metadata form component
@@ -343,10 +343,11 @@
343
343
  font-family: var(--font-stack-headers);
344
344
  font-weight: var(--font-weight-light);
345
345
  line-height: var(--font-line-height-header);
346
- margin-bottom: 10px;
347
- margin-top: 20px;
348
346
 
349
- &.hasNoMargin { margin: 0; }
347
+ &.verticalMargin {
348
+ margin-bottom: 10px;
349
+ margin-top: 20px;
350
+ }
350
351
  }
351
352
 
352
353
  .hero {
@@ -370,10 +371,11 @@
370
371
  font-size: var(--font-size-base);
371
372
  font-weight: var(--font-weight-bold);
372
373
  line-height: var(--font-line-height-base);
373
- margin-bottom: 10px;
374
- margin-top: 10px;
375
374
 
376
- &.hasNoMargin { margin: 0; }
375
+ &.verticalMargin {
376
+ margin-bottom: 10px;
377
+ margin-top: 10px;
378
+ }
377
379
  }
378
380
 
379
381
  /**
package/lib/styles.css CHANGED
@@ -1845,15 +1845,14 @@ ng-form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dir
1845
1845
  font-family: 'Poppins', sans-serif;
1846
1846
  font-weight: 300;
1847
1847
  line-height: 1.3;
1848
+ }
1849
+ .o-hero.vertical-margin,
1850
+ .o-h1.vertical-margin,
1851
+ .o-h2.vertical-margin,
1852
+ .o-h3.vertical-margin {
1848
1853
  margin-bottom: 10px;
1849
1854
  margin-top: 20px;
1850
1855
  }
1851
- .o-hero.has-no-margin,
1852
- .o-h1.has-no-margin,
1853
- .o-h2.has-no-margin,
1854
- .o-h3.has-no-margin {
1855
- margin: 0;
1856
- }
1857
1856
  .o-hero {
1858
1857
  font-size: 38px;
1859
1858
  }
@@ -1871,12 +1870,11 @@ ng-form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dir
1871
1870
  font-size: 14px;
1872
1871
  font-weight: 700;
1873
1872
  line-height: 1.7;
1873
+ }
1874
+ .o-h4.vertical-margin {
1874
1875
  margin-bottom: 10px;
1875
1876
  margin-top: 10px;
1876
1877
  }
1877
- .o-h4.has-no-margin {
1878
- margin: 0;
1879
- }
1880
1878
  .o-page-header {
1881
1879
  align-items: flex-start;
1882
1880
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediafly/js-ui",
3
- "version": "50.2.0-beta.0",
3
+ "version": "50.2.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "UI components for Mediafly Angular applications",
6
6
  "repository": {
@@ -9,10 +9,11 @@
9
9
  font-family: @font-stack-headers;
10
10
  font-weight: @font-weight-light;
11
11
  line-height: @font-line-height-header;
12
- margin-bottom: 10px;
13
- margin-top: 20px;
14
12
 
15
- &.has-no-margin { margin: 0; }
13
+ &.vertical-margin {
14
+ margin-bottom: 10px;
15
+ margin-top: 20px;
16
+ }
16
17
  }
17
18
 
18
19
  .o-hero {
@@ -36,10 +37,11 @@
36
37
  font-size: @font-size-base;
37
38
  font-weight: @font-weight-bold;
38
39
  line-height: @font-line-height-base;
39
- margin-bottom: 10px;
40
- margin-top: 10px;
41
40
 
42
- &.has-no-margin { margin: 0; }
41
+ &.vertical-margin {
42
+ margin-bottom: 10px;
43
+ margin-top: 10px;
44
+ }
43
45
  }
44
46
 
45
47
  // The page header is designed to wrap a page icon/title and optional
@@ -5,10 +5,11 @@
5
5
  font-family: var(--font-stack-headers);
6
6
  font-weight: var(--font-weight-light);
7
7
  line-height: var(--font-line-height-header);
8
- margin-bottom: 10px;
9
- margin-top: 20px;
10
8
 
11
- &.hasNoMargin { margin: 0; }
9
+ &.verticalMargin {
10
+ margin-bottom: 10px;
11
+ margin-top: 20px;
12
+ }
12
13
  }
13
14
 
14
15
  .hero {
@@ -32,10 +33,11 @@
32
33
  font-size: var(--font-size-base);
33
34
  font-weight: var(--font-weight-bold);
34
35
  line-height: var(--font-line-height-base);
35
- margin-bottom: 10px;
36
- margin-top: 10px;
37
36
 
38
- &.hasNoMargin { margin: 0; }
37
+ &.verticalMargin {
38
+ margin-bottom: 10px;
39
+ margin-top: 10px;
40
+ }
39
41
  }
40
42
 
41
43
  /**