@bi-digital/css 0.0.0-experimental-aff96f9 → 0.0.0-experimental-7ec9539

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,94 @@
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
+ background: none;
114
+ border: none;
112
115
  flex-direction: column;
113
116
  flex: auto;
114
117
  display: flex;
115
118
  }
116
119
 
120
+ .bi-card .bi-card--content > p {
121
+ color: var(--bic-card-content-color);
122
+ white-space: break-spaces;
123
+ text-overflow: ellipsis;
124
+ -webkit-line-clamp: 2;
125
+ line-clamp: 2;
126
+ -webkit-box-orient: vertical;
127
+ margin: 0;
128
+ font-size: .875rem;
129
+ font-weight: 500;
130
+ line-height: 1.5;
131
+ display: -webkit-box;
132
+ overflow: hidden;
133
+ }
134
+
135
+ @media not (min-width: 768px) {
136
+ .bi-card .bi-card--content {
137
+ --bic-card-content-padding: var(--bi-scale-3x);
138
+ gap: var(--bi-scale-3x);
139
+ }
140
+ }
141
+
142
+ .bi-card:-webkit-any(a, button) {
143
+ cursor: pointer;
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
+ text-decoration: none;
173
+ position: relative;
174
+ }
175
+
176
+ .bi-card:is(a, button):not(.disabled):focus-visible {
177
+ box-shadow: var(--_bi--focus, 0 0 0 4.5px var(--bi-basic-white), var(--bic-button-box-shadow));
178
+ outline: var(--_bi--focus, 1.5px solid var(--bi-primary-50));
179
+ outline-offset: var(--_bi--focus, 2px);
180
+ }
181
+
182
+ .bi-card:is(a, button):not(.disabled):focus-visible * {
183
+ --_bi--focus: ;
184
+ }
185
+
186
+ .bi-card:is(a, button):not(.disabled):hover {
187
+ box-shadow: 0px 0px 0px 2px var(--bi-neutral-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
188
+ }
189
+
190
+ .bi-card:is(a, button):not(.disabled):active {
191
+ 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;
192
+ }
193
+
194
+ .bi-card:is(a, button):disabled {
195
+ cursor: not-allowed;
196
+ }
197
+
117
198
  .bi-card .bi-card--content:-webkit-any(a, button) {
118
199
  cursor: pointer;
119
- background: none;
120
- border: none;
121
200
  text-decoration: none;
122
201
  position: relative;
123
202
  }
@@ -146,8 +225,6 @@
146
225
 
147
226
  .bi-card .bi-card--content:is(a, button) {
148
227
  cursor: pointer;
149
- background: none;
150
- border: none;
151
228
  text-decoration: none;
152
229
  position: relative;
153
230
  }
@@ -174,28 +251,6 @@
174
251
  cursor: not-allowed;
175
252
  }
176
253
 
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
254
  .bi-card .bi-card--actions {
200
255
  flex-direction: var(--bic-card-actions-flex-direction, column);
201
256
  justify-content: center;
@@ -215,7 +270,7 @@
215
270
  --bic-button-font-size: var(--bi-icon-medium);
216
271
  --bic-button-color: var(--bic-card-actions-icon-color);
217
272
  --bic-button-size: var(--bi-scale-14x);
218
- height: 100%;
273
+ flex: 1;
219
274
  }
220
275
 
221
276
  @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,94 @@
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
+ background: none;
572
+ border: none;
564
573
  flex-direction: column;
565
574
  flex: auto;
566
575
  display: flex;
567
576
  }
568
577
 
578
+ .bi-card .bi-card--content > p {
579
+ color: var(--bic-card-content-color);
580
+ white-space: break-spaces;
581
+ text-overflow: ellipsis;
582
+ -webkit-line-clamp: 2;
583
+ line-clamp: 2;
584
+ -webkit-box-orient: vertical;
585
+ margin: 0;
586
+ font-size: .875rem;
587
+ font-weight: 500;
588
+ line-height: 1.5;
589
+ display: -webkit-box;
590
+ overflow: hidden;
591
+ }
592
+
593
+ @media not (min-width: 768px) {
594
+ .bi-card .bi-card--content {
595
+ --bic-card-content-padding: var(--bi-scale-3x);
596
+ gap: var(--bi-scale-3x);
597
+ }
598
+ }
599
+
600
+ .bi-card:-webkit-any(a, button) {
601
+ cursor: pointer;
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
+ text-decoration: none;
631
+ position: relative;
632
+ }
633
+
634
+ .bi-card:is(a, button):not(.disabled):focus-visible {
635
+ box-shadow: var(--_bi--focus, 0 0 0 4.5px var(--bi-basic-white), var(--bic-button-box-shadow));
636
+ outline: var(--_bi--focus, 1.5px solid var(--bi-primary-50));
637
+ outline-offset: var(--_bi--focus, 2px);
638
+ }
639
+
640
+ .bi-card:is(a, button):not(.disabled):focus-visible * {
641
+ --_bi--focus: ;
642
+ }
643
+
644
+ .bi-card:is(a, button):not(.disabled):hover {
645
+ box-shadow: 0px 0px 0px 2px var(--bi-neutral-50), 0px 0px 20px var(--bi-scale-1-5x) #0000000d, 0px 0px 10px 0px #0000000d;
646
+ }
647
+
648
+ .bi-card:is(a, button):not(.disabled):active {
649
+ 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;
650
+ }
651
+
652
+ .bi-card:is(a, button):disabled {
653
+ cursor: not-allowed;
654
+ }
655
+
569
656
  .bi-card .bi-card--content:-webkit-any(a, button) {
570
657
  cursor: pointer;
571
- background: none;
572
- border: none;
573
658
  text-decoration: none;
574
659
  position: relative;
575
660
  }
@@ -598,8 +683,6 @@
598
683
 
599
684
  .bi-card .bi-card--content:is(a, button) {
600
685
  cursor: pointer;
601
- background: none;
602
- border: none;
603
686
  text-decoration: none;
604
687
  position: relative;
605
688
  }
@@ -626,28 +709,6 @@
626
709
  cursor: not-allowed;
627
710
  }
628
711
 
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
712
  .bi-card .bi-card--actions {
652
713
  flex-direction: var(--bic-card-actions-flex-direction, column);
653
714
  justify-content: center;
@@ -667,7 +728,7 @@
667
728
  --bic-button-font-size: var(--bi-icon-medium);
668
729
  --bic-button-color: var(--bic-card-actions-icon-color);
669
730
  --bic-button-size: var(--bi-scale-14x);
670
- height: 100%;
731
+ flex: 1;
671
732
  }
672
733
 
673
734
  @media not (min-width: 768px) {
@@ -2842,3 +2903,39 @@ body:has(.bi-dialog:modal) {
2842
2903
  left: var(--bic-validation-message-padding);
2843
2904
  position: absolute;
2844
2905
  }
2906
+
2907
+ html:has(.bi-navbar) {
2908
+ scroll-padding-top: var(--bi-layout-navbar-height);
2909
+ }
2910
+
2911
+ html:has(.bi-sub-navbar) {
2912
+ scroll-padding-top: var(--bi-layout-navbar-height);
2913
+ }
2914
+
2915
+ html .bi-sticky-header {
2916
+ top: 0;
2917
+ }
2918
+
2919
+ html:has(.bi-navbar[data-fixed="true"]) .bi-sticky-header {
2920
+ top: var(--bi-layout-navbar-height);
2921
+ }
2922
+
2923
+ html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-navbar > header {
2924
+ transform: translateY(-100%);
2925
+ }
2926
+
2927
+ html:has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="down"]) .bi-sub-navbar {
2928
+ top: 0;
2929
+ }
2930
+
2931
+ html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-navbar > header {
2932
+ transform: translateY(0);
2933
+ }
2934
+
2935
+ html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sub-navbar {
2936
+ top: var(--bi-layout-navbar-height);
2937
+ }
2938
+
2939
+ html:has(.bi-navbar[data-fixed="true"]):has(.bi-sub-navbar[data-fixed="true"][data-scroll-dir="up"]) .bi-sticky-header {
2940
+ top: calc(var(--bi-layout-navbar-height) + var(--bi-layout-navbar-height));
2941
+ }
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-7ec9539",
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-7ec9539"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "rimraf dist && node config.js",