Skip to content

Commit

Permalink
fix darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Apr 1, 2024
1 parent d4fc4a6 commit ed8433b
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 38 deletions.
6 changes: 3 additions & 3 deletions locale/de_DE/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:42+0200\n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"PO-Revision-Date: 2024-01-18 22:42+0100\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -210,11 +210,11 @@ msgstr ""
"Für Leute, die Mafiasi weiterhin kostenlos nutzen wollen, bieten wir Mafiasi "
"ab heute mit Werbung an. Du hast die Wahl!"

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:12
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:13
msgid "Continue with ads"
msgstr "Weiter mit Werbung"

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:15
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:18
msgid "Book Mafiasi Purple"
msgstr "Mafiasi Purple buchen"

Expand Down
6 changes: 3 additions & 3 deletions locale/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:42+0200\n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"PO-Revision-Date: 2024-01-18 22:42+0100\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -191,11 +191,11 @@ msgid ""
"Mafiasi with advertising from today. The choice is yours!"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:12
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:13
msgid "Continue with ads"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:15
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:18
msgid "Book Mafiasi Purple"
msgstr ""

Expand Down
6 changes: 3 additions & 3 deletions locale/en_Uwu/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:42+0200\n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"PO-Revision-Date: 2024-01-09 22:14+0000\n"
"Last-Translator: kritzl <kritzl@kritzl.dev>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -205,13 +205,13 @@ msgid ""
"Mafiasi with advertising from today. The choice is yours!"
msgstr ""

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:12
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:13
#, fuzzy
#| msgid "Continue"
msgid "Continue with ads"
msgstr "Continue"

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:15
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:18
msgid "Book Mafiasi Purple"
msgstr ""

Expand Down
6 changes: 3 additions & 3 deletions locale/fr_FR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Mafiasi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-01 02:42+0200\n"
"POT-Creation-Date: 2024-04-01 02:46+0200\n"
"PO-Revision-Date: 2024-01-18 22:41+0100\n"
"Last-Translator: Markus Neblung <markus.neblung@uni-hamburg.de>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -217,11 +217,11 @@ msgstr ""
"nous proposons Mafiasi avec de la publicité à partir d'aujourd'hui. A toi de "
"choisir !"

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:12
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:13
msgid "Continue with ads"
msgstr "Continuer avec les annonces"

#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:15
#: mafiasi/dashboard/templates/dashboard/mafiasi_purple.html:18
msgid "Book Mafiasi Purple"
msgstr "Livre Mafiasi Purple"

Expand Down
60 changes: 34 additions & 26 deletions mafiasi/dashboard/templates/dashboard/mafiasi_purple.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
{% trans "For people who want to continue using Mafiasi for free, we are offering Mafiasi with advertising from today. The choice is yours!" %}
<div class="purple-content">
<div class="purple-variant">
<button class="btn btn-primary btn-purple" onClick="closePopup()">{% trans "Continue with ads" %}</button>
<button class="btn btn-primary btn-purple" onClick="closePopup()">
{% trans "Continue with ads" %}
</button>
</div>
<div class="purple-variant purple-content-devider">
<button class="btn btn-primary btn-purple" onClick="closePopup()">{% trans "Book Mafiasi Purple"%}</button>
<button class="btn btn-primary btn-purple" onClick="closePopup()">
{% trans "Book Mafiasi Purple"%}
</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -95,44 +99,46 @@
border: 4px solid var(--mafiasi-dark-purple);
}

html:not[data-theme=light] .purple-container {
background: var(--mafiasi-dark-bg);
color: var(--mafiasi-dark-text-light);
border: 4px solid var(--mafiasi-dark-purple);
}

html[data-theme=dark] .purple-title {
color: var(--mafiasi-dark-purple);
}

html:not[data-theme=light] .purple-title {
color: var(--mafiasi-dark-purple);
}

html[data-theme=dark] .purple-content-devider {
border-left: 1px solid var(--mafiasi-dark-purple);
}

html:not[data-theme=light] .purple-content-devider {
border-left: 1px solid var(--mafiasi-dark-purple);
}

html[data-theme=dark] .btn-purple {
background-color: var(--mafiasi-dark-purple) !important;
border-color: var(--mafiasi-dark-purple) !important;
}

html:not[data-theme=light] .btn-purple {
background-color: var(--mafiasi-dark-purple) !important;
border-color: var(--mafiasi-dark-purple) !important;
}

html[data-theme=dark] mark {
color: var(--mafiasi-dark-purple);
}

html:not[data-theme=light] mark {
color: var(--mafiasi-dark-purple);
@media (prefers-color-scheme: dark) {
html:not([data-theme=light]) .purple-container {
background: var(--mafiasi-dark-bg);
color: var(--mafiasi-dark-text-light);
border: 4px solid var(--mafiasi-dark-purple);
}

html:not([data-theme=light]) .purple-title {
color: var(--mafiasi-dark-purple);
}

html:not([data-theme=light]) .purple-content-devider {
border-left: 1px solid var(--mafiasi-dark-purple);
}

html:not([data-theme=light]) .btn-purple {
background-color: var(--mafiasi-dark-purple) !important;
border-color: var(--mafiasi-dark-purple) !important;
}

html:not([data-theme=light]) mark {
color: var(--mafiasi-dark-purple);
}
}

@media screen and (max-width: 500px) {
Expand All @@ -151,9 +157,11 @@
border-left: none;
}

html:not[data-theme=light] .purple-content-devider {
border-top: 1px solid var(--mafiasi-dark-purple);
border-left: none;
@media (prefers-color-scheme: dark) {
html:not([data-theme=light]) .purple-content-devider {
border-top: 1px solid var(--mafiasi-dark-purple);
border-left: none;
}
}
}
</style>

0 comments on commit ed8433b

Please sign in to comment.