@bi-digital/css 0.0.0-experimental-aff96f9 → 0.0.0-experimental-2ec4984

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/dist/baseline.css CHANGED
@@ -10,39 +10,3 @@ html:has(bi-navbar) {
10
10
  html:has(bi-in-page-links) {
11
11
  scroll-padding-top: var(--bi-layout-navbar-height);
12
12
  }
13
-
14
- html:has(.bi-navbar) {
15
- scroll-padding-top: var(--bi-layout-navbar-height);
16
- }
17
-
18
- html:has(.bi-sub-navbar) {
19
- scroll-padding-top: var(--bi-layout-navbar-height);
20
- }
21
-
22
- html .bi-sticky-header {
23
- top: 0;
24
- }
25
-
26
- html:has(.bi-navbar[data-fixed="true"]) .bi-sticky-header {
27
- top: var(--bi-layout-navbar-height);
28
- }
29
-
30
- html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-navbar > header {
31
- transform: translateY(-100%);
32
- }
33
-
34
- html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-sub-navbar {
35
- top: 0;
36
- }
37
-
38
- html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-navbar > header {
39
- transform: translateY(0);
40
- }
41
-
42
- html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sub-navbar {
43
- top: var(--bi-layout-navbar-height);
44
- }
45
-
46
- html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sticky-header {
47
- top: calc(var(--bi-layout-navbar-height) + var(--bi-layout-navbar-height));
48
- }
@@ -48,3 +48,9 @@
48
48
  --bic-avatar-size: var(--bi-scale-16x);
49
49
  --bic-avatar-font-size: 1.25rem;
50
50
  }
51
+
52
+ .bi-avatar > img {
53
+ object-fit: cover;
54
+ width: 100%;
55
+ height: 100%;
56
+ }
@@ -109,15 +109,96 @@
109
109
  .bi-card .bi-card--content {
110
110
  padding: var(--bic-card-content-padding);
111
111
  gap: var(--bi-scale-4x);
112
+ border-radius: inherit;
113
+ border: none;
112
114
  flex-direction: column;
113
115
  flex: auto;
114
116
  display: flex;
115
117
  }
116
118
 
119
+ .bi-card .bi-card--content > p {
120
+ color: var(--bic-card-content-color);
121
+ white-space: break-spaces;
122
+ text-overflow: ellipsis;
123
+ -webkit-line-clamp: 2;
124
+ line-clamp: 2;
125
+ -webkit-box-orient: vertical;
126
+ margin: 0;
127
+ font-size: .875rem;
128
+ font-weight: 500;
129
+ line-height: 1.5;
130
+ display: -webkit-box;
131
+ overflow: hidden;
132
+ }
133
+
134
+ @media not (min-width: 768px) {
135
+ .bi-card .bi-card--content {
136
+ --bic-card-content-padding: var(--bi-scale-3x);
137
+ gap: var(--bi-scale-3x);
138
+ }
139
+ }
140
+
141
+ .bi-card:-webkit-any(a, button) {
142
+ cursor: pointer;
143
+ background: none;
144
+ text-decoration: none;
145
+ position: relative;
146
+ }
147
+
148
+ .bi-card:-webkit-any(a, button):not(.disabled):focus-visible {
149
+ box-shadow: var(--_bi--focus, 0 0 0 4.5px var(--bi-basic-white), var(--bic-button-box-shadow));
150
+ outline: var(--_bi--focus, 1.5px solid var(--bi-primary-50));
151
+ outline-offset: var(--_bi--focus, 2px);
152
+ }
153
+
154
+ .bi-card:-webkit-any(a, button):not(.disabled):focus-visible * {
155
+ --_bi--focus: ;
156
+ }
157
+
158
+ .bi-card:-webkit-any(a, button):not(.disabled):hover {
159
+ box-shadow: 0px 0px 0px 2px var(--bi-neutral-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
160
+ }
161
+
162
+ .bi-card:-webkit-any(a, button):not(.disabled):active {
163
+ box-shadow: 0px 0px 0px var(--bi-stroke-default) var(--bi-primary-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
164
+ }
165
+
166
+ .bi-card:-webkit-any(a, button):disabled {
167
+ cursor: not-allowed;
168
+ }
169
+
170
+ .bi-card:is(a, button) {
171
+ cursor: pointer;
172
+ background: none;
173
+ text-decoration: none;
174
+ position: relative;
175
+ }
176
+
177
+ .bi-card:is(a, button):not(.disabled):focus-visible {
178
+ box-shadow: var(--_bi--focus, 0 0 0 4.5px var(--bi-basic-white), var(--bic-button-box-shadow));
179
+ outline: var(--_bi--focus, 1.5px solid var(--bi-primary-50));
180
+ outline-offset: var(--_bi--focus, 2px);
181
+ }
182
+
183
+ .bi-card:is(a, button):not(.disabled):focus-visible * {
184
+ --_bi--focus: ;
185
+ }
186
+
187
+ .bi-card:is(a, button):not(.disabled):hover {
188
+ box-shadow: 0px 0px 0px 2px var(--bi-neutral-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
189
+ }
190
+
191
+ .bi-card:is(a, button):not(.disabled):active {
192
+ box-shadow: 0px 0px 0px var(--bi-stroke-default) var(--bi-primary-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
193
+ }
194
+
195
+ .bi-card:is(a, button):disabled {
196
+ cursor: not-allowed;
197
+ }
198
+
117
199
  .bi-card .bi-card--content:-webkit-any(a, button) {
118
200
  cursor: pointer;
119
201
  background: none;
120
- border: none;
121
202
  text-decoration: none;
122
203
  position: relative;
123
204
  }
@@ -147,7 +228,6 @@
147
228
  .bi-card .bi-card--content:is(a, button) {
148
229
  cursor: pointer;
149
230
  background: none;
150
- border: none;
151
231
  text-decoration: none;
152
232
  position: relative;
153
233
  }
@@ -174,28 +254,6 @@
174
254
  cursor: not-allowed;
175
255
  }
176
256
 
177
- .bi-card .bi-card--content > p {
178
- color: var(--bic-card-content-color);
179
- white-space: break-spaces;
180
- text-overflow: ellipsis;
181
- -webkit-line-clamp: 2;
182
- line-clamp: 2;
183
- -webkit-box-orient: vertical;
184
- margin: 0;
185
- font-size: .875rem;
186
- font-weight: 500;
187
- line-height: 1.5;
188
- display: -webkit-box;
189
- overflow: hidden;
190
- }
191
-
192
- @media not (min-width: 768px) {
193
- .bi-card .bi-card--content {
194
- --bic-card-content-padding: var(--bi-scale-3x);
195
- gap: var(--bi-scale-3x);
196
- }
197
- }
198
-
199
257
  .bi-card .bi-card--actions {
200
258
  flex-direction: var(--bic-card-actions-flex-direction, column);
201
259
  justify-content: center;
@@ -215,7 +273,7 @@
215
273
  --bic-button-font-size: var(--bi-icon-medium);
216
274
  --bic-button-color: var(--bic-card-actions-icon-color);
217
275
  --bic-button-size: var(--bi-scale-14x);
218
- height: 100%;
276
+ flex: 1;
219
277
  }
220
278
 
221
279
  @media not (min-width: 768px) {
@@ -153,6 +153,12 @@
153
153
  --bic-avatar-font-size: 1.25rem;
154
154
  }
155
155
 
156
+ .bi-avatar > img {
157
+ object-fit: cover;
158
+ width: 100%;
159
+ height: 100%;
160
+ }
161
+
156
162
  .bi-badge {
157
163
  --bic-badge-background: transparent;
158
164
  --bic-badge-color: var(--bi-neutral-60);
@@ -561,15 +567,96 @@
561
567
  .bi-card .bi-card--content {
562
568
  padding: var(--bic-card-content-padding);
563
569
  gap: var(--bi-scale-4x);
570
+ border-radius: inherit;
571
+ border: none;
564
572
  flex-direction: column;
565
573
  flex: auto;
566
574
  display: flex;
567
575
  }
568
576
 
577
+ .bi-card .bi-card--content > p {
578
+ color: var(--bic-card-content-color);
579
+ white-space: break-spaces;
580
+ text-overflow: ellipsis;
581
+ -webkit-line-clamp: 2;
582
+ line-clamp: 2;
583
+ -webkit-box-orient: vertical;
584
+ margin: 0;
585
+ font-size: .875rem;
586
+ font-weight: 500;
587
+ line-height: 1.5;
588
+ display: -webkit-box;
589
+ overflow: hidden;
590
+ }
591
+
592
+ @media not (min-width: 768px) {
593
+ .bi-card .bi-card--content {
594
+ --bic-card-content-padding: var(--bi-scale-3x);
595
+ gap: var(--bi-scale-3x);
596
+ }
597
+ }
598
+
599
+ .bi-card:-webkit-any(a, button) {
600
+ cursor: pointer;
601
+ background: none;
602
+ text-decoration: none;
603
+ position: relative;
604
+ }
605
+
606
+ .bi-card:-webkit-any(a, button):not(.disabled):focus-visible {
607
+ box-shadow: var(--_bi--focus, 0 0 0 4.5px var(--bi-basic-white), var(--bic-button-box-shadow));
608
+ outline: var(--_bi--focus, 1.5px solid var(--bi-primary-50));
609
+ outline-offset: var(--_bi--focus, 2px);
610
+ }
611
+
612
+ .bi-card:-webkit-any(a, button):not(.disabled):focus-visible * {
613
+ --_bi--focus: ;
614
+ }
615
+
616
+ .bi-card:-webkit-any(a, button):not(.disabled):hover {
617
+ box-shadow: 0px 0px 0px 2px var(--bi-neutral-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
618
+ }
619
+
620
+ .bi-card:-webkit-any(a, button):not(.disabled):active {
621
+ box-shadow: 0px 0px 0px var(--bi-stroke-default) var(--bi-primary-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
622
+ }
623
+
624
+ .bi-card:-webkit-any(a, button):disabled {
625
+ cursor: not-allowed;
626
+ }
627
+
628
+ .bi-card:is(a, button) {
629
+ cursor: pointer;
630
+ background: none;
631
+ text-decoration: none;
632
+ position: relative;
633
+ }
634
+
635
+ .bi-card:is(a, button):not(.disabled):focus-visible {
636
+ box-shadow: var(--_bi--focus, 0 0 0 4.5px var(--bi-basic-white), var(--bic-button-box-shadow));
637
+ outline: var(--_bi--focus, 1.5px solid var(--bi-primary-50));
638
+ outline-offset: var(--_bi--focus, 2px);
639
+ }
640
+
641
+ .bi-card:is(a, button):not(.disabled):focus-visible * {
642
+ --_bi--focus: ;
643
+ }
644
+
645
+ .bi-card:is(a, button):not(.disabled):hover {
646
+ box-shadow: 0px 0px 0px 2px var(--bi-neutral-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
647
+ }
648
+
649
+ .bi-card:is(a, button):not(.disabled):active {
650
+ box-shadow: 0px 0px 0px var(--bi-stroke-default) var(--bi-primary-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
651
+ }
652
+
653
+ .bi-card:is(a, button):disabled {
654
+ cursor: not-allowed;
655
+ }
656
+
569
657
  .bi-card .bi-card--content:-webkit-any(a, button) {
570
658
  cursor: pointer;
571
659
  background: none;
572
- border: none;
573
660
  text-decoration: none;
574
661
  position: relative;
575
662
  }
@@ -599,7 +686,6 @@
599
686
  .bi-card .bi-card--content:is(a, button) {
600
687
  cursor: pointer;
601
688
  background: none;
602
- border: none;
603
689
  text-decoration: none;
604
690
  position: relative;
605
691
  }
@@ -626,28 +712,6 @@
626
712
  cursor: not-allowed;
627
713
  }
628
714
 
629
- .bi-card .bi-card--content > p {
630
- color: var(--bic-card-content-color);
631
- white-space: break-spaces;
632
- text-overflow: ellipsis;
633
- -webkit-line-clamp: 2;
634
- line-clamp: 2;
635
- -webkit-box-orient: vertical;
636
- margin: 0;
637
- font-size: .875rem;
638
- font-weight: 500;
639
- line-height: 1.5;
640
- display: -webkit-box;
641
- overflow: hidden;
642
- }
643
-
644
- @media not (min-width: 768px) {
645
- .bi-card .bi-card--content {
646
- --bic-card-content-padding: var(--bi-scale-3x);
647
- gap: var(--bi-scale-3x);
648
- }
649
- }
650
-
651
715
  .bi-card .bi-card--actions {
652
716
  flex-direction: var(--bic-card-actions-flex-direction, column);
653
717
  justify-content: center;
@@ -667,7 +731,7 @@
667
731
  --bic-button-font-size: var(--bi-icon-medium);
668
732
  --bic-button-color: var(--bic-card-actions-icon-color);
669
733
  --bic-button-size: var(--bi-scale-14x);
670
- height: 100%;
734
+ flex: 1;
671
735
  }
672
736
 
673
737
  @media not (min-width: 768px) {
@@ -2842,3 +2906,39 @@ body:has(.bi-dialog:modal) {
2842
2906
  left: var(--bic-validation-message-padding);
2843
2907
  position: absolute;
2844
2908
  }
2909
+
2910
+ html:has(.bi-navbar) {
2911
+ scroll-padding-top: var(--bi-layout-navbar-height);
2912
+ }
2913
+
2914
+ html:has(.bi-sub-navbar) {
2915
+ scroll-padding-top: var(--bi-layout-navbar-height);
2916
+ }
2917
+
2918
+ html .bi-sticky-header {
2919
+ top: 0;
2920
+ }
2921
+
2922
+ html:has(.bi-navbar[data-fixed="true"]) .bi-sticky-header {
2923
+ top: var(--bi-layout-navbar-height);
2924
+ }
2925
+
2926
+ html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-navbar > header {
2927
+ transform: translateY(-100%);
2928
+ }
2929
+
2930
+ html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-sub-navbar {
2931
+ top: 0;
2932
+ }
2933
+
2934
+ html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-navbar > header {
2935
+ transform: translateY(0);
2936
+ }
2937
+
2938
+ html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sub-navbar {
2939
+ top: var(--bi-layout-navbar-height);
2940
+ }
2941
+
2942
+ html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sticky-header {
2943
+ top: calc(var(--bi-layout-navbar-height) + var(--bi-layout-navbar-height));
2944
+ }
package/dist/index.css CHANGED
@@ -396,39 +396,3 @@ html:has(bi-navbar) {
396
396
  html:has(bi-in-page-links) {
397
397
  scroll-padding-top: var(--bi-layout-navbar-height);
398
398
  }
399
-
400
- html:has(.bi-navbar) {
401
- scroll-padding-top: var(--bi-layout-navbar-height);
402
- }
403
-
404
- html:has(.bi-sub-navbar) {
405
- scroll-padding-top: var(--bi-layout-navbar-height);
406
- }
407
-
408
- html .bi-sticky-header {
409
- top: 0;
410
- }
411
-
412
- html:has(.bi-navbar[data-fixed="true"]) .bi-sticky-header {
413
- top: var(--bi-layout-navbar-height);
414
- }
415
-
416
- html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-navbar > header {
417
- transform: translateY(-100%);
418
- }
419
-
420
- html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-sub-navbar {
421
- top: 0;
422
- }
423
-
424
- html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-navbar > header {
425
- transform: translateY(0);
426
- }
427
-
428
- html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sub-navbar {
429
- top: var(--bi-layout-navbar-height);
430
- }
431
-
432
- html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sticky-header {
433
- top: calc(var(--bi-layout-navbar-height) + var(--bi-layout-navbar-height));
434
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bi-digital/css",
3
- "version": "0.0.0-experimental-aff96f9",
3
+ "version": "0.0.0-experimental-2ec4984",
4
4
  "description": "CSS for the BI Design System",
5
5
  "author": "BI Digital",
6
6
  "license": "ISC",
@@ -23,7 +23,7 @@
23
23
  "lightningcss": "^1.30.1",
24
24
  "modern-normalize": "^3.0.1",
25
25
  "rimraf": "^6.0.1",
26
- "@bi-digital/tokens": "0.0.0-experimental-aff96f9"
26
+ "@bi-digital/tokens": "0.0.0-experimental-2ec4984"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "rimraf dist && node config.js",