@wordpress/base-styles 3.6.0 → 4.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.0.0 (2021-09-09)
6
+
7
+ ### Breaking Change
8
+
9
+ - Remove the background-colors, foreground-colors, and gradient-colors mixins.
10
+
5
11
  ## 2.0.0 (2020-07-07)
6
12
 
7
13
  ### Breaking Changes
@@ -53,6 +53,7 @@ $gray-text-min: darken($gray, 18%); //#537994
53
53
  $gray-lighten-10: lighten($gray, 10%); // #a8bece
54
54
  $gray-lighten-20: lighten($gray, 20%); // #c8d7e1
55
55
  $gray-lighten-30: lighten($gray, 30%); // #e9eff3
56
+ $gray-darken-10: darken($gray, 10%);
56
57
  $gray-darken-20: darken($gray, 20%); // #4f748e
57
58
  $gray-darken-30: darken($gray, 30%); // #3d596d
58
59
 
@@ -102,6 +103,8 @@ $app-background-dark-alt: $background-dark-elevated;
102
103
  $modal-background: $white;
103
104
  $modal-background-dark: $background-dark-elevated;
104
105
 
106
+ $sub-heading: $gray-text-min;
107
+ $sub-heading-dark: $white;
105
108
  /**
106
109
  * Deprecated colors.
107
110
  * Please avoid using these.
package/_mixins.scss CHANGED
@@ -479,186 +479,48 @@
479
479
  }
480
480
  }
481
481
 
482
- @mixin background-colors() {
483
- .has-pale-pink-background-color {
484
- background-color: #f78da7;
485
- }
486
-
487
- .has-vivid-red-background-color {
488
- background-color: #cf2e2e;
489
- }
490
-
491
- .has-luminous-vivid-orange-background-color {
492
- background-color: #ff6900;
493
- }
494
-
495
- .has-luminous-vivid-amber-background-color {
496
- background-color: #fcb900;
497
- }
498
-
499
- .has-light-green-cyan-background-color {
500
- background-color: #7bdcb5;
501
- }
502
-
503
- .has-vivid-green-cyan-background-color {
504
- background-color: #00d084;
505
- }
506
-
507
- .has-pale-cyan-blue-background-color {
508
- background-color: #8ed1fc;
509
- }
510
-
511
- .has-vivid-cyan-blue-background-color {
512
- background-color: #0693e3;
513
- }
514
-
515
- .has-vivid-purple-background-color {
516
- background-color: #9b51e0;
517
- }
518
-
519
- .has-white-background-color {
520
- background-color: #fff;
521
- }
522
-
523
- // Deprecated from UI, kept for back-compat.
482
+ // Deprecated from UI, kept for back-compat.
483
+ @mixin background-colors-deprecated() {
524
484
  .has-very-light-gray-background-color {
525
485
  background-color: #eee;
526
486
  }
527
487
 
528
- .has-cyan-bluish-gray-background-color {
529
- background-color: #abb8c3;
530
- }
531
-
532
- // Deprecated from UI, kept for back-compat.
533
488
  .has-very-dark-gray-background-color {
534
489
  background-color: #313131;
535
490
  }
536
-
537
- .has-black-background-color {
538
- background-color: #000;
539
- }
540
491
  }
541
492
 
542
- @mixin foreground-colors() {
543
- .has-pale-pink-color {
544
- color: #f78da7;
545
- }
546
-
547
- .has-vivid-red-color {
548
- color: #cf2e2e;
549
- }
550
-
551
- .has-luminous-vivid-orange-color {
552
- color: #ff6900;
553
- }
554
-
555
- .has-luminous-vivid-amber-color {
556
- color: #fcb900;
557
- }
558
-
559
- .has-light-green-cyan-color {
560
- color: #7bdcb5;
561
- }
562
-
563
- .has-vivid-green-cyan-color {
564
- color: #00d084;
565
- }
566
-
567
- .has-pale-cyan-blue-color {
568
- color: #8ed1fc;
569
- }
570
-
571
- .has-vivid-cyan-blue-color {
572
- color: #0693e3;
573
- }
574
-
575
- .has-vivid-purple-color {
576
- color: #9b51e0;
577
- }
578
-
579
- .has-white-color {
580
- color: #fff;
581
- }
582
-
583
- // Deprecated from UI, kept for back-compat.
493
+ // Deprecated from UI, kept for back-compat.
494
+ @mixin foreground-colors-deprecated() {
584
495
  .has-very-light-gray-color {
585
496
  color: #eee;
586
497
  }
587
498
 
588
- .has-cyan-bluish-gray-color {
589
- color: #abb8c3;
590
- }
591
-
592
- // Deprecated from UI, kept for back-compat.
593
499
  .has-very-dark-gray-color {
594
500
  color: #313131;
595
501
  }
596
-
597
- .has-black-color {
598
- color: #000;
599
- }
600
502
  }
601
503
 
602
- @mixin gradient-colors() {
603
- // Our classes uses the same values we set for gradient value attributes, and we can not use spacing because of WP multi site kses rule.
504
+ // Deprecated from UI, kept for back-compat.
505
+ @mixin gradient-colors-deprecated() {
506
+ /*
507
+ * Our classes uses the same values we set for gradient value attributes,
508
+ * and we can not use spacing because of WP multi site kses rule.
509
+ */
604
510
 
605
511
  /* stylelint-disable function-comma-space-after */
606
- .has-vivid-cyan-blue-to-vivid-purple-gradient-background {
607
- background: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);
608
- }
609
-
610
512
  .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background {
611
513
  background: linear-gradient(135deg,rgba(0,208,132,1) 0%,rgba(6,147,227,1) 100%);
612
514
  }
613
515
 
614
- .has-light-green-cyan-to-vivid-green-cyan-gradient-background {
615
- background: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);
616
- }
617
-
618
- .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background {
619
- background: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);
620
- }
621
-
622
- .has-luminous-vivid-orange-to-vivid-red-gradient-background {
623
- background: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);
624
- }
625
-
626
- .has-very-light-gray-to-cyan-bluish-gray-gradient-background {
627
- background: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);
628
- }
629
-
630
- .has-cool-to-warm-spectrum-gradient-background {
631
- background: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);
632
- }
633
-
634
- .has-blush-light-purple-gradient-background {
635
- background: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);
636
- }
637
-
638
- .has-blush-bordeaux-gradient-background {
639
- background: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);
640
- }
641
-
642
516
  .has-purple-crush-gradient-background {
643
517
  background: linear-gradient(135deg,rgb(52,226,228) 0%,rgb(71,33,251) 50%,rgb(171,29,254) 100%);
644
518
  }
645
519
 
646
- .has-luminous-dusk-gradient-background {
647
- background: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);
648
- }
649
-
650
520
  .has-hazy-dawn-gradient-background {
651
521
  background: linear-gradient(135deg,rgb(250,172,168) 0%,rgb(218,208,236) 100%);
652
522
  }
653
523
 
654
- .has-pale-ocean-gradient-background {
655
- background: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);
656
- }
657
-
658
- .has-electric-grass-gradient-background {
659
- background: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);
660
- }
661
-
662
524
  .has-subdued-olive-gradient-background {
663
525
  background: linear-gradient(135deg,rgb(250,250,225) 0%,rgb(103,166,113) 100%);
664
526
  }
package/_z-index.scss CHANGED
@@ -43,8 +43,8 @@ $z-layers: (
43
43
  ".wp-block-template-part__placeholder-preview-filter-input": 1,
44
44
 
45
45
  // Navigation menu dropdown.
46
- ".has-child .wp-block-navigation-link__container": 28,
47
- ".has-child:hover .wp-block-navigation-link__container": 29,
46
+ ".has-child .wp-block-navigation__submenu-container": 28,
47
+ ".has-child:hover .wp-block-navigation__submenu-container": 29,
48
48
 
49
49
  // Active pill button
50
50
  ".components-button {:focus or .is-primary}": 1,
@@ -147,7 +147,7 @@ $z-layers: (
147
147
  ".components-popover.edit-widgets-more-menu__content": 99998,
148
148
  ".components-popover.block-editor-rich-text__inline-format-toolbar": 99998,
149
149
  ".components-popover.block-editor-warning__dropdown": 99998,
150
- ".components-popover.edit-navigation-header__menu-switcher-dropdown": 99998,
150
+ ".components-popover.edit-navigation-menu-actions__switcher-dropdown": 99998,
151
151
 
152
152
  ".components-autocomplete__results": 1000000,
153
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/base-styles",
3
- "version": "3.6.0",
3
+ "version": "4.0.1",
4
4
  "description": "Base SCSS utilities and variables for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "743b70f86f1e75fd66a583bf659f2b2fe5daf1cc"
26
+ "gitHead": "8f7f052bc04e3f4eb50f479ced14be1489b9fa79"
27
27
  }