diff --git a/CHANGELOG.md b/CHANGELOG.md index 459be9a..7824f36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,9 @@ ## Improved * mark refunded purchases red on game overview * increase session count on game overview when starting a new session -* game overview: sort purchases also by date purchased (on top of date released) +* game overview: + * sort purchases also by date purchased (on top of date released) + * improve header format * stats: improve purchase name consistency * session list: use display name instead of sort name diff --git a/games/static/base.css b/games/static/base.css index e8342a9..72c1cd3 100644 --- a/games/static/base.css +++ b/games/static/base.css @@ -1,5 +1,5 @@ /* -! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com +! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com */ /* @@ -211,6 +211,8 @@ textarea { /* 1 */ line-height: inherit; /* 1 */ + letter-spacing: inherit; + /* 1 */ color: inherit; /* 1 */ margin: 0; @@ -234,9 +236,9 @@ select { */ button, -[type='button'], -[type='reset'], -[type='submit'] { +input:where([type='button']), +input:where([type='reset']), +input:where([type='submit']) { -webkit-appearance: button; /* 1 */ background-color: transparent; @@ -687,6 +689,10 @@ select { --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; + --tw-contain-size: ; + --tw-contain-layout: ; + --tw-contain-paint: ; + --tw-contain-style: ; } ::backdrop { @@ -737,6 +743,10 @@ select { --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; + --tw-contain-size: ; + --tw-contain-layout: ; + --tw-contain-paint: ; + --tw-contain-style: ; } .container { @@ -846,10 +856,6 @@ select { margin-bottom: 0.5rem; } -.mb-4 { - margin-bottom: 1rem; -} - .mb-8 { margin-bottom: 2rem; } @@ -894,6 +900,10 @@ select { display: none; } +.h-24 { + height: 6rem; +} + .h-3 { height: 0.75rem; } @@ -910,18 +920,6 @@ select { height: 1.5rem; } -.h-24 { - height: 6rem; -} - -.h-screen { - height: 100vh; -} - -.min-h-24 { - min-height: 6rem; -} - .min-h-screen { min-height: 100vh; } @@ -1016,10 +1014,6 @@ select { white-space: nowrap; } -.rounded { - border-radius: 0.25rem; -} - .rounded-full { border-radius: 9999px; } @@ -1057,11 +1051,6 @@ select { background-color: rgb(124 58 237 / var(--tw-bg-opacity)); } -.bg-white { - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - .p-4 { padding: 1rem; } @@ -1086,6 +1075,10 @@ select { padding-bottom: 0.5rem; } +.pb-16 { + padding-bottom: 4rem; +} + .pl-3 { padding-left: 0.75rem; } @@ -1102,18 +1095,6 @@ select { padding-top: 2rem; } -.pb-4 { - padding-bottom: 1rem; -} - -.pb-8 { - padding-bottom: 2rem; -} - -.pb-16 { - padding-bottom: 4rem; -} - .text-center { text-align: center; } @@ -1176,6 +1157,11 @@ select { color: rgb(203 213 225 / var(--tw-text-opacity)); } +.text-slate-500 { + --tw-text-opacity: 1; + color: rgb(100 116 139 / var(--tw-text-opacity)); +} + .text-white { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); @@ -1264,7 +1250,7 @@ a:hover { transition: all 0.2s ease-out; } -:is(.dark form label) { +form label:is(.dark *) { --tw-text-opacity: 1; color: rgb(148 163 184 / var(--tw-text-opacity)); } @@ -1274,7 +1260,7 @@ a:hover { margin-right: auto; } -:is(.dark .responsive-table) { +.responsive-table:is(.dark *) { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); } @@ -1305,9 +1291,9 @@ a:hover { border-left-color: rgb(100 116 139 / var(--tw-border-opacity)); } -:is(.dark form input),:is(.dark -select),:is(.dark -textarea) { +form input:is(.dark *), +select:is(.dark *), +textarea:is(.dark *) { border-width: 1px; --tw-border-opacity: 1; border-color: rgb(15 23 42 / var(--tw-border-opacity)); @@ -1317,9 +1303,9 @@ textarea) { color: rgb(241 245 249 / var(--tw-text-opacity)); } -:is(.dark form input:disabled),:is(.dark -select:disabled),:is(.dark -textarea:disabled) { +form input:disabled:is(.dark *), +select:disabled:is(.dark *), +textarea:disabled:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(51 65 85 / var(--tw-bg-opacity)); --tw-text-opacity: 1; @@ -1518,32 +1504,32 @@ th label { display: block; } -:is(.dark .dark\:bg-gray-800) { +.dark\:bg-gray-800:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(31 41 55 / var(--tw-bg-opacity)); } -:is(.dark .dark\:bg-gray-900) { +.dark\:bg-gray-900:is(.dark *) { --tw-bg-opacity: 1; background-color: rgb(17 24 39 / var(--tw-bg-opacity)); } -:is(.dark .dark\:text-slate-400) { +.dark\:text-slate-400:is(.dark *) { --tw-text-opacity: 1; color: rgb(148 163 184 / var(--tw-text-opacity)); } -:is(.dark .dark\:text-slate-500) { +.dark\:text-slate-500:is(.dark *) { --tw-text-opacity: 1; color: rgb(100 116 139 / var(--tw-text-opacity)); } -:is(.dark .dark\:text-slate-600) { +.dark\:text-slate-600:is(.dark *) { --tw-text-opacity: 1; color: rgb(71 85 105 / var(--tw-text-opacity)); } -:is(.dark .dark\:text-white) { +.dark\:text-white:is(.dark *) { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); } diff --git a/games/templates/view_game.html b/games/templates/view_game.html index fa66001..35061af 100644 --- a/games/templates/view_game.html +++ b/games/templates/view_game.html @@ -6,16 +6,19 @@ {% load markdown_extras %} {% block content %}
-

+

{{ game.name }} - (#{{ game.pk }}) {% url 'edit_game' game.id as edit_url %} {% include 'components/edit_button.html' with edit_url=edit_url %}

+

First Released: {{ game.year_released }}

- {{ hours_sum }} total - {{ session_average }} avg - ({{ playrange }}) + Playtime: + {{ hours_sum }} hours over {{ session_count }} sessions ({{ session_average }}/session) +

+

+ Played in: + {{ playrange }}