System-solution for styled tables, that works with every template

This commit is contained in:
slawkens
2024-01-25 21:57:20 +01:00
parent 3f4c02a327
commit d2a3a9a8da
4 changed files with 9 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
<style>
.myaac-table tbody tr:nth-child(even) {background: {{ config.lightborder }}}
.myaac-table tbody tr:nth-child(odd) {background: {{ config.darkborder }}}
.myaac-table thead td {background: {{ config.vdarkborder }}; color: #ffffff !important;}
.myaac-table tfoot td {background: {{ config.vdarkborder }}; color: #ffffff !important;}
</style>

View File

@@ -18,3 +18,6 @@
Please turn it on, or be aware that some features on this website will not work correctly.
</div>
</noscript>
{% if constant('MYAAC_ADMIN') is not defined %}
{{ include('tables.style.html.twig') }}
{% endif %}