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

View File

@ -11,11 +11,6 @@ body
color: #373737; color: #373737;
} }
.myaac-table tbody tr:nth-child(even) {background: #e5e3d7} /* light border */
.myaac-table tbody tr:nth-child(odd) {background: #d0cdb4} /* dark border */
.myaac-table thead td {background: #afab89; color: #ffffff !important;} /* vdark border */
.myaac-table tfoot td {background: #afab89; color: #ffffff !important;} /* vdark border */
#page #page
{ {
width: 780px; width: 780px;

View File

@ -11,11 +11,6 @@ img {
border: none; border: none;
} }
.myaac-table tbody tr:nth-child(even) {background: #F1E0C6} /* light border */
.myaac-table tbody tr:nth-child(odd) {background: #D4C0A1} /* dark border */
.myaac-table thead td {background: #505050; color: #ffffff !important;} /* vdark border */
.myaac-table tfoot td {background: #505050; color: #ffffff !important;} /* vdark border */
#ArtworkHelper { #ArtworkHelper {
text-align: center; text-align: center;
background-position: top center; background-position: top center;