diff options
author | immeƫmosol <will+developer@willfris.nl> | 2021-03-11 15:36:48 +0300 |
---|---|---|
committer | David O'Regan <doregan@gitlab.com> | 2021-03-11 15:36:48 +0300 |
commit | e785e49527b8899c92966e205ff7bf9a3fd1f5b1 (patch) | |
tree | 9b10239124ab9594ee809b509752e5abc1170c03 | |
parent | 2749cf8efd4306b9b7cbc412e2d509ecc69c0969 (diff) |
make fixed-table heading cells sticky
See the long table with user type permissions at: https://docs.gitlab.com/ee/user/permissions.html#project-members-permissions .
-rw-r--r-- | content/assets/stylesheets/stylesheet.scss | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/content/assets/stylesheets/stylesheet.scss b/content/assets/stylesheets/stylesheet.scss index 13f52f9f..bdcc176e 100644 --- a/content/assets/stylesheets/stylesheet.scss +++ b/content/assets/stylesheets/stylesheet.scss @@ -1,5 +1,5 @@ --- -version: 102 +version: 103 --- @import "variables"; @@ -102,7 +102,12 @@ table { } } &.fixed-table { - table-layout: fixed; // use this for columns with the same width + table-layout: fixed; // use this for columns with the same width + thead th { + top: $header-height; + position: sticky; + background-color: $thead-background-color; + } } } |