diff --git a/core/static/css/dist/styles.css b/core/static/css/dist/styles.css index 4a2cfef..fc2876d 100644 --- a/core/static/css/dist/styles.css +++ b/core/static/css/dist/styles.css @@ -1165,35 +1165,14 @@ select { margin-right: auto; } -.my-4 { - margin-top: 1rem; - margin-bottom: 1rem; -} - .mb-0 { margin-bottom: 0px; } -.mt-\[40px\] { - margin-top: 40px; -} - -.mb-\[20px\] { - margin-bottom: 20px; -} - -.ml-\[-12px\] { - margin-left: -12px; -} - .mb-4 { margin-bottom: 1rem; } -.mt-20 { - margin-top: 5rem; -} - .mt-8 { margin-top: 2rem; } @@ -1230,10 +1209,6 @@ select { display: none; } -.aspect-1 { - aspect-ratio: 1; -} - .h-\[40px\] { height: 40px; } @@ -1246,14 +1221,6 @@ select { height: 100vh; } -.h-12 { - height: 3rem; -} - -.h-16 { - height: 4rem; -} - .max-h-12 { max-height: 3rem; } @@ -1270,18 +1237,6 @@ select { width: 48px; } -.w-auto { - width: auto; -} - -.w-16 { - width: 4rem; -} - -.w-12 { - width: 3rem; -} - .min-w-\[145px\] { min-width: 145px; } @@ -1318,26 +1273,14 @@ select { place-items: center; } -.items-end { - align-items: flex-end; -} - .items-center { align-items: center; } -.justify-end { - justify-content: flex-end; -} - .justify-center { justify-content: center; } -.justify-between { - justify-content: space-between; -} - .justify-around { justify-content: space-around; } @@ -1346,14 +1289,14 @@ select { gap: 1rem; } -.gap-6 { - gap: 1.5rem; -} - .gap-3 { gap: 0.75rem; } +.gap-6 { + gap: 1.5rem; +} + .self-end { align-self: flex-end; } @@ -1409,14 +1352,14 @@ select { background-color: rgb(249 250 251 / var(--tw-bg-opacity)); } -.p-4 { - padding: 1rem; -} - .p-2 { padding: 0.5rem; } +.p-4 { + padding: 1rem; +} + .py-4 { padding-top: 1rem; padding-bottom: 1rem; @@ -1436,10 +1379,6 @@ select { padding-bottom: 0.25rem; } -.pr-\[50px\] { - padding-right: 50px; -} - .pt-0 { padding-top: 0px; } @@ -1458,30 +1397,34 @@ select { .text-4xl { font-size: 2.25rem; - line-height: 2.5rem; } .text-xl { font-size: 1.25rem; - line-height: 1.75rem; } .text-3xl { font-size: 1.875rem; - line-height: 2.25rem; -} - -.text-\[13px\] { - font-size: 13px; } .text-\[15px\] { font-size: 15px; } +.text-\[13px\] { + font-size: 13px; +} + +.text-\[5rem\] { + font-size: 5rem; +} + .text-5xl { font-size: 3rem; - line-height: 1; +} + +.text-\[2\.25rem\] { + font-size: 2.25rem; } .font-semibold { @@ -1500,6 +1443,10 @@ select { font-weight: 500; } +.font-extrabold { + font-weight: 800; +} + .lowercase { text-transform: lowercase; } @@ -1516,6 +1463,10 @@ select { line-height: 1.5; } +.leading-\[1\.1rem\] { + line-height: 1.1rem; +} + .tracking-normal { letter-spacing: 0em; } @@ -1605,25 +1556,10 @@ select { } .prose-h3\:text-xs :is(:where(h3):not(:where([class~="not-prose"] *))) { - font-size: 0.75rem; - line-height: 1rem; -} - -@media (min-width: 768px) { - .md\:ml-\[-12px\] { - margin-left: -12px; - } - - .md\:items-end { - align-items: flex-end; - } + font-size: .75rem; } @media (min-width: 1024px) { - .lg\:ml-\[-12px\] { - margin-left: -12px; - } - .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } diff --git a/core/static_src/tailwind.config.js b/core/static_src/tailwind.config.js index f8a7369..81c7aa1 100644 --- a/core/static_src/tailwind.config.js +++ b/core/static_src/tailwind.config.js @@ -6,53 +6,67 @@ */ module.exports = { - content: [ - /** - * HTML. Paths to Django template files that will contain Tailwind CSS classes. - */ + content: [ + /** + * HTML. Paths to Django template files that will contain Tailwind CSS classes. + */ - /* Templates within theme app (/templates), e.g. base.html. */ - '../templates/**/*.html', + /* Templates within theme app (/templates), e.g. base.html. */ + "../templates/**/*.html", - /* - * Main templates directory of the project (BASE_DIR/templates). - * Adjust the following line to match your project structure. - */ - '../../templates/**/*.html', - - /* - * Templates in other django apps (BASE_DIR//templates). - * Adjust the following line to match your project structure. - */ - '../../**/templates/**/*.html', + /* + * Main templates directory of the project (BASE_DIR/templates). + * Adjust the following line to match your project structure. + */ + "../../templates/**/*.html", - /** - * JS: If you use Tailwind CSS in JavaScript, uncomment the following lines and make sure - * patterns match your project structure. - */ - /* JS 1: Ignore any JavaScript in node_modules folder. */ - // '!../../**/node_modules', - /* JS 2: Process all JavaScript files in the project. */ - // '../../**/*.js', + /* + * Templates in other django apps (BASE_DIR//templates). + * Adjust the following line to match your project structure. + */ + "../../**/templates/**/*.html", - /** - * Python: If you use Tailwind CSS classes in Python, uncomment the following line - * and make sure the pattern below matches your project structure. - */ - // '../../**/*.py' - ], - theme: { - extend: {}, + /** + * JS: If you use Tailwind CSS in JavaScript, uncomment the following lines and make sure + * patterns match your project structure. + */ + /* JS 1: Ignore any JavaScript in node_modules folder. */ + // '!../../**/node_modules', + /* JS 2: Process all JavaScript files in the project. */ + // '../../**/*.js', + + /** + * Python: If you use Tailwind CSS classes in Python, uncomment the following line + * and make sure the pattern below matches your project structure. + */ + // '../../**/*.py' + ], + theme: { + fontSize: { + xs: ".75rem", + sm: ".875rem", + tiny: ".875rem", + base: "1rem", + lg: "1.125rem", + xl: "1.25rem", + "2xl": "1.5rem", + "3xl": "1.875rem", + "4xl": "2.25rem", + "5xl": "3rem", + "6xl": "4rem", + "7xl": "5rem", }, - plugins: [ - /** - * '@tailwindcss/forms' is the forms plugin that provides a minimal styling - * for forms. If you don't like it or have own styling for forms, - * comment the line below to disable '@tailwindcss/forms'. - */ - require('@tailwindcss/forms'), - require('@tailwindcss/typography'), - require('@tailwindcss/line-clamp'), - require('@tailwindcss/aspect-ratio'), - ], -} + extend: {}, + }, + plugins: [ + /** + * '@tailwindcss/forms' is the forms plugin that provides a minimal styling + * for forms. If you don't like it or have own styling for forms, + * comment the line below to disable '@tailwindcss/forms'. + */ + require("@tailwindcss/forms"), + require("@tailwindcss/typography"), + require("@tailwindcss/line-clamp"), + require("@tailwindcss/aspect-ratio"), + ], +}; diff --git a/core/templates/calendar.html b/core/templates/calendar.html index 50664dc..df39e42 100644 --- a/core/templates/calendar.html +++ b/core/templates/calendar.html @@ -3,12 +3,14 @@
{% for calendar in calendars %}
-

Kalendarz {{ calendar.year }}

+

+ Kalendarz {{ calendar.year }} +

{{ calendar.content | safe }}
{% empty %} - Brak dokumentów + Brak kalendarzy {% endfor %} {% endblock %}
diff --git a/core/templates/grandprix.html b/core/templates/grandprix.html index 69e7360..7f09119 100644 --- a/core/templates/grandprix.html +++ b/core/templates/grandprix.html @@ -1,7 +1,9 @@ {% extends 'base.html' %} {% block title %}Strona główna | pdlzbs{% endblock %} {% load static tailwind_tags %} {% block content %} -
-

Grand Prix Białegostoku

+
+

+ Grand Prix Białegostoku +

{{ gp.content | safe }}
{% endblock %} diff --git a/templates/admin/base.html b/templates/admin/base.html index 2995776..adab61c 100644 --- a/templates/admin/base.html +++ b/templates/admin/base.html @@ -1,4 +1,8 @@ -{% extends 'admin/base.html' %} {% block extrahead %}{{ block.super }} +{% extends 'admin/base.html' %} +{% load i18n admin_urls %} + +{% block extrastyle %} +{{ block.super }} {% endblock %} + +{% block userlinks %} + {% if site_url %} + {% translate 'View site' %} / + {% endif %} + {% if user.is_active and user.is_staff %} + {% url 'django-admindocs-docroot' as docsroot %} + {% if docsroot %} + {% translate 'Documentation' %} / + {% endif %} + {% endif %} + {% if user.has_usable_password %} + {% translate 'Change password' %} / + {% endif %} + {% translate 'Log out' %} +{% endblock %}