From eebc70cf1eaed59522859a56fddc0406ab336adb Mon Sep 17 00:00:00 2001 From: Marin Treselj Date: Tue, 19 Dec 2017 15:09:09 +0100 Subject: [PATCH] Make contorls stick to the top when scrolling Signed-off-by: Marin Treselj --- apps/files/css/files.scss | 4 ---- core/css/styles.scss | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index a8dede6631..5a5a3a5d30 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -48,10 +48,6 @@ width: 100%; } -#filestable.has-controls { - top: 44px; -} - #filestable tbody tr { height: 51px; } diff --git a/core/css/styles.scss b/core/css/styles.scss index 54775f67f6..edcaeb1742 100644 --- a/core/css/styles.scss +++ b/core/css/styles.scss @@ -223,7 +223,7 @@ body { #controls { box-sizing: border-box; - position: relative; + position: sticky; height: 44px; padding: 0; margin: 0; @@ -234,6 +234,7 @@ body { -ms-user-select: none; user-select: none; display: flex; + top: 0; } /* position controls for apps with app-navigation */