diff --git a/css/optionsPages.css b/css/optionsPages.css new file mode 100644 index 0000000..82487d4 --- /dev/null +++ b/css/optionsPages.css @@ -0,0 +1,15 @@ +#customEnergyValues { + width: 100% !important; + table-layout: auto !important; + font-family: Arial, sans-serif; + font-size: 0.75rem; +} + +#customEnergyValues_info, +#customEnergyValues_paginate .dt-paging-button, +.dt-length, +.dt-search, +.dt-paging { + font-family: Arial, sans-serif !important; + font-size: 0.75rem !important; +} diff --git a/customEnergyValues.php b/customEnergyValues.php index 2f59209..c662793 100644 --- a/customEnergyValues.php +++ b/customEnergyValues.php @@ -63,7 +63,7 @@ $pageTitle = "Eigene Stromdaten"; $jsHeaderFiles = ["/js/utils.js"]; $jsFooterFiles = ["/js/custom-energy-values/documentReady.js"]; -$cssFiles = []; +$cssFiles = ["/css/optionsPages.css"]; $jsVars = []; $partialTop = "views/pages/custom-energy-values/inputform.phtml"; diff --git a/js/custom-energy-values/documentReady.js b/js/custom-energy-values/documentReady.js index e0ae8f5..20ca44d 100644 --- a/js/custom-energy-values/documentReady.js +++ b/js/custom-energy-values/documentReady.js @@ -72,10 +72,14 @@ $(document).ready(function() { "paging": true, "searching": true, "ordering": true, + "orderMulti": false, + "scrollX": false, + "orderCellsTop": false, "order": [ [0, 'asc'] ], "pageLength": 25, + "responsive": true, "columnDefs": [{ "targets": 0, "orderDataType": "dom-text", // Sort for "data-sort"-Attribute @@ -90,4 +94,4 @@ $(document).ready(function() { search: "Suchen:", } }); -}); \ No newline at end of file +}); diff --git a/js/custom-price-values/documentReady.js b/js/custom-price-values/documentReady.js index 9d3c7cf..1b9dca2 100644 --- a/js/custom-price-values/documentReady.js +++ b/js/custom-price-values/documentReady.js @@ -36,10 +36,14 @@ $(document).ready(function() { "paging": true, "searching": true, "ordering": true, + "orderMulti": false, + "scrollX": false, + "orderCellsTop": false, "order": [ [0, 'asc'] ], "pageLength": 25, + "responsive": true, "columnDefs": [{ "targets": 0, "orderDataType": "dom-text", // Sort for "data-sort"-Attribute diff --git a/views/pages/custom-energy-values/inputform.phtml b/views/pages/custom-energy-values/inputform.phtml index 96da8c7..9864623 100644 --- a/views/pages/custom-energy-values/inputform.phtml +++ b/views/pages/custom-energy-values/inputform.phtml @@ -13,7 +13,7 @@