diff --git a/core/templates/calendar.html b/core/templates/calendar.html index f886619..f786853 100644 --- a/core/templates/calendar.html +++ b/core/templates/calendar.html @@ -1,12 +1,29 @@ {% extends 'base.html' %} {% block title %}Kalendarz | pdlzbs{% endblock %} {% load static tailwind_tags wysiwyg %} {% block content %} + + +{% if calendars %} + +{% endif %} +
{% for calendar in calendars %} -
{% content calendar %}
- {% if not forloop.last %} -
- {% endif %} {% empty %} + + {% empty %} Brak kalendarzy {% endfor %}
diff --git a/core/templates/league.html b/core/templates/league.html index 22c7b89..a758962 100644 --- a/core/templates/league.html +++ b/core/templates/league.html @@ -17,7 +17,7 @@ href="{{ score.link }}" target="_blank" rel="noreferrer noopener" - class="button {% if forloop.counter0|divisibleby:2 %} pink color {% else %} rose color {% endif %}" + class="button {% if forloop.counter0|divisibleby:2 %} sky color {% else %} green color {% endif %}" > Wyniki {{score.rank}} ligi DMP {{score.year}}-{{score.year|add:"1"}} diff --git a/core/templates/membership.html b/core/templates/membership.html index 821bda8..0934fc9 100644 --- a/core/templates/membership.html +++ b/core/templates/membership.html @@ -3,12 +3,29 @@ {% block title %}Składki Członkowskie | pdlzbs{% endblock %} {% load static tailwind_tags wysiwyg %} {% block content %} + + +{% if memberships %} + +{% endif %} +
{% for membership in memberships %} -
{% content membership %}
- {% if not forloop.last %} -
- {% endif %} {% empty %} + + {% empty %} Brak dokumentów {% endfor %}
diff --git a/core/templates/tournaments-reverse.html b/core/templates/tournaments-reverse.html index be6b1c8..5842ee7 100644 --- a/core/templates/tournaments-reverse.html +++ b/core/templates/tournaments-reverse.html @@ -8,9 +8,6 @@ {% if focus.show_title %}

{{ focus.title }}

{% endif %} -
- {% buttons focus.buttons %} -
{% content focus %}
+
+ {% buttons focus.buttons %} +
{% endblock %} diff --git a/core/templates/tournaments.html b/core/templates/tournaments.html index 8da2e24..aaad333 100644 --- a/core/templates/tournaments.html +++ b/core/templates/tournaments.html @@ -11,9 +11,6 @@ {% if tournament.show_title %}

{{ tournament.title }}

{% endif %} -
- {% buttons tournament.buttons %} -
{% content tournament %}
+
+ {% buttons tournament.buttons %} +
{% if not forloop.last %}
diff --git a/core/templates/youth-reverse.html b/core/templates/youth-reverse.html index eef7aca..032c154 100644 --- a/core/templates/youth-reverse.html +++ b/core/templates/youth-reverse.html @@ -7,11 +7,10 @@
{% if focus.show_title %}

{{ focus.title }}

- {% endif %} + {% endif %} {% content focus %}
{% buttons focus.buttons %}
- {% content focus %}
{% endblock %} diff --git a/core/templates/youth.html b/core/templates/youth.html index 32e4c40..7d86cdb 100644 --- a/core/templates/youth.html +++ b/core/templates/youth.html @@ -8,11 +8,10 @@
{% if article.show_title %}

{{ article.title }}

- {% endif %} + {% endif %} {% content article %}
{% buttons article.buttons %}
- {% content article %}
{% if not forloop.last %}
diff --git a/core/templatetags/wysiwyg.py b/core/templatetags/wysiwyg.py index ab644c5..d40e806 100644 --- a/core/templatetags/wysiwyg.py +++ b/core/templatetags/wysiwyg.py @@ -46,7 +46,7 @@ def buttons(value: str): target = 'target="_self"' stripped = text.strip() - return f'{stripped}' if stripped else '' + return f'{stripped}' if stripped else '' except: return '' diff --git a/static/css/dist/styles.css b/static/css/dist/styles.css index 34f6f36..3377809 100644 --- a/static/css/dist/styles.css +++ b/static/css/dist/styles.css @@ -1293,10 +1293,6 @@ select { margin-top: 1.5rem; } -.mb-8 { - margin-bottom: 2rem; -} - .mb-4 { margin-bottom: 1rem; } @@ -1553,11 +1549,6 @@ select { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; } -.text-xl { - font-size: 1.25rem; - line-height: 1.75rem; -} - .text-2xl { font-size: 1.5rem; line-height: 2rem; @@ -1577,6 +1568,11 @@ select { font-size: 15px; } +.text-xl { + font-size: 1.25rem; + line-height: 1.75rem; +} + .text-\[2\.25rem\] { font-size: 2.25rem; } @@ -1586,14 +1582,14 @@ select { line-height: 1; } -.font-medium { - font-weight: 500; -} - .font-light { font-weight: 300; } +.font-medium { + font-weight: 500; +} + .font-normal { font-weight: 400; } @@ -1710,6 +1706,26 @@ select { background-color: rgb(186 230 253 / var(--tw-bg-opacity)); } +.color.green { + --tw-border-opacity: 1; + border-color: rgb(187 247 208 / var(--tw-border-opacity)); + } + +.color.green { + --tw-bg-opacity: 1; + background-color: rgb(220 252 231 / var(--tw-bg-opacity)); + } + +.color.green:hover { + --tw-border-opacity: 1; + border-color: rgb(134 239 172 / var(--tw-border-opacity)); + } + +.color.green:hover { + --tw-bg-opacity: 1; + background-color: rgb(187 247 208 / var(--tw-bg-opacity)); + } + .color.indigo { --tw-border-opacity: 1; border-color: rgb(199 210 254 / var(--tw-border-opacity)); @@ -1775,6 +1791,20 @@ h4 { display: block; } +.last\:hidden:last-child { + display: none; +} + +.target\:block:target { + display: block; +} + +.active\:ring-2:active { + --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); + box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); +} + .prose-h2\:mb-2 :is(:where(h2):not(:where([class~="not-prose"] *))) { margin-bottom: 0.5rem; } diff --git a/theme/static/css/dist/styles.css b/theme/static/css/dist/styles.css index 692f6e7..3377809 100644 --- a/theme/static/css/dist/styles.css +++ b/theme/static/css/dist/styles.css @@ -1293,10 +1293,6 @@ select { margin-top: 1.5rem; } -.mb-8 { - margin-bottom: 2rem; -} - .mb-4 { margin-bottom: 1rem; } @@ -1309,10 +1305,6 @@ select { margin-bottom: auto; } -.mt-0 { - margin-top: 0px; -} - .block { display: block; } @@ -1557,11 +1549,6 @@ select { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; } -.text-xl { - font-size: 1.25rem; - line-height: 1.75rem; -} - .text-2xl { font-size: 1.5rem; line-height: 2rem; @@ -1581,6 +1568,11 @@ select { font-size: 15px; } +.text-xl { + font-size: 1.25rem; + line-height: 1.75rem; +} + .text-\[2\.25rem\] { font-size: 2.25rem; } @@ -1590,14 +1582,14 @@ select { line-height: 1; } -.font-medium { - font-weight: 500; -} - .font-light { font-weight: 300; } +.font-medium { + font-weight: 500; +} + .font-normal { font-weight: 400; } @@ -1622,10 +1614,6 @@ select { line-height: 1.5; } -.leading-3 { - line-height: .75rem; -} - .tracking-normal { letter-spacing: 0em; } @@ -1718,6 +1706,26 @@ select { background-color: rgb(186 230 253 / var(--tw-bg-opacity)); } +.color.green { + --tw-border-opacity: 1; + border-color: rgb(187 247 208 / var(--tw-border-opacity)); + } + +.color.green { + --tw-bg-opacity: 1; + background-color: rgb(220 252 231 / var(--tw-bg-opacity)); + } + +.color.green:hover { + --tw-border-opacity: 1; + border-color: rgb(134 239 172 / var(--tw-border-opacity)); + } + +.color.green:hover { + --tw-bg-opacity: 1; + background-color: rgb(187 247 208 / var(--tw-bg-opacity)); + } + .color.indigo { --tw-border-opacity: 1; border-color: rgb(199 210 254 / var(--tw-border-opacity)); @@ -1783,8 +1791,18 @@ h4 { display: block; } -.prose-headings\:mt-0 :is(:where(h1, h2, h3, h4, th):not(:where([class~="not-prose"] *))) { - margin-top: 0px; +.last\:hidden:last-child { + display: none; +} + +.target\:block:target { + display: block; +} + +.active\:ring-2:active { + --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); + box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); } .prose-h2\:mb-2 :is(:where(h2):not(:where([class~="not-prose"] *))) { diff --git a/theme/static_src/src/styles.css b/theme/static_src/src/styles.css index 98225fc..347b6d7 100644 --- a/theme/static_src/src/styles.css +++ b/theme/static_src/src/styles.css @@ -64,6 +64,10 @@ h4 { @apply border-sky-200 bg-sky-100 hover:border-sky-300 hover:bg-sky-200; } + &.green { + @apply border-green-200 hover:border-green-300 bg-green-100 hover:bg-green-200; + } + &.indigo { @apply border-indigo-200 bg-indigo-100 hover:border-indigo-300 hover:bg-indigo-200; }