From aeb331259b52481cb1d07869f86b0e770fb56172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 27 Jan 2025 07:36:59 +0100 Subject: [PATCH] theme: make table headers sticky #997 --- assets/css/theme.css | 8 ++++++++ .../content/introduction/releasenotes/7/4.en.md | 13 +++++++++++++ layouts/partials/version.txt | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 exampleSite/content/introduction/releasenotes/7/4.en.md diff --git a/assets/css/theme.css b/assets/css/theme.css index eb91c6c0d4..4c9847b4dd 100644 --- a/assets/css/theme.css +++ b/assets/css/theme.css @@ -992,6 +992,14 @@ div.highlight > div table { border-width: 0; margin: 0; } +table { + position: relative; +} +tr:has(th) { + background-color: var(--INTERNAL-MAIN-BG-color); + position: sticky; + top: -1px; +} div.highlight > div td { border-width: 0; } diff --git a/exampleSite/content/introduction/releasenotes/7/4.en.md b/exampleSite/content/introduction/releasenotes/7/4.en.md new file mode 100644 index 0000000000..d323e82821 --- /dev/null +++ b/exampleSite/content/introduction/releasenotes/7/4.en.md @@ -0,0 +1,13 @@ ++++ +disableToc = false +hidden = true +title = "Version 7.4" +type = "releasenotes" +weight = -4 ++++ + +## 7.4.0 (XXXX-XX-XX) {#7-4-0} + +### New + +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Table headers are sticky now. diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index af2c571ecd..f0a2ace18f 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.3.2 \ No newline at end of file +7.3.2+60bb1c65c5fc8ae51330cff9b402b5ac0a2d34fb \ No newline at end of file