File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,31 @@ footer {
437
437
& .basic-info th {
438
438
width : 15rem ;
439
439
}
440
+
441
+ /* Arrange rows vertically when horizontal space is constrained to avoid overflowing */
442
+ @include media-breakpoint-down (sm) {
443
+ /* Make cells full width without vertical margin */
444
+ & .basic-info th , & .basic-info td {
445
+ width : 100% ;
446
+ display : inline-block ;
447
+ margin-top : 0 ;
448
+ margin-bottom : 0 ;
449
+ }
450
+
451
+ /* Remove border and padding between header & data cells to make them appear like a single cell */
452
+ & .basic-info td {
453
+ padding-top : 0 ;
454
+ border-top : none ;
455
+ }
456
+ & .basic-info th {
457
+ border-bottom : none ;
458
+ }
459
+
460
+ /* Remove top border on all but the first header cell to prevent double borders between rows */
461
+ & .basic-info tr + tr th {
462
+ border-top : none ;
463
+ }
464
+ }
440
465
}
441
466
442
467
pre {
You can’t perform that action at this time.
0 commit comments