mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
System-solution for styled tables, that works with every template
This commit is contained in:
6
system/templates/tables.style.html.twig
Normal file
6
system/templates/tables.style.html.twig
Normal 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>
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user