1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-02 09:52:43 +02:00

add .sticky-thead support

This commit is contained in:
Mark Otto
2022-04-06 17:19:17 -07:00
committed by Julien Déramond
parent e20cc0d660
commit 65d976cfba
3 changed files with 81 additions and 0 deletions

View File

@@ -154,6 +154,15 @@
@include table-variant($color, $value);
}
// Sticky table headers
.thead-sticky {
position: sticky;
top: var(--#{$prefix}table-thead-sticky-top, 0);
z-index: $table-thead-sticky-zindex;
}
// Responsive tables
//
// Generate series of `.table-responsive-*` classes for configuring the screen

View File

@@ -762,6 +762,8 @@ $table-striped-columns-order: even !default;
$table-group-separator-color: currentcolor !default;
$table-thead-sticky-zindex: 5 !default;
$table-caption-color: var(--#{$prefix}secondary-color) !default;
$table-bg-scale: -80% !default;