From 4d018df11aea4b6cc097d54cee6eafb112b7b2fe Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Wed, 3 Apr 2019 10:50:17 +0200 Subject: [PATCH] disable datatables, sticky table headers by natural css --- resources/app/stylesheets/app.less | 6 ++++++ resources/public/js/scripts.js | 1 + 2 files changed, 7 insertions(+) diff --git a/resources/app/stylesheets/app.less b/resources/app/stylesheets/app.less index aae7e7d..9179aef 100644 --- a/resources/app/stylesheets/app.less +++ b/resources/app/stylesheets/app.less @@ -1,6 +1,7 @@ @ci-blue: Highlight; @error-color: #e00; @accent-color: #efefef; +@body-background-color: #fcfcfc; @background-color: #eee; @ci-color: #aaa; @border-stack: 1px solid @ci-color; @@ -13,6 +14,7 @@ body { font-family: sans-serif; margin: 0; + background-color: @body-background-color; } a:link, @@ -228,6 +230,10 @@ table { } thead { + position: sticky; + top: 0; + background-color: @body-background-color; + th { padding: @text-padding-v @text-padding-h; border-bottom: @accent-border-width / 5 solid @ci-color; diff --git a/resources/public/js/scripts.js b/resources/public/js/scripts.js index d4e8b44..d9ed66b 100644 --- a/resources/public/js/scripts.js +++ b/resources/public/js/scripts.js @@ -44,6 +44,7 @@ document.addEventListener('DOMContentLoaded', function() { }) $(document).ready(function() { + return; $('table').DataTable({ stateSave: true, fixedHeader: true,