From 6825cf77d50454f766c802700c24d9c0a0762dd1 Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Mon, 4 Nov 2019 16:50:09 +0100 Subject: [PATCH] Add new CSS class 'qfq-sticky-element' - to stick individual elements --- less/qfq-bs.css.less | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/less/qfq-bs.css.less b/less/qfq-bs.css.less index 10e9cc742..71a3eccac 100644 --- a/less/qfq-bs.css.less +++ b/less/qfq-bs.css.less @@ -825,6 +825,7 @@ legend { } thead.qfq-sticky th, thead.qfq-sticky td { + position: -webkit-sticky; /* Safari */ position: sticky; top: 0; background-color: white; @@ -837,4 +838,10 @@ thead.qfq-sticky td { .dropdown-menu { z-index: 1060; -} \ No newline at end of file +} + +.qfq-sticky-element { + position: -webkit-sticky; /* Safari */ + position: sticky; + top: 0; +} -- GitLab