@@ -1236,18 +1236,25 @@ yet.
1236
1236
1237
1237
### ❌carbon--make-col [mixin]
1238
1238
1239
- Define the width of the column for a given span and column count.
1239
+ Define the width of the column for a given span and column count. A width of 0
1240
+ will hide the column entirely.
1240
1241
1241
1242
<details>
1242
1243
<summary>Source code</summary>
1243
1244
1244
1245
```scss
1245
1246
@mixin carbon--make-col($span, $columns) {
1246
- flex: 0 0 percentage($span / $columns);
1247
- // Add a `max-width` to ensure content within each column does not blow out
1248
- // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
1249
- // do not appear to require this.
1250
- max-width: percentage($span / $columns);
1247
+ @if $span == 0 {
1248
+ display: none;
1249
+ } @else {
1250
+ // Explicitly include `display: block` to override
1251
+ display: block;
1252
+ flex: 0 0 percentage($span / $columns);
1253
+ // Add a `max-width` to ensure content within each column does not blow out
1254
+ // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
1255
+ // do not appear to require this.
1256
+ max-width: percentage($span / $columns);
1257
+ }
1251
1258
}
1252
1259
```
1253
1260
@@ -1316,7 +1323,7 @@ Output the CSS required for all the columns in a given grid system.
1316
1323
$columns: map-get(map-get($breakpoints, $breakpoint), columns);
1317
1324
1318
1325
// Allow columns to stretch full width below their breakpoints
1319
- @for $i from 1 through $columns {
1326
+ @for $i from 0 through $columns {
1320
1327
.#{$prefix}--col#{$infix}-#{$i} {
1321
1328
@include carbon--make-col-ready();
1322
1329
}
@@ -1344,7 +1351,7 @@ Output the CSS required for all the columns in a given grid system.
1344
1351
max-width: 100%;
1345
1352
}
1346
1353
1347
- @for $i from 1 through $columns {
1354
+ @for $i from 0 through $columns {
1348
1355
.#{$prefix}--col#{$infix}-#{$i} {
1349
1356
@include carbon--make-col($i, $columns);
1350
1357
}
@@ -10261,8 +10268,9 @@ Include a type reset for a given body and mono font family
10261
10268
}
10262
10269
10263
10270
body {
10264
- font-family: $body-font-family;
10265
10271
@include carbon--font-weight('regular');
10272
+
10273
+ font-family: $body-font-family;
10266
10274
text-rendering: optimizeLegibility;
10267
10275
-webkit-font-smoothing: antialiased;
10268
10276
-moz-osx-font-smoothing: grayscale;
@@ -16004,7 +16012,7 @@ Date picker styles
16004
16012
16005
16013
.#{$prefix}--date-picker__calendar,
16006
16014
.flatpickr-calendar.open {
16007
- @include layer('pop-out') ;
16015
+ @include box-shadow ;
16008
16016
background-color: $ui-01;
16009
16017
display: flex;
16010
16018
flex-direction: column;
@@ -16401,6 +16409,7 @@ Dropdown styles
16401
16409
border: none;
16402
16410
border-bottom: 1px solid $ui-04;
16403
16411
width: 100%;
16412
+ height: rem(40px);
16404
16413
cursor: pointer;
16405
16414
color: $text-01;
16406
16415
outline: 2px solid transparent;
@@ -16468,7 +16477,7 @@ Dropdown styles
16468
16477
}
16469
16478
16470
16479
.#{$prefix}--dropdown--open .#{$prefix}--dropdown-list {
16471
- @include layer('overlay') ;
16480
+ @include box-shadow ;
16472
16481
}
16473
16482
16474
16483
.#{$prefix}--dropdown--light {
@@ -16516,7 +16525,7 @@ Dropdown styles
16516
16525
.#{$prefix}--dropdown-list {
16517
16526
@include reset;
16518
16527
@include focus-outline('reset');
16519
- @include layer('overlay') ;
16528
+ @include box-shadow ;
16520
16529
@include type-style('body-short-01');
16521
16530
background-color: $ui-01;
16522
16531
display: flex;
@@ -16588,6 +16597,18 @@ Dropdown styles
16588
16597
}
16589
16598
}
16590
16599
16600
+ .#{$prefix}--dropdown--sm .#{$prefix}--dropdown-link {
16601
+ padding-top: rem(7px);
16602
+ padding-bottom: rem(7px);
16603
+ height: rem(32px);
16604
+ }
16605
+
16606
+ .#{$prefix}--dropdown--xl .#{$prefix}--dropdown-link {
16607
+ padding-top: rem(15px);
16608
+ padding-bottom: rem(15px);
16609
+ height: rem(48px);
16610
+ }
16611
+
16591
16612
.#{$prefix}--dropdown--focused,
16592
16613
.#{$prefix}--dropdown-link:focus {
16593
16614
@include focus-outline('outline');
@@ -16732,7 +16753,7 @@ Dropdown styles
16732
16753
16733
16754
.#{$prefix}--dropdown--inline.#{$prefix}--dropdown--open:focus
16734
16755
.#{$prefix}--dropdown-list {
16735
- @include layer('overlay') ;
16756
+ @include box-shadow ;
16736
16757
}
16737
16758
16738
16759
.#{$prefix}--dropdown--inline .#{$prefix}--dropdown-link {
@@ -17460,8 +17481,21 @@ List styles
17460
17481
margin-top: 0;
17461
17482
}
17462
17483
17463
- .#{$prefix}--list--ordered {
17464
- list-style-type: decimal;
17484
+ .#{$prefix}--list--ordered:not(.#{$prefix}--list--nested) {
17485
+ counter-reset: item;
17486
+ }
17487
+
17488
+ .#{$prefix}--list--ordered:not(.#{$prefix}--list--nested)
17489
+ > .#{$prefix}--list__item {
17490
+ position: relative;
17491
+ }
17492
+
17493
+ .#{$prefix}--list--ordered:not(.#{$prefix}--list--nested)
17494
+ > .#{$prefix}--list__item::before {
17495
+ content: counter(item) '.';
17496
+ counter-increment: item;
17497
+ position: absolute;
17498
+ left: rem(-24px);
17465
17499
}
17466
17500
17467
17501
.#{$prefix}--list--ordered.#{$prefix}--list--nested {
@@ -17964,6 +17998,14 @@ List box styles
17964
17998
}
17965
17999
}
17966
18000
18001
+ .#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
18002
+ height: rem(32px);
18003
+ }
18004
+
18005
+ .#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item {
18006
+ height: rem(48px);
18007
+ }
18008
+
17967
18009
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__menu-item:hover {
17968
18010
background-color: transparent;
17969
18011
}
@@ -18029,6 +18071,18 @@ List box styles
18029
18071
}
18030
18072
}
18031
18073
18074
+ .#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item__option {
18075
+ padding-top: rem(7px);
18076
+ padding-bottom: rem(7px);
18077
+ height: rem(32px);
18078
+ }
18079
+
18080
+ .#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item__option {
18081
+ padding-top: rem(15px);
18082
+ padding-bottom: rem(15px);
18083
+ height: rem(48px);
18084
+ }
18085
+
18032
18086
.#{$prefix}--list-box--disabled
18033
18087
.#{$prefix}--list-box__menu-item:hover
18034
18088
.#{$prefix}--list-box__menu-item__option,
@@ -18360,13 +18414,13 @@ Modal styles
18360
18414
.#{$prefix}--modal {
18361
18415
position: fixed;
18362
18416
top: 0;
18363
- right: 0;
18364
- bottom: 0;
18365
18417
left: 0;
18366
18418
z-index: z('modal');
18367
18419
display: flex;
18368
18420
align-items: center;
18369
18421
justify-content: center;
18422
+ width: 100vw;
18423
+ height: 100vh;
18370
18424
content: '';
18371
18425
background-color: transparent;
18372
18426
opacity: 0;
@@ -18390,7 +18444,8 @@ Modal styles
18390
18444
.#{$prefix}--select-input,
18391
18445
.#{$prefix}--dropdown,
18392
18446
.#{$prefix}--dropdown-list,
18393
- .#{$prefix}--number input[type='number'] {
18447
+ .#{$prefix}--number input[type='number'],
18448
+ .#{$prefix}--date-picker__input {
18394
18449
background-color: $field-02;
18395
18450
}
18396
18451
}
@@ -21670,7 +21725,7 @@ Tabs styles
21670
21725
}
21671
21726
21672
21727
.#{$prefix}--tabs__nav {
21673
- @include layer('overlay') ;
21728
+ @include box-shadow ;
21674
21729
margin: 0;
21675
21730
padding: 0;
21676
21731
position: absolute;
@@ -22070,6 +22125,7 @@ Tag styles
22070
22125
min-width: rem(32px); // ensures tag stays pill shaped;
22071
22126
margin: $carbon--spacing-02;
22072
22127
border-radius: rem(15px);
22128
+ cursor: default;
22073
22129
22074
22130
&:not(:first-child) {
22075
22131
margin-left: 0;
@@ -22363,6 +22419,14 @@ Text input styles
22363
22419
}
22364
22420
}
22365
22421
22422
+ .#{$prefix}--text-input--large {
22423
+ height: rem(48px);
22424
+ }
22425
+
22426
+ .#{$prefix}--text-input--small {
22427
+ height: rem(32px);
22428
+ }
22429
+
22366
22430
.#{$prefix}--password-input {
22367
22431
padding-right: $carbon--spacing-08;
22368
22432
}
@@ -23383,7 +23447,7 @@ Toolbar styles
23383
23447
}
23384
23448
23385
23449
&::after {
23386
- @include layer('overlay') ;
23450
+ @include box-shadow ;
23387
23451
min-width: rem(24px);
23388
23452
max-width: rem(208px);
23389
23453
height: rem(24px);
@@ -23522,7 +23586,7 @@ Toolbar styles
23522
23586
23523
23587
.#{$prefix}--tooltip--definition__bottom,
23524
23588
.#{$prefix}--tooltip--definition__top {
23525
- @include layer('overlay') ;
23589
+ @include box-shadow ;
23526
23590
position: absolute;
23527
23591
z-index: 1;
23528
23592
display: none;
@@ -23744,7 +23808,7 @@ Tooltip styles
23744
23808
}
23745
23809
23746
23810
.#{$prefix}--tooltip {
23747
- @include layer('overlay') ;
23811
+ @include box-shadow ;
23748
23812
@include reset;
23749
23813
position: absolute;
23750
23814
display: none;
0 commit comments