@simplybusiness/theme-core 7.14.6 → 7.14.8

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,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.14.8
4
+
5
+ ### Patch Changes
6
+
7
+ - e160de4: Add lint-css executable for CSS linting with stylelint
8
+ - Added stylelint and stylelint-config-recommended dependencies
9
+ - Created lint-css executable that runs stylelint on src/\*_/_.css
10
+ - Configured selector-nested-pattern rule to enforce native CSS nesting (require & in nested selectors)
11
+ - Added lint:css scripts to theme-core as initial rollout
12
+ - Fixed 3 stylelint violations in theme-core icons.css
13
+ - Updated Turbo with lint:css task configuration
14
+ - @simplybusiness/mobius@6.9.5
15
+
16
+ ## 7.14.7
17
+
18
+ ### Patch Changes
19
+
20
+ - 56c673f: Migrate CSS from SASS-style nesting to native CSS nesting syntax
21
+ - Update 62 CSS source files to use native CSS nesting with `&` prefix
22
+ - Switch PostCSS plugin from `postcss-nested` to `postcss-nesting`
23
+ - No functional changes to compiled CSS output (still Safari 14 compatible)
24
+
25
+ - Updated dependencies [56c673f]
26
+ - Updated dependencies [c54e331]
27
+ - @simplybusiness/mobius@6.9.5
28
+
3
29
  ## 7.14.6
4
30
 
5
31
  ### Patch Changes
package/dist/index.css CHANGED
@@ -317,7 +317,7 @@ h6.mobius-accordion__link-text,
317
317
  color:transparent;
318
318
  }
319
319
 
320
- .mobius-button:where(.--is-success) > :not(.mobius-button__icon-wrapper){
320
+ .mobius-button:where(.--is-success) > :not(.mobius-button__icon-wrapper){
321
321
  opacity:0;
322
322
  visibility:hidden;
323
323
  }
@@ -350,7 +350,7 @@ h6.mobius-accordion__link-text,
350
350
  color:transparent;
351
351
  }
352
352
 
353
- .mobius-button:where(.--is-loading) > :not(.mobius-button__icon-wrapper){
353
+ .mobius-button:where(.--is-loading) > :not(.mobius-button__icon-wrapper){
354
354
  opacity:0;
355
355
  visibility:hidden;
356
356
  }
@@ -722,7 +722,7 @@ h6.mobius-accordion__link-text,
722
722
  transition:opacity var(--drawer-transition-duration) ease-in-out;
723
723
  }
724
724
 
725
- .mobius-drawer + .backdrop{
725
+ .mobius-drawer + .backdrop{
726
726
  position:fixed;
727
727
  top:0;
728
728
  right:0;
@@ -732,7 +732,7 @@ h6.mobius-accordion__link-text,
732
732
  opacity:0.3;
733
733
  }
734
734
 
735
- :is(.mobius-drawer + .backdrop) + ._dialog_overlay{
735
+ :is(.mobius-drawer + .backdrop) + ._dialog_overlay{
736
736
  position:fixed;
737
737
  top:0;
738
738
  right:0;
@@ -1190,7 +1190,7 @@ h6.mobius-accordion__link-text,
1190
1190
  transition:opacity var(--modal-transition-duration) ease-in-out;
1191
1191
  }
1192
1192
 
1193
- .mobius-modal + .backdrop{
1193
+ .mobius-modal + .backdrop{
1194
1194
  position:fixed;
1195
1195
  top:0;
1196
1196
  right:0;
@@ -1200,7 +1200,7 @@ h6.mobius-accordion__link-text,
1200
1200
  opacity:0.3;
1201
1201
  }
1202
1202
 
1203
- :is(.mobius-modal + .backdrop) + ._dialog_overlay{
1203
+ :is(.mobius-modal + .backdrop) + ._dialog_overlay{
1204
1204
  position:fixed;
1205
1205
  top:0;
1206
1206
  right:0;
@@ -1840,7 +1840,7 @@ h6.mobius-accordion__link-text,
1840
1840
  width:100%;
1841
1841
  }
1842
1842
 
1843
- .mobius-select__outer > :where(.mobius-label.--is-optional)::after{
1843
+ .mobius-select__outer > :where(.mobius-label.--is-optional)::after{
1844
1844
  content:" (optional)";
1845
1845
  }
1846
1846
 
@@ -2085,7 +2085,7 @@ h6.mobius-accordion__link-text,
2085
2085
  height:0;
2086
2086
  }
2087
2087
 
2088
- :is(.mobius-switch input):focus-visible + .mobius-switch__slider{
2088
+ :is(.mobius-switch input):focus-visible + .mobius-switch__slider{
2089
2089
  box-shadow:var(--box-shadow-default);
2090
2090
  }
2091
2091
 
@@ -2368,7 +2368,7 @@ h6.mobius-accordion__link-text,
2368
2368
  border-bottom-right-radius:0;
2369
2369
  }
2370
2370
 
2371
- .mobius-text-field__prefix-outside.mobius-button + .mobius-text-field__input-wrapper{
2371
+ .mobius-text-field__prefix-outside.mobius-button + .mobius-text-field__input-wrapper{
2372
2372
  border-top-left-radius:0;
2373
2373
  border-bottom-left-radius:0;
2374
2374
  }
@@ -2601,6 +2601,7 @@ svg:not(:host).svg-inline--mobius-icon{
2601
2601
  position:absolute;
2602
2602
  right:0;
2603
2603
  top:0;
2604
+ transform-origin:center center;
2604
2605
  }
2605
2606
 
2606
2607
  .mobius-icon-layers-counter,
@@ -2619,10 +2620,6 @@ svg:not(:host).svg-inline--mobius-icon{
2619
2620
  width:1em;
2620
2621
  }
2621
2622
 
2622
- .mobius-icon-layers svg.svg-inline--mobius-icon{
2623
- transform-origin:center center;
2624
- }
2625
-
2626
2623
  .mobius-icon-layers-text{
2627
2624
  left:50%;
2628
2625
  top:50%;
@@ -2929,6 +2926,11 @@ svg:not(:host).svg-inline--mobius-icon{
2929
2926
  opacity:var(--mobius-icon-secondary-opacity, 0.4);
2930
2927
  }
2931
2928
 
2929
+ .svg-inline--mobius-icon mask .mobius-icon-primary,
2930
+ .svg-inline--mobius-icon mask .mobius-icon-secondary{
2931
+ fill:black;
2932
+ }
2933
+
2932
2934
  .svg-inline--mobius-icon.mobius-icon-swap-opacity .mobius-icon-primary{
2933
2935
  opacity:var(--mobius-icon-secondary-opacity, 0.4);
2934
2936
  }
@@ -2937,11 +2939,6 @@ svg:not(:host).svg-inline--mobius-icon{
2937
2939
  opacity:var(--mobius-icon-primary-opacity, 1);
2938
2940
  }
2939
2941
 
2940
- .svg-inline--mobius-icon mask .mobius-icon-primary,
2941
- .svg-inline--mobius-icon mask .mobius-icon-secondary{
2942
- fill:black;
2943
- }
2944
-
2945
2942
  .fad.mobius-icon-inverse,
2946
2943
  .mobius-icon-duotone.mobius-icon-inverse{
2947
2944
  color:var(--mobius-icon-inverse, #fff);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplybusiness/theme-core",
3
- "version": "7.14.6",
3
+ "version": "7.14.8",
4
4
  "main": "dist/index.css",
5
5
  "simplyBusiness": {
6
6
  "publishToPublicNpm": true
@@ -10,7 +10,9 @@
10
10
  "clean": "rm -rf dist",
11
11
  "build": "yarn run -T turbo run turbo:build",
12
12
  "prepack": "yarn run build",
13
- "turbo:build": "build-theme"
13
+ "turbo:build": "build-theme",
14
+ "lint:css": "lint-css",
15
+ "lint:css:fix": "lint-css --fix"
14
16
  },
15
17
  "files": [
16
18
  "dist/**/*",
@@ -26,9 +28,9 @@
26
28
  "./fonts": "./dist/fonts.css"
27
29
  },
28
30
  "dependencies": {
29
- "@simplybusiness/mobius": "^6.9.4"
31
+ "@simplybusiness/mobius": "^6.9.5"
30
32
  },
31
33
  "devDependencies": {
32
- "build-scripts": "^1.0.2"
34
+ "build-scripts": "^1.1.0"
33
35
  }
34
36
  }
package/src/icons.css CHANGED
@@ -62,6 +62,7 @@ svg:not(:host).svg-inline--mobius-icon {
62
62
  position: absolute;
63
63
  right: 0;
64
64
  top: 0;
65
+ transform-origin: center center;
65
66
  }
66
67
 
67
68
  .mobius-icon-layers-counter,
@@ -80,10 +81,6 @@ svg:not(:host).svg-inline--mobius-icon {
80
81
  width: 1em;
81
82
  }
82
83
 
83
- .mobius-icon-layers svg.svg-inline--mobius-icon {
84
- transform-origin: center center;
85
- }
86
-
87
84
  .mobius-icon-layers-text {
88
85
  left: 50%;
89
86
  top: 50%;
@@ -389,6 +386,11 @@ svg:not(:host).svg-inline--mobius-icon {
389
386
  opacity: var(--mobius-icon-secondary-opacity, 0.4);
390
387
  }
391
388
 
389
+ .svg-inline--mobius-icon mask .mobius-icon-primary,
390
+ .svg-inline--mobius-icon mask .mobius-icon-secondary {
391
+ fill: black;
392
+ }
393
+
392
394
  .svg-inline--mobius-icon.mobius-icon-swap-opacity .mobius-icon-primary {
393
395
  opacity: var(--mobius-icon-secondary-opacity, 0.4);
394
396
  }
@@ -397,11 +399,6 @@ svg:not(:host).svg-inline--mobius-icon {
397
399
  opacity: var(--mobius-icon-primary-opacity, 1);
398
400
  }
399
401
 
400
- .svg-inline--mobius-icon mask .mobius-icon-primary,
401
- .svg-inline--mobius-icon mask .mobius-icon-secondary {
402
- fill: black;
403
- }
404
-
405
402
  .fad.mobius-icon-inverse,
406
403
  .mobius-icon-duotone.mobius-icon-inverse {
407
404
  color: var(--mobius-icon-inverse, #fff);
package/src/index.css CHANGED
@@ -45,9 +45,9 @@
45
45
  .mobius {
46
46
  font-family: var(--font-family);
47
47
 
48
- *,
49
- *::before,
50
- *::after {
48
+ & *,
49
+ & *::before,
50
+ & *::after {
51
51
  box-sizing: border-box;
52
52
  }
53
53
  }