From 7f1d4c8f3888e11ed0a19d0065b033015df4bab1 Mon Sep 17 00:00:00 2001 From: LeusMaximus Date: Wed, 2 Jan 2019 12:17:08 +0200 Subject: [PATCH] Now the head of the table on the statistics page has sticky position when page scrolling. --- css/styles.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/css/styles.css b/css/styles.css index a3936386d..00a4b0972 100644 --- a/css/styles.css +++ b/css/styles.css @@ -24,7 +24,6 @@ th.sort-down .sort-up { display: inline; } .host-stats__head { width: 100%; font-size: 16px; - border-bottom: 2px solid rgb(221,221,221); } @media (max-width: 768px) { @@ -84,10 +83,15 @@ th.host-stats__col_retweeted { } th.host-stats__col { - padding: 3px 8px; + position: sticky; + top: 0; + z-index: 2; + padding: 3px 8px 5px; font-weight: normal; vertical-align: bottom; line-height: 2em; + box-shadow: 0 -2px 0 0 rgb(221,221,221) inset; + background-color: white; } .host-stats__col_graph {