@seed-design/css 0.0.25 → 0.0.28
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/all.css +35 -4
- package/all.min.css +1 -1
- package/base.css +2 -2
- package/base.min.css +1 -1
- package/package.json +1 -1
- package/recipes/avatar.css +29 -0
- package/recipes/callout.css +4 -2
- package/recipes/inline-banner.css +1 -0
- package/vars/component/avatar.d.ts +18 -9
- package/vars/component/avatar.mjs +18 -9
package/all.css
CHANGED
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
--seed-color-palette-carrot-400: #ffb999;
|
|
269
269
|
--seed-color-palette-carrot-500: #ff9364;
|
|
270
270
|
--seed-color-palette-carrot-600: #f60;
|
|
271
|
-
--seed-color-palette-carrot-700: #
|
|
271
|
+
--seed-color-palette-carrot-700: #e14d00;
|
|
272
272
|
--seed-color-palette-carrot-800: #b93901;
|
|
273
273
|
--seed-color-palette-carrot-900: #862b00;
|
|
274
274
|
--seed-color-palette-carrot-1000: #471601;
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
--seed-color-palette-carrot-1000: #f4eeea;
|
|
432
432
|
--seed-color-palette-gray-00: #000;
|
|
433
433
|
--seed-color-palette-gray-100: #16171b;
|
|
434
|
-
--seed-color-palette-gray-200: #
|
|
434
|
+
--seed-color-palette-gray-200: #1d2025;
|
|
435
435
|
--seed-color-palette-gray-300: #2b2e35;
|
|
436
436
|
--seed-color-palette-gray-400: #393d46;
|
|
437
437
|
--seed-color-palette-gray-500: #5b606a;
|
|
@@ -577,6 +577,25 @@
|
|
|
577
577
|
position: relative;
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
+
.seed-avatar__root:after {
|
|
581
|
+
content: "";
|
|
582
|
+
pointer-events: none;
|
|
583
|
+
border-radius: var(--seed-radius-full);
|
|
584
|
+
box-shadow: inset 0 0 0 var(--avatar-stroke-width) var(--seed-color-stroke-on-image);
|
|
585
|
+
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"white\"/></svg>"), var(--svg-mask-uri);
|
|
586
|
+
-webkit-mask-size: 100% 100%, var(--badge-mask-size) var(--badge-mask-size);
|
|
587
|
+
-webkit-mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
588
|
+
-webkit-mask-composite: source-out;
|
|
589
|
+
-webkit-mask-repeat: no-repeat;
|
|
590
|
+
mask-image: url("data:image/svg+xml;utf8,<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"white\"/></svg>"), var(--svg-mask-uri);
|
|
591
|
+
mask-size: 100% 100%, var(--badge-mask-size) var(--badge-mask-size);
|
|
592
|
+
mask-position: 0 0, var(--badge-mask-offset) var(--badge-mask-offset);
|
|
593
|
+
position: absolute;
|
|
594
|
+
inset: 0;
|
|
595
|
+
mask-repeat: no-repeat;
|
|
596
|
+
mask-composite: subtract;
|
|
597
|
+
}
|
|
598
|
+
|
|
580
599
|
.seed-avatar__image {
|
|
581
600
|
object-fit: cover;
|
|
582
601
|
width: 100%;
|
|
@@ -639,6 +658,7 @@
|
|
|
639
658
|
|
|
640
659
|
.seed-avatar__root--size_20 {
|
|
641
660
|
--avatar-size: 20px;
|
|
661
|
+
--avatar-stroke-width: 1px;
|
|
642
662
|
--badge-mask-size: 0px;
|
|
643
663
|
--badge-mask-offset: 0px;
|
|
644
664
|
}
|
|
@@ -649,6 +669,7 @@
|
|
|
649
669
|
|
|
650
670
|
.seed-avatar__root--size_24 {
|
|
651
671
|
--avatar-size: 24px;
|
|
672
|
+
--avatar-stroke-width: 1px;
|
|
652
673
|
--badge-mask-size: 12px;
|
|
653
674
|
--badge-mask-offset: 14px;
|
|
654
675
|
}
|
|
@@ -660,6 +681,7 @@
|
|
|
660
681
|
|
|
661
682
|
.seed-avatar__root--size_36 {
|
|
662
683
|
--avatar-size: 36px;
|
|
684
|
+
--avatar-stroke-width: 1px;
|
|
663
685
|
--badge-mask-size: 18px;
|
|
664
686
|
--badge-mask-offset: 20px;
|
|
665
687
|
}
|
|
@@ -671,6 +693,7 @@
|
|
|
671
693
|
|
|
672
694
|
.seed-avatar__root--size_42 {
|
|
673
695
|
--avatar-size: 42px;
|
|
696
|
+
--avatar-stroke-width: 1px;
|
|
674
697
|
--badge-mask-size: 20px;
|
|
675
698
|
--badge-mask-offset: 24px;
|
|
676
699
|
}
|
|
@@ -682,6 +705,7 @@
|
|
|
682
705
|
|
|
683
706
|
.seed-avatar__root--size_48 {
|
|
684
707
|
--avatar-size: 48px;
|
|
708
|
+
--avatar-stroke-width: 1px;
|
|
685
709
|
--badge-mask-size: 22px;
|
|
686
710
|
--badge-mask-offset: 28px;
|
|
687
711
|
}
|
|
@@ -693,6 +717,7 @@
|
|
|
693
717
|
|
|
694
718
|
.seed-avatar__root--size_64 {
|
|
695
719
|
--avatar-size: 64px;
|
|
720
|
+
--avatar-stroke-width: 1px;
|
|
696
721
|
--badge-mask-size: 26px;
|
|
697
722
|
--badge-mask-offset: 40px;
|
|
698
723
|
}
|
|
@@ -704,6 +729,7 @@
|
|
|
704
729
|
|
|
705
730
|
.seed-avatar__root--size_80 {
|
|
706
731
|
--avatar-size: 80px;
|
|
732
|
+
--avatar-stroke-width: 1px;
|
|
707
733
|
--badge-mask-size: 32px;
|
|
708
734
|
--badge-mask-offset: 52px;
|
|
709
735
|
}
|
|
@@ -715,6 +741,7 @@
|
|
|
715
741
|
|
|
716
742
|
.seed-avatar__root--size_96 {
|
|
717
743
|
--avatar-size: 96px;
|
|
744
|
+
--avatar-stroke-width: 1px;
|
|
718
745
|
--badge-mask-size: 38px;
|
|
719
746
|
--badge-mask-offset: 62px;
|
|
720
747
|
}
|
|
@@ -2646,7 +2673,7 @@
|
|
|
2646
2673
|
|
|
2647
2674
|
.seed-callout__content {
|
|
2648
2675
|
margin-inline-end: auto;
|
|
2649
|
-
display:
|
|
2676
|
+
display: block;
|
|
2650
2677
|
}
|
|
2651
2678
|
|
|
2652
2679
|
.seed-callout__title {
|
|
@@ -2662,6 +2689,10 @@
|
|
|
2662
2689
|
font-weight: var(--seed-font-weight-regular);
|
|
2663
2690
|
}
|
|
2664
2691
|
|
|
2692
|
+
.seed-callout__description:not(:last-child) {
|
|
2693
|
+
margin-inline-end: 1ch;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2665
2696
|
.seed-callout__link {
|
|
2666
2697
|
cursor: pointer;
|
|
2667
2698
|
font-family: inherit;
|
|
@@ -2671,7 +2702,6 @@
|
|
|
2671
2702
|
text-underline-offset: 2px;
|
|
2672
2703
|
background-color: #0000;
|
|
2673
2704
|
border: none;
|
|
2674
|
-
margin-inline-start: 1ch;
|
|
2675
2705
|
padding: 0;
|
|
2676
2706
|
text-decoration: underline;
|
|
2677
2707
|
display: inline-block;
|
|
@@ -3252,6 +3282,7 @@
|
|
|
3252
3282
|
font-size: var(--seed-font-size-t4);
|
|
3253
3283
|
line-height: var(--seed-line-height-t4);
|
|
3254
3284
|
font-weight: var(--seed-font-weight-bold);
|
|
3285
|
+
flex-shrink: 0;
|
|
3255
3286
|
margin-inline-end: 1ch;
|
|
3256
3287
|
}
|
|
3257
3288
|
|