diff options
author | David O'Regan <doregan@gitlab.com> | 2021-03-11 15:36:48 +0300 |
---|---|---|
committer | David O'Regan <doregan@gitlab.com> | 2021-03-11 15:36:48 +0300 |
commit | 10b5798967add6b9df567e6ffb3be373173a87fe (patch) | |
tree | 9b10239124ab9594ee809b509752e5abc1170c03 | |
parent | 2749cf8efd4306b9b7cbc412e2d509ecc69c0969 (diff) | |
parent | e785e49527b8899c92966e205ff7bf9a3fd1f5b1 (diff) |
Merge branch 'imme-emosol-master-patch-61284' into 'master'
make fixed-table heading cells sticky
See merge request gitlab-org/gitlab-docs!1593
-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; + } } } |