mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 23:50:12 +01:00
overhaul: migrated to tailwind css for css management, consolidated custom css, removed inline css, removed unneeded css, and otherwise improved page styling
This commit is contained in:
parent
f1e21873e7
commit
b994978f60
81 changed files with 15784 additions and 2936 deletions
|
|
@ -1,5 +1,19 @@
|
|||
{# Reusable Jinja macros for UI elements #}
|
||||
|
||||
{#
|
||||
Component Library Imports
|
||||
|
||||
To use components in your templates:
|
||||
{% from 'partials/_macros.html' import component_name %}
|
||||
|
||||
Or import specific component libraries:
|
||||
{% from 'partials/_buttons.html' import button, icon_button %}
|
||||
{% from 'partials/_modals.html' import modal, simple_modal %}
|
||||
{% from 'partials/_card_display.html' import card_thumb, card_grid %}
|
||||
{% from 'partials/_forms.html' import text_input, select, checkbox %}
|
||||
{% from 'partials/_panels.html' import panel, stat_panel %}
|
||||
#}
|
||||
|
||||
{% macro lock_button(name, locked=False, from_list=False, target_selector='closest .lock-box') -%}
|
||||
{# Emits a lock/unlock button with correct hx-vals and aria state. #}
|
||||
<button type="button" class="btn-lock"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue