Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

feat: uniformize layout and styles (+ checkboxes and radios) (#423)

Miguel Ribeiroc166c7e84c06
diff --git a/about.php b/about.php
index b46e7a4..bd5f9cf 100644
--- a/about.php
+++ b/about.php
@@ -9,6 +9,7 @@ require_once 'includes/header.php';
<h2><?= translate('about_and_credits', $i18n) ?></h2>
</header>
<div class="credits-list">
+ <h3><?= translate('about', $i18n) ?></h3>
<p>Wallos <?= $version ?></p>
<p><?= translate('license', $i18n) ?>:
<span>
@@ -38,6 +39,7 @@ require_once 'includes/header.php';
</a>
</span>
</p>
+ <h3><?= translate('credits', $i18n) ?></h3>
<p>
<?= translate('icons', $i18n) ?>:
<span>
diff --git a/admin.php b/admin.php
index ccf8033..0ae37fd 100644
--- a/admin.php
+++ b/admin.php
@@ -99,7 +99,7 @@ $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0;
</p>
</div>
<div class="buttons">
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>" id="saveAccountRegistrations"
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>" id="saveAccountRegistrations"
onClick="saveAccountRegistrationsButton()" />
</div>
</div>
@@ -185,10 +185,14 @@ $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0;
class="one-third" value="<?= $settings['smtp_port'] ?>" />
</div>
<div class="form-group-inline">
- <input type="radio" name="encryption" id="encryptiontls" value="tls" <?= empty($settings['encryption']) || $settings['encryption'] == "tls" ? "checked" : "" ?> />
- <label for="encryptiontls"><?= translate('tls', $i18n) ?></label>
- <input type="radio" name="encryption" id="encryptionssl" value="ssl" <?= $settings['encryption'] == "ssl" ? "checked" : "" ?> />
- <label for="encryptionssl"><?= translate('ssl', $i18n) ?></label>
+ <div>
+ <input type="radio" name="encryption" id="encryptiontls" value="tls" <?= empty($settings['encryption']) || $settings['encryption'] == "tls" ? "checked" : "" ?> />
+ <label for="encryptiontls"><?= translate('tls', $i18n) ?></label>
+ </div>
+ <div>
+ <input type="radio" name="encryption" id="encryptionssl" value="ssl" <?= $settings['encryption'] == "ssl" ? "checked" : "" ?> />
+ <label for="encryptionssl"><?= translate('ssl', $i18n) ?></label>
+ </div>
</div>
<div class="form-group-inline">
<input type="text" name="smtpusername" id="smtpusername"
@@ -202,6 +206,12 @@ $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0;
<input type="text" name="fromemail" id="fromemail" placeholder="<?= translate('from_email', $i18n) ?>"
value="<?= $settings['from_email'] ?>" />
</div>
+ <div class="buttons">
+ <input type="button" class="secondary-button thin mobile-grow" value="<?= translate('test', $i18n) ?>"
+ id="testSmtpSettingsButton" onClick="testSmtpSettingsButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>" id="saveSmtpSettingsButton"
+ onClick="saveSmtpSettingsButton()" />
+ </div>
<div class="settings-notes">
<p>
<i class="fa-solid fa-circle-info"></i> <?= translate('smtp_info', $i18n) ?>
@@ -211,12 +221,6 @@ $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0;
<?= translate('smtp_usage_info', $i18n) ?>
</p>
</div>
- <div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testSmtpSettingsButton" onClick="testSmtpSettingsButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>" id="saveSmtpSettingsButton"
- onClick="saveSmtpSettingsButton()" />
- </div>
</div>
</section>
@@ -226,16 +230,12 @@ $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0;
<h2><?= translate('backup_and_restore', $i18n) ?></h2>
</header>
<div class="form-group-inline">
- <div>
- <input type="button" class="button thin" value="<?= translate('backup', $i18n) ?>" id="backupDB"
- onClick="backupDB()" />
- </div>
- <div>
- <input type="button" class="secondary-button thin" value="<?= translate('restore', $i18n) ?>"
- id="restoreDB" onClick="openRestoreDBFileSelect()" />
- <input type="file" name="restoreDBFile" id="restoreDBFile" style="display: none;" onChange="restoreDB()"
- accept=".zip">
- </div>
+ <input type="button" class="button thin mobile-grow" value="<?= translate('backup', $i18n) ?>" id="backupDB"
+ onClick="backupDB()" />
+ <input type="button" class="secondary-button thin mobile-grow" value="<?= translate('restore', $i18n) ?>"
+ id="restoreDB" onClick="openRestoreDBFileSelect()" />
+ <input type="file" name="restoreDBFile" id="restoreDBFile" style="display: none;" onChange="restoreDB()"
+ accept=".zip">
</div>
<div class="settings-notes">
<p>
diff --git a/includes/i18n/de.php b/includes/i18n/de.php
index c894831..811f989 100644
--- a/includes/i18n/de.php
+++ b/includes/i18n/de.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Zahlungsmethode",
// About page
'about_and_credits' => "Informationen und Danksagungen",
+ "credits" => "Danksagungen",
'license' => "Lizenz",
'issues_and_requests' => "Issues und Anfragen",
'the_author' => "Der Autor",
diff --git a/includes/i18n/el.php b/includes/i18n/el.php
index 7001976..9692984 100644
--- a/includes/i18n/el.php
+++ b/includes/i18n/el.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Διαχωρισμός τρόπου πληρωμής",
// About page
'about_and_credits' => "Σχετικά και Credits",
+ "credits" => "Credits",
'license' => "License",
'issues_and_requests' => "Προβλήματα και αιτήσεις",
'the_author' => "Προγραμματιστής",
diff --git a/includes/i18n/en.php b/includes/i18n/en.php
index 5edfffb..c38d4b6 100644
--- a/includes/i18n/en.php
+++ b/includes/i18n/en.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Payment Method Split",
// About page
'about_and_credits' => "About and Credits",
+ "credits" => "Credits",
'license' => "License",
'issues_and_requests' => "Issues and Requests",
'the_author' => "The author",
diff --git a/includes/i18n/es.php b/includes/i18n/es.php
index c879c76..aba72eb 100644
--- a/includes/i18n/es.php
+++ b/includes/i18n/es.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "División por Método de Pago",
// About page
'about_and_credits' => "Acerca de y Créditos",
+ "credits" => "Créditos",
'license' => "Licencia",
'issues_and_requests' => "Problemas y Solicitudes",
'the_author' => "El autor",
diff --git a/includes/i18n/fr.php b/includes/i18n/fr.php
index dade858..4295ac0 100644
--- a/includes/i18n/fr.php
+++ b/includes/i18n/fr.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Répartition par méthode de paiement",
// Page À propos
'about_and_credits' => "À propos et crédits",
+ "credits" => "Crédits",
'license' => "Licence",
'issues_and_requests' => "Problèmes et demandes",
'the_author' => "L'auteur",
diff --git a/includes/i18n/it.php b/includes/i18n/it.php
index 9879b73..362208c 100644
--- a/includes/i18n/it.php
+++ b/includes/i18n/it.php
@@ -113,6 +113,7 @@ $i18n = [
// About
'about_and_credits' => 'Informazioni e crediti',
+ "credits" => "Crediti",
'license' => 'Licenza',
'issues_and_requests' => 'Problemi e richieste',
'the_author' => "L'autore",
diff --git a/includes/i18n/jp.php b/includes/i18n/jp.php
index 189bd37..5a31397 100644
--- a/includes/i18n/jp.php
+++ b/includes/i18n/jp.php
@@ -106,7 +106,8 @@ $i18n = [
'payment_method_split' => "支払い方法別",
// About page
'about_and_credits' => "概要とクレジット",
- 'license' => "License",
+ "credits" => "クレジット",
+ 'license' => "ライセンス",
'issues_and_requests' => "問題と要望",
'the_author' => "著者",
'icons' => "アイコン",
diff --git a/includes/i18n/ko.php b/includes/i18n/ko.php
index 3ec1152..ee3365f 100644
--- a/includes/i18n/ko.php
+++ b/includes/i18n/ko.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "지불방법별",
// About page
'about_and_credits' => "개요 및 크레딧",
+ "credits" => "크레딧",
'license' => "라이선스",
'issues_and_requests' => "이슈 및 요청",
'the_author' => "제작자",
diff --git a/includes/i18n/pl.php b/includes/i18n/pl.php
index bb60284..5873c2d 100644
--- a/includes/i18n/pl.php
+++ b/includes/i18n/pl.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Podział metod płatności",
// About page
'about_and_credits' => "Informacje i podziękowania",
+ "credits" => "Podziękowania",
'license' => "Licencja",
'issues_and_requests' => "Problemy i prośby",
'the_author' => "Autor",
@@ -181,7 +182,7 @@ $i18n = [
"theme" => "Motyw",
"dark_theme" => "Przełącz na jasny/ciemny motyw",
"light_theme" => "Przełącz na ciemny/jasny motyw",
- "automatic"=> "Automatycznie",
+ "automatic" => "Automatycznie",
"main_color" => "Główny kolor",
"accent_color" => "Kolor akcentowy",
"hover_color" => "Kolor najechania",
diff --git a/includes/i18n/pt.php b/includes/i18n/pt.php
index 828f990..f1e2654 100644
--- a/includes/i18n/pt.php
+++ b/includes/i18n/pt.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Por Método de Pagamento",
// About page
'about_and_credits' => "Sobre e Créditos",
+ "credits" => "Créditos",
'license' => "Licença",
'issues_and_requests' => "Problemas e Pedidos",
'the_author' => "O Autor",
diff --git a/includes/i18n/pt_br.php b/includes/i18n/pt_br.php
index c1be7d9..fe57578 100644
--- a/includes/i18n/pt_br.php
+++ b/includes/i18n/pt_br.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Por método de pagamento",
// About page
'about_and_credits' => "Sobre e Créditos",
+ "credits" => "Créditos",
'license' => "Licença",
'issues_and_requests' => "Problemas e Pedidos",
'the_author' => "O autor",
diff --git a/includes/i18n/ru.php b/includes/i18n/ru.php
index 4282566..02bbdec 100644
--- a/includes/i18n/ru.php
+++ b/includes/i18n/ru.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "По способам оплаты",
// About page
'about_and_credits' => "О компании и авторах",
+ "credits" => "Благодарности",
'license' => "Лицензия",
'issues_and_requests' => "Проблемы и вопросы",
'the_author' => "Автор",
diff --git a/includes/i18n/sl.php b/includes/i18n/sl.php
index 5672f2e..322bc74 100644
--- a/includes/i18n/sl.php
+++ b/includes/i18n/sl.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Razdelitev načina plačila",
// About page
'about_and_credits' => "O programu in zahvale",
+ "credits" => "Zahvale",
'license' => "Licenca",
'issues_and_requests' => "Težave in zahteve",
'the_author' => "Avtor",
diff --git a/includes/i18n/sr.php b/includes/i18n/sr.php
index eba5e1d..4149c85 100644
--- a/includes/i18n/sr.php
+++ b/includes/i18n/sr.php
@@ -105,6 +105,7 @@ $i18n = [
'payment_method_split' => "Подела по начинима плаћања",
// Страница о апликацији
'about_and_credits' => "О апликацији и заслугама",
+ "credits" => "Заслуге",
'license' => "Лиценца",
'issues_and_requests' => "Проблеми и захтеви",
'the_author' => "Аутор",
diff --git a/includes/i18n/sr_lat.php b/includes/i18n/sr_lat.php
index 2535d03..79456b0 100644
--- a/includes/i18n/sr_lat.php
+++ b/includes/i18n/sr_lat.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Podela po načinu plaćanja",
// Stranica O aplikaciji
'about_and_credits' => "O aplikaciji i zasluge",
+ "credits" => "Zasluge",
'license' => "Licenca",
'issues_and_requests' => "Problemi i zahtevi",
'the_author' => "Autor",
diff --git a/includes/i18n/tr.php b/includes/i18n/tr.php
index bf08e2a..91243a8 100644
--- a/includes/i18n/tr.php
+++ b/includes/i18n/tr.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "Ödeme Yöntemi Bölümü",
// About page
'about_and_credits' => "Hakkında ve Teşekkürler",
+ "credits" => "Teşekkürler",
'license' => "Lisans",
'issues_and_requests' => "Sorunlar ve İstekler",
'the_author' => "Yazar",
diff --git a/includes/i18n/zh_cn.php b/includes/i18n/zh_cn.php
index 617b444..1111a88 100644
--- a/includes/i18n/zh_cn.php
+++ b/includes/i18n/zh_cn.php
@@ -113,6 +113,7 @@ $i18n = [
// 关于页面
'about_and_credits' => "关于和鸣谢",
+ "credits" => "鸣谢",
'license' => "许可证",
'issues_and_requests' => "问题反馈与功能请求",
'the_author' => "作者",
diff --git a/includes/i18n/zh_tw.php b/includes/i18n/zh_tw.php
index aafc3f6..2ad410e 100644
--- a/includes/i18n/zh_tw.php
+++ b/includes/i18n/zh_tw.php
@@ -106,6 +106,7 @@ $i18n = [
'payment_method_split' => "付款方式分割",
// 關於頁面
'about_and_credits' => "關於和致謝",
+ "credits" => "致謝",
'license' => "授權許可",
'issues_and_requests' => "問題回饋與功能請求",
'the_author' => "作者",
diff --git a/includes/version.php b/includes/version.php
index 356290f..d35e05d 100644
--- a/includes/version.php
+++ b/includes/version.php
@@ -1,3 +1,3 @@
<?php
-$version = "v2.12.0";
+$version = "v2.13.0";
?>
\ No newline at end of file
diff --git a/scripts/theme.js b/scripts/theme.js
index f267fba..cfe63cd 100644
--- a/scripts/theme.js
+++ b/scripts/theme.js
@@ -1,143 +1,143 @@
function switchTheme() {
- const darkThemeCss = document.querySelector("#dark-theme");
- darkThemeCss.disabled = !darkThemeCss.disabled;
+ const darkThemeCss = document.querySelector("#dark-theme");
+ darkThemeCss.disabled = !darkThemeCss.disabled;
- const themeChoice = darkThemeCss.disabled ? 'light' : 'dark';
- document.cookie = `theme=${themeChoice}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
+ const themeChoice = darkThemeCss.disabled ? 'light' : 'dark';
+ document.cookie = `theme=${themeChoice}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
- document.body.className = themeChoice;
+ document.body.className = themeChoice;
- const button = document.getElementById("switchTheme");
- button.disabled = true;
+ const button = document.getElementById("switchTheme");
+ button.disabled = true;
- fetch('endpoints/settings/theme.php', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({ theme: themeChoice === 'dark' })
- })
- .then(response => response.json())
- .then(data => {
- if (data.success) {
- showSuccessMessage(data.message);
- } else {
- showErrorMessage(data.errorMessage);
- }
- button.disabled = false;
- }).catch(error => {
- button.disabled = false;
- });
+ fetch('endpoints/settings/theme.php', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({ theme: themeChoice === 'dark' })
+ })
+ .then(response => response.json())
+ .then(data => {
+ if (data.success) {
+ showSuccessMessage(data.message);
+ } else {
+ showErrorMessage(data.errorMessage);
+ }
+ button.disabled = false;
+ }).catch(error => {
+ button.disabled = false;
+ });
}
function setDarkTheme(theme) {
- const darkThemeButton = document.querySelector("#theme-dark");
- const lightThemeButton = document.querySelector("#theme-light");
- const automaticThemeButton = document.querySelector("#theme-automatic");
- const darkThemeCss = document.querySelector("#dark-theme");
- const themes = { 0: 'light', 1: 'dark', 2: 'automatic' };
- const themeValue = themes[theme];
- const prefersDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
-
- darkThemeButton.disabled = true;
- lightThemeButton.disabled = true;
- automaticThemeButton.disabled = true;
-
- fetch('endpoints/settings/theme.php', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({ theme: theme })
- })
- .then(response => response.json())
- .then(data => {
- if (data.success) {
- darkThemeButton.disabled = false;
- lightThemeButton.disabled = false;
- automaticThemeButton.disabled = false;
- darkThemeButton.classList.remove('selected');
- lightThemeButton.classList.remove('selected');
- automaticThemeButton.classList.remove('selected');
-
- document.cookie = `theme=${themeValue}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
-
- if (theme == 0) {
- darkThemeCss.disabled = true;
- document.body.className = 'light';
- lightThemeButton.classList.add('selected');
- }
-
- if (theme == 1) {
- darkThemeCss.disabled = false;
- document.body.className = 'dark';
- darkThemeButton.classList.add('selected');
- }
-
- if (theme == 2) {
- darkThemeCss.disabled = !prefersDarkMode;
- document.body.className = prefersDarkMode ? 'dark' : 'light';
- automaticThemeButton.classList.add('selected');
- document.cookie = `inUseTheme=${prefersDarkMode ? 'dark' : 'light'}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
- }
-
- showSuccessMessage(data.message);
- } else {
- showErrorMessage(data.errorMessage);
- darkThemeButton.disabled = false;
- lightThemeButton.disabled = false;
- automaticThemeButton.disabled = false;
- }
- }).catch(error => {
- darkThemeButton.disabled = false;
- lightThemeButton.disabled = false;
- automaticThemeButton.disabled = false;
- });
-}
+ const darkThemeButton = document.querySelector("#theme-dark");
+ const lightThemeButton = document.querySelector("#theme-light");
+ const automaticThemeButton = document.querySelector("#theme-automatic");
+ const darkThemeCss = document.querySelector("#dark-theme");
+ const themes = { 0: 'light', 1: 'dark', 2: 'automatic' };
+ const themeValue = themes[theme];
+ const prefersDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
-function setTheme(themeColor) {
- var currentTheme = 'blue';
- var themeIds = ['red-theme', 'green-theme', 'yellow-theme', 'purple-theme'];
-
- themeIds.forEach(function(id) {
- var themeStylesheet = document.getElementById(id);
- if (themeStylesheet && !themeStylesheet.disabled) {
- currentTheme = id.replace('-theme', '');
- themeStylesheet.disabled = true;
+ darkThemeButton.disabled = true;
+ lightThemeButton.disabled = true;
+ automaticThemeButton.disabled = true;
+
+ fetch('endpoints/settings/theme.php', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({ theme: theme })
+ })
+ .then(response => response.json())
+ .then(data => {
+ if (data.success) {
+ darkThemeButton.disabled = false;
+ lightThemeButton.disabled = false;
+ automaticThemeButton.disabled = false;
+ darkThemeButton.classList.remove('selected');
+ lightThemeButton.classList.remove('selected');
+ automaticThemeButton.classList.remove('selected');
+
+ document.cookie = `theme=${themeValue}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
+
+ if (theme == 0) {
+ darkThemeCss.disabled = true;
+ document.body.className = 'light';
+ lightThemeButton.classList.add('selected');
+ }
+
+ if (theme == 1) {
+ darkThemeCss.disabled = false;
+ document.body.className = 'dark';
+ darkThemeButton.classList.add('selected');
+ }
+
+ if (theme == 2) {
+ darkThemeCss.disabled = !prefersDarkMode;
+ document.body.className = prefersDarkMode ? 'dark' : 'light';
+ automaticThemeButton.classList.add('selected');
+ document.cookie = `inUseTheme=${prefersDarkMode ? 'dark' : 'light'}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
+ }
+
+ showSuccessMessage(data.message);
+ } else {
+ showErrorMessage(data.errorMessage);
+ darkThemeButton.disabled = false;
+ lightThemeButton.disabled = false;
+ automaticThemeButton.disabled = false;
}
+ }).catch(error => {
+ darkThemeButton.disabled = false;
+ lightThemeButton.disabled = false;
+ automaticThemeButton.disabled = false;
});
-
- if (themeColor !== "blue") {
- var enableTheme = document.getElementById(themeColor + '-theme');
- enableTheme.disabled = false;
+}
+
+function setTheme(themeColor) {
+ var currentTheme = 'blue';
+ var themeIds = ['red-theme', 'green-theme', 'yellow-theme', 'purple-theme'];
+
+ themeIds.forEach(function (id) {
+ var themeStylesheet = document.getElementById(id);
+ if (themeStylesheet && !themeStylesheet.disabled) {
+ currentTheme = id.replace('-theme', '');
+ themeStylesheet.disabled = true;
}
-
- var images = document.querySelectorAll('img');
- images.forEach(function(img) {
- if (img.src.includes('siteicons/' + currentTheme)) {
- img.src = img.src.replace(currentTheme, themeColor);
- }
- });
-
- var labels = document.querySelectorAll('.theme-preview');
- labels.forEach(function(label) {
- label.classList.remove('is-selected');
- });
-
- var targetLabel = document.querySelector(`.theme-preview.${themeColor}`);
- if (targetLabel) {
- targetLabel.classList.add('is-selected');
+ });
+
+ if (themeColor !== "blue") {
+ var enableTheme = document.getElementById(themeColor + '-theme');
+ enableTheme.disabled = false;
+ }
+
+ var images = document.querySelectorAll('img');
+ images.forEach(function (img) {
+ if (img.src.includes('siteicons/' + currentTheme)) {
+ img.src = img.src.replace(currentTheme, themeColor);
}
-
- document.cookie = `colorTheme=${themeColor}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
-
- fetch('endpoints/settings/colortheme.php', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({ color: themeColor })
- })
+ });
+
+ var labels = document.querySelectorAll('.theme-preview');
+ labels.forEach(function (label) {
+ label.classList.remove('is-selected');
+ });
+
+ var targetLabel = document.querySelector(`.theme-preview.${themeColor}`);
+ if (targetLabel) {
+ targetLabel.classList.add('is-selected');
+ }
+
+ document.cookie = `colorTheme=${themeColor}; expires=Fri, 31 Dec 9999 23:59:59 GMT`;
+
+ fetch('endpoints/settings/colortheme.php', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({ color: themeColor })
+ })
.then(response => response.json())
.then(data => {
if (data.success) {
@@ -149,16 +149,16 @@ function setTheme(themeColor) {
.catch(error => {
showErrorMessage(translate('unknown_error'));
});
-
- }
-
- function resetCustomColors() {
- const button = document.getElementById("reset-colors");
- button.disabled = true;
-
- fetch('endpoints/settings/resettheme.php', {
- method: 'DELETE',
- })
+
+}
+
+function resetCustomColors() {
+ const button = document.getElementById("reset-colors");
+ button.disabled = true;
+
+ fetch('endpoints/settings/resettheme.php', {
+ method: 'DELETE',
+ })
.then(response => response.json())
.then(data => {
if (data.success) {
@@ -182,23 +182,23 @@ function setTheme(themeColor) {
showErrorMessage(translate('unknown_error'));
button.disabled = false;
});
- }
-
- function saveCustomColors() {
- const button = document.getElementById("save-colors");
- button.disabled = true;
-
- const mainColor = document.getElementById("mainColor").value;
- const accentColor = document.getElementById("accentColor").value;
- const hoverColor = document.getElementById("hoverColor").value;
-
- fetch('endpoints/settings/customtheme.php', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({ mainColor: mainColor, accentColor: accentColor, hoverColor: hoverColor })
- })
+}
+
+function saveCustomColors() {
+ const button = document.getElementById("save-colors");
+ button.disabled = true;
+
+ const mainColor = document.getElementById("mainColor").value;
+ const accentColor = document.getElementById("accentColor").value;
+ const hoverColor = document.getElementById("hoverColor").value;
+
+ fetch('endpoints/settings/customtheme.php', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({ mainColor: mainColor, accentColor: accentColor, hoverColor: hoverColor })
+ })
.then(response => response.json())
.then(data => {
if (data.success) {
@@ -215,22 +215,22 @@ function setTheme(themeColor) {
showErrorMessage(translate('unknown_error'));
button.disabled = false;
});
-
- }
- function saveCustomCss() {
- const button = document.getElementById("save-css");
- button.disabled = true;
-
- const customCss = document.getElementById("customCss").value;
-
- fetch('endpoints/settings/customcss.php', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({ customCss: customCss })
- })
+}
+
+function saveCustomCss() {
+ const button = document.getElementById("save-css");
+ button.disabled = true;
+
+ const customCss = document.getElementById("customCss").value;
+
+ fetch('endpoints/settings/customcss.php', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({ customCss: customCss })
+ })
.then(response => response.json())
.then(data => {
if (data.success) {
@@ -244,4 +244,4 @@ function setTheme(themeColor) {
showErrorMessage(translate('unknown_error'));
button.disabled = false;
});
- }
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/settings.php b/settings.php
index e118b0d..e9ce63a 100644
--- a/settings.php
+++ b/settings.php
@@ -453,12 +453,18 @@ require_once 'includes/header.php';
class="one-third" value="<?= $notificationsEmail['smtp_port'] ?>" />
</div>
<div class="form-group-inline">
- <input type="radio" name="encryption" id="encryptiontls" value="tls"
- <?= $notificationsEmail['encryption'] == "tls" ? "checked" : "" ?> />
- <label for="encryptiontls"><?= translate('tls', $i18n) ?></label>
- <input type="radio" name="encryption" id="encryptionssl" value="ssl"
- <?= $notificationsEmail['encryption'] == "ssl" ? "checked" : "" ?> />
- <label for="encryptionssl"><?= translate('ssl', $i18n) ?></label>
+ <div>
+ <input type="radio" name="encryption" id="encryptiontls" value="tls"
+ <?= $notificationsEmail['encryption'] == "tls" ? "checked" : "" ?> />
+ <label for="encryptiontls"><?= translate('tls', $i18n) ?></label>
+ </div>
+ <div>
+ <input type="radio" name="encryption" id="encryptionssl" value="ssl"
+ <?= $notificationsEmail['encryption'] == "ssl" ? "checked" : "" ?> />
+ <label for="encryptionssl"><?= translate('ssl', $i18n) ?></label>
+ </div>
+
+
</div>
<div class="form-group-inline">
<input type="text" name="smtpusername" id="smtpusername"
@@ -475,18 +481,19 @@ require_once 'includes/header.php';
placeholder="<?= translate('from_email', $i18n) ?>"
value="<?= $notificationsEmail['from_email'] ?>" />
</div>
+ <div class="buttons">
+ <input type="button" class="secondary-button thin mobile-grow"
+ value="<?= translate('test', $i18n) ?>" id="testNotificationsEmail"
+ onClick="testNotificationEmailButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"
+ id="saveNotificationsEmail" onClick="saveNotificationsEmailButton()" />
+ </div>
<div class="settings-notes">
<p>
<i class="fa-solid fa-circle-info"></i> <?= translate('smtp_info', $i18n) ?>
</p>
<p>
</div>
- <div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testNotificationsEmail" onClick="testNotificationEmailButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>"
- id="saveNotificationsEmail" onClick="saveNotificationsEmailButton()" />
- </div>
</div>
</section>
<section class="account-notifications-section">
@@ -518,9 +525,10 @@ require_once 'includes/header.php';
value="<?= $notificationsDiscord['bot_avatar'] ?>" />
</div>
<div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testNotificationsDiscord" onClick="testNotificationsDiscordButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>"
+ <input type="button" class="secondary-button thin mobile-grow"
+ value="<?= translate('test', $i18n) ?>" id="testNotificationsDiscord"
+ onClick="testNotificationsDiscordButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"
id="saveNotificationsDiscord" onClick="saveNotificationsDiscordButton()" />
</div>
</div>
@@ -548,9 +556,10 @@ require_once 'includes/header.php';
value="<?= $notificationsGotify['token'] ?>" />
</div>
<div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testNotificationsGotify" onClick="testNotificationsGotifyButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>"
+ <input type="button" class="secondary-button thin mobile-grow"
+ value="<?= translate('test', $i18n) ?>" id="testNotificationsGotify"
+ onClick="testNotificationsGotifyButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"
id="saveNotificationsGotify" onClick="saveNotificationsGotifyButton()" />
</div>
</div>
@@ -580,9 +589,10 @@ require_once 'includes/header.php';
</div>
<div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testNotificationsPushover" onClick="testNotificationsPushoverButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>"
+ <input type="button" class="secondary-button thin mobile-grow"
+ value="<?= translate('test', $i18n) ?>" id="testNotificationsPushover"
+ onClick="testNotificationsPushoverButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"
id="saveNotificationsPushover" onClick="saveNotificationsPushoverButton()" />
</div>
</div>
@@ -611,9 +621,10 @@ require_once 'includes/header.php';
value="<?= $notificationsTelegram['chat_id'] ?>" />
</div>
<div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testNotificationsTelegram" onClick="testNotificationsTelegramButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>"
+ <input type="button" class="secondary-button thin mobile-grow"
+ value="<?= translate('test', $i18n) ?>" id="testNotificationsTelegram"
+ onClick="testNotificationsTelegramButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"
id="saveNotificationsTelegram" onClick="saveNotificationsTelegramButton()" />
</div>
</div>
@@ -642,9 +653,10 @@ require_once 'includes/header.php';
placeholder="<?= translate('custom_headers', $i18n) ?>"><?= $notificationsNtfy['headers'] ?></textarea>
</div>
<div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testNotificationsNtfy" onClick="testNotificationsNtfyButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>"
+ <input type="button" class="secondary-button thin mobile-grow"
+ value="<?= translate('test', $i18n) ?>" id="testNotificationsNtfy"
+ onClick="testNotificationsNtfyButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"
id="saveNotificationsNtfy" onClick="saveNotificationsNtfyButton()" />
</div>
</section>
@@ -690,6 +702,13 @@ require_once 'includes/header.php';
placeholder="<?= translate('webhook_iterator_key', $i18n) ?>"
value="<?= $notificationsWebhook['iterator'] ?>" />
</div>
+ <div class="buttons">
+ <input type="button" class="secondary-button thin mobile-grow"
+ value="<?= translate('test', $i18n) ?>" id="testNotificationsWebhook"
+ onClick="testNotificationsWebhookButton()" />
+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"
+ id="saveNotificationsWebhook" onClick="saveNotificationsWebhookButton()" />
+ </div>
<div class="settings-notes">
<p>
<i class="fa-solid fa-circle-info"></i> <?= translate('variables_available', $i18n) ?>:
@@ -699,12 +718,6 @@ require_once 'includes/header.php';
</p>
<p>
</div>
- <div class="buttons">
- <input type="button" class="secondary-button thin" value="<?= translate('test', $i18n) ?>"
- id="testNotificationsWebhook" onClick="testNotificationsWebhookButton()" />
- <input type="submit" class="thin" value="<?= translate('save', $i18n) ?>"
- id="saveNotificationsWebhook" onClick="saveNotificationsWebhookButton()" />
- </div>
</div>
</section>
</div>
@@ -930,6 +943,10 @@ require_once 'includes/header.php';
<option value="1" <?= $provider == 1 ? 'selected' : '' ?>>apilayer.com</option>
</select>
</div>
+ <div class="buttons">
+ <input type="submit" value="<?= translate('save', $i18n) ?>" id="addFixerKey"
+ onClick="addFixerKeyButton()" class="thin mobile-grow" />
+ </div>
<div class="settings-notes">
<p><i class="fa-solid fa-circle-info"></i><?= translate('fixer_info', $i18n) ?></p>
<p><?= translate('get_key', $i18n) ?>:
@@ -952,10 +969,6 @@ require_once 'includes/header.php';
</span>
</p>
</div>
- <div class="buttons">
- <input type="submit" value="<?= translate('save', $i18n) ?>" id="addFixerKey"
- onClick="addFixerKeyButton()" class="thin mobile-grow" />
- </div>
</div>
</section>
@@ -1091,50 +1104,50 @@ require_once 'includes/header.php';
<h3><?= translate('colors', $i18n) ?></h3>
<div class="form-group-inline wrap">
<div class="theme">
+ <input type="radio" name="theme" id="theme-blue" value="blue"
+ onClick="setTheme('blue')" <?= $settings['color_theme'] == 'blue' ? 'checked' : '' ?>>
<label for="theme-blue"
class="theme-preview blue <?= $settings['color_theme'] == 'blue' ? 'is-selected' : '' ?>">
- <input type="radio" name="theme" id="theme-blue" value="blue" onClick="setTheme('blue')"
- <?= $settings['color_theme'] == 'blue' ? 'checked' : '' ?>>
<span class="main-color"></span>
<span class="accent-color"></span>
<span class="hover-color"></span>
</label>
</div>
<div class="theme">
+ <input type="radio" name="theme" id="theme-green" value="green"
+ onClick="setTheme('green')" <?= $settings['color_theme'] == 'green' ? 'checked' : '' ?>>
<label for="theme-green"
class="theme-preview green <?= $settings['color_theme'] == 'green' ? 'is-selected' : '' ?>">
- <input type="radio" name="theme" id="theme-green" value="green"
- onClick="setTheme('green')" <?= $settings['color_theme'] == 'green' ? 'checked' : '' ?>>
<span class="main-color"></span>
<span class="accent-color"></span>
<span class="hover-color"></span>
</label>
</div>
<div class="theme">
+ <input type="radio" name="theme" id="theme-red" value="red"
+ onClick="setTheme('red')" <?= $settings['color_theme'] == 'red' ? 'checked' : '' ?>>
<label for="theme-red"
class="theme-preview red <?= $settings['color_theme'] == 'red' ? 'is-selected' : '' ?>">
- <input type="radio" name="theme" id="theme-red" value="red" onClick="setTheme('red')"
- <?= $settings['color_theme'] == 'red' ? 'checked' : '' ?>>
<span class="main-color"></span>
<span class="accent-color"></span>
<span class="hover-color"></span>
</label>
</div>
<div class="theme">
+ <input type="radio" name="theme" id="theme-yellow" value="yellow"
+ onClick="setTheme('yellow')" <?= $settings['color_theme'] == 'yellow' ? 'checked' : '' ?>>
<label for="theme-yellow"
class="theme-preview yellow <?= $settings['color_theme'] == 'yellow' ? 'is-selected' : '' ?>">
- <input type="radio" name="theme" id="theme-yellow" value="yellow"
- onClick="setTheme('yellow')" <?= $settings['color_theme'] == 'yellow' ? 'checked' : '' ?>>
<span class="main-color"></span>
<span class="accent-color"></span>
<span class="hover-color"></span>
</label>
</div>
<div class="theme">
+ <input type="radio" name="theme" id="theme-purple" value="purple"
+ onClick="setTheme('purple')" <?= $settings['color_theme'] == 'purple' ? 'checked' : '' ?>>
<label for="theme-purple"
class="theme-preview purple <?= $settings['color_theme'] == 'purple' ? 'is-selected' : '' ?>">
- <input type="radio" name="theme" id="theme-purple" value="purple"
- onClick="setTheme('purple')" <?= $settings['color_theme'] == 'purple' ? 'checked' : '' ?>>
<span class="main-color"></span>
<span class="accent-color"></span>
<span class="hover-color"></span>
@@ -1146,19 +1159,19 @@ require_once 'includes/header.php';
<div>
<h3><?= translate('custom_colors', $i18n) ?></h3>
<div class="custom-colors wrap">
- <div class="form-group-inline mobile-grow">
+ <div class="form-group-inline mobile-grow color-picker-button">
<input type="color" id="mainColor" name="mainColor"
value="<?= isset($settings['customColors']['main_color']) ? $settings['customColors']['main_color'] : '#FFFFFF' ?>"
class="color-picker fa-solid fa-eye-dropper">
<label for="mainColor"><?= translate('main_color', $i18n) ?></label>
</div>
- <div class="form-group-inline mobile-grow">
+ <div class="form-group-inline mobile-grow color-picker-button">
<input type="color" id="accentColor" name="accentColor"
value="<?= isset($settings['customColors']['accent_color']) ? $settings['customColors']['accent_color'] : '#FFFFFF' ?>"
class="color-picker fa-solid fa-eye-dropper">
<label for="accentColor"><?= translate('accent_color', $i18n) ?></label>
</div>
- <div class="form-group-inline mobile-grow">
+ <div class="form-group-inline mobile-grow color-picker-button">
<input type="color" id="hoverColor" name="hoverColor"
value="<?= isset($settings['customColors']['hover_color']) ? $settings['customColors']['hover_color'] : '#FFFFFF' ?>"
class="color-picker fa-solid fa-eye-dropper">
diff --git a/styles/dark-theme.css b/styles/dark-theme.css
index b2675bd..dd6e535 100644
--- a/styles/dark-theme.css
+++ b/styles/dark-theme.css
@@ -3,7 +3,7 @@ body {
color: #E0E0E0;
}
-body > header {
+body>header {
background-color: #222;
}
@@ -11,9 +11,9 @@ svg .text-color {
fill: #E0E0E0;
}
-.split-header > h2 .header-subtitle {
+.split-header>h2 .header-subtitle {
color: #A9A9A9;
- }
+}
.subscription,
.subscription-form,
@@ -48,7 +48,7 @@ svg .text-color {
.filtermenu-content .filter-item:hover,
.filtermenu-content .filter-title:hover {
- background-color: #333333;
+ background-color: #333333;
}
.subscription-form h3,
@@ -57,8 +57,8 @@ svg .text-color {
}
.subscription.inactive {
- background-color: rgba(24,24,24,0.3);
- color: rgba(200,200,200,0.6);
+ background-color: rgba(24, 24, 24, 0.3);
+ color: rgba(200, 200, 200, 0.6);
box-shadow: 0 2px 5px rgba(50, 50, 50, 0.1);
}
@@ -66,16 +66,16 @@ svg .text-color {
color: #E0E0E0
}
-.subscription-main .actions > li {
+.subscription-main .actions>li {
border-bottom: 1px solid #555;
border-color: #666;
}
-.subscription-main .actions > li:hover {
+.subscription-main .actions>li:hover {
background-color: #333;
}
-.subscription-main .actions > li:last-of-type {
+.subscription-main .actions>li:last-of-type {
border: none;
}
@@ -140,14 +140,14 @@ textarea {
background-color: #222;
}
-.avatar-select .avatar-list > img,
-.avatar-select .avatar-list .avatar-container > img {
- border: 1px solid #999;
+.avatar-select .avatar-list>img,
+.avatar-select .avatar-list .avatar-container>img {
+ border: 1px solid #999;
}
-.avatar-select .avatar-list > img:hover,
-.avatar-select .avatar-list .avatar-container > img:hover {
- border: 1px solid #EEE;
+.avatar-select .avatar-list>img:hover,
+.avatar-select .avatar-list .avatar-container>img:hover {
+ border: 1px solid #EEE;
}
.avatar-select .avatar-list .remove-avatar:hover {
@@ -180,12 +180,12 @@ textarea {
color: var(--main-color);
}
-.sort-options > ul > li {
+.sort-options>ul>li {
border-bottom: 1px solid #555;
color: #DDD;
}
-.sort-options > ul > li:hover {
+.sort-options>ul>li:hover {
background-color: #444;
}
@@ -208,3 +208,24 @@ textarea {
button.dark-theme-button {
color: #E0E0E0;
}
+
+button.dark-theme-button:hover {
+ background-color: #111;
+}
+
+.account-notifications-section {
+ border: 1px solid #666;
+}
+
+input[type="checkbox"] + label::before,
+input[type="radio"] + label::before {
+ background: #555;
+ border: 1px solid #666;
+}
+
+input[type="checkbox"]:disabled + label::before,
+input[type="radio"]:disabled + label::before {
+ background-color: #333;
+ border-color: #222;
+ cursor: not-allowed;
+}
\ No newline at end of file
diff --git a/styles/styles.css b/styles/styles.css
index 80e833f..3117eac 100644
--- a/styles/styles.css
+++ b/styles/styles.css
@@ -10,6 +10,10 @@ body.no-scroll {
overflow-y: hidden;
}
+a:hover > i {
+ color: var(--hover-color);
+}
+
h2, h3 {
font-weight: 500;
}
@@ -95,7 +99,7 @@ header .logo .logo-image svg {
gap: 8px;
background-color: transparent;
color: #202020;
- padding: 12px;
+ padding: 7px 12px;
font-size: 16px;
border: none;
cursor: pointer;
@@ -105,8 +109,8 @@ header .logo .logo-image svg {
}
.dropbtn > img {
- width: 30px;
- height: 30px;
+ width: 35px;
+ height: 35px;
object-fit: contain;
}
@@ -218,6 +222,18 @@ main > .contain {
font-size: 12px;
}
+button:hover svg .main-color {
+ fill: var(--hover-color);
+}
+
+.actions li:hover svg .main-color {
+ fill: var(--hover-color);
+}
+
+.image-button:hover svg .main-color {
+ fill: var(--hover-color);
+}
+
.top-actions {
display: flex;
flex-direction: row;
@@ -751,16 +767,18 @@ header #avatar {
display: flex;
justify-content: flex-end;
align-items: center;
- gap: 30px;
+ gap: 20px;
}
.admin-form hr {
margin: 20px 0px;
color: var(--main-color);
+ border-color: var(--main-color);
+ background-color: var(--main-color);
}
.account-notifications-section {
- border: 1px solid #aaa;
+ border: 1px solid #ccc;
border-radius: 8px;
margin-bottom: 10px;
overflow: hidden;
@@ -908,6 +926,7 @@ header #avatar {
.credits-list > p {
margin: 0px;
+ font-size: 18px;
}
.settings-notes {
@@ -924,6 +943,10 @@ header #avatar {
font-size: 14px;
}
+.credits-list > p > span {
+ font-size: 16px;
+}
+
.credits-list > p > span > a,
.settings-notes > p > span > a {
margin-left: 5px;
@@ -1153,6 +1176,10 @@ textarea {
height: 245px;
}
+textarea:focus {
+ outline: none;
+}
+
textarea.thin {
height: 80px;
}
@@ -1258,7 +1285,7 @@ button.dark-theme-button {
}
button.dark-theme-button:hover {
- background-color: rgba(var(--accent-color-rgb), 0.6)
+ background-color: #EEE;
}
button.dark-theme-button.selected {
@@ -1358,11 +1385,16 @@ button.dark-theme-button i {
justify-content: center;
align-items: center;
height: 100%;
- color: var(--hover-color);
+ color: var(--main-color);
font-size: 16px;
text-align: center;
}
+.logo-preview:hover::after,
+.icon-preview:hover::after {
+ color: var(--hover-color);
+}
+
.logo-preview img {
width: 100%;
height: 100%;
@@ -1387,7 +1419,7 @@ button.dark-theme-button i {
justify-content: center;
align-items: center;
height: 100%;
- color: var(--hover-color);
+ color: var(--main-color);
font-size: 16px;
text-align: center;
}
@@ -1895,14 +1927,14 @@ button.dark-theme-button i {
}
.theme-preview {
- display: flex;
- flex-direction: row;
- gap: 10px;
- align-items: center;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 8px;
padding: 20px 15px 20px 10px;
+ display: flex;
+ gap: 15px;
+ flex-direction: row;
+ align-items: center;
}
.theme-preview.is-selected {
@@ -1913,72 +1945,73 @@ button.dark-theme-button i {
background-color: rgba(var(--accent-color-rgb), 0.6);
}
-.theme-preview > .main-color,
-.theme-preview > .accent-color,
-.theme-preview > .hover-color {
+.theme-preview .main-color,
+.theme-preview .accent-color,
+.theme-preview .hover-color {
display: inline-block;
- width: 25px;
- height: 25px;
+ width: 24px;
+ height: 24px;
border: 1px solid #FFF;
+ box-sizing: border-box;
}
-.theme-preview.blue > .main-color {
+.theme-preview.blue .main-color {
background-color: #007bff;
}
-.theme-preview.blue > .accent-color {
+.theme-preview.blue .accent-color {
background-color: #8fbffa;
}
-.theme-preview.blue > .hover-color {
+.theme-preview.blue .hover-color {
background-color: #0056b3;
}
-.theme-preview.green > .main-color {
+.theme-preview.green .main-color {
background-color: #6B8E23;
}
-.theme-preview.green > .accent-color {
+.theme-preview.green .accent-color {
background-color: #9ACD32;
}
-.theme-preview.green > .hover-color {
+.theme-preview.green .hover-color {
background-color: #556B2F;
}
-.theme-preview.red > .main-color {
+.theme-preview.red .main-color {
background-color: #f45a40;
}
-.theme-preview.red > .accent-color {
+.theme-preview.red .accent-color {
background-color: #f79988;
}
-.theme-preview.red > .hover-color {
+.theme-preview.red .hover-color {
background-color: #c73f29;
}
-.theme-preview.yellow > .main-color {
+.theme-preview.yellow .main-color {
background-color: #ffae00;
}
-.theme-preview.yellow > .accent-color {
+.theme-preview.yellow .accent-color {
background-color: #faea8f;
}
-.theme-preview.yellow > .hover-color {
+.theme-preview.yellow .hover-color {
background-color: #cd930c;
}
-.theme-preview.purple > .main-color {
+.theme-preview.purple .main-color {
background-color: #6d4aff;
}
-.theme-preview.purple > .accent-color {
+.theme-preview.purple .accent-color {
background-color: #b086ff;
}
-.theme-preview.purple > .hover-color {
+.theme-preview.purple .hover-color {
background-color: #5e42cd;
}
@@ -1994,13 +2027,17 @@ button.dark-theme-button i {
.color-picker::before {
color: var(--hover-color);
- position: absolute;
- top: -5px;
- right: -5px;
- border: 1px solid;
- border-radius: 15px;
- background-color: white;
- padding: 4px;
+ position: absolute;
+ top: -5px;
+ right: -5px;
+ border: 1px solid;
+ border-radius: 15px;
+ background-color: white;
+ padding: 4px;
+}
+
+.color-picker-button:hover label {
+ color: var(--hover-color);
}
.wrap {
@@ -2049,6 +2086,10 @@ button.dark-theme-button i {
text-decoration: none;
}
+.user-list a:hover {
+ color: var(--hover-color);
+}
+
.calendar-nav {
display: flex;
flex-direction: row;
@@ -2187,3 +2228,116 @@ button.dark-theme-button i {
flex-grow: 1;
}
}
+
+/* Checkbox */
+input[type="checkbox"] {
+ opacity: 0;
+ position: absolute;
+}
+
+input[type="checkbox"] + label {
+ position: relative;
+ padding-left: 35px;
+ cursor: pointer;
+ display: inline-block;
+ line-height: 22px;
+}
+
+input[type="checkbox"] + label::before {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 22px;
+ height: 22px;
+ background: #fafafa;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+}
+
+input[type="checkbox"]:focus + label::before {
+ border-color: var(--main-color);
+ box-shadow: 0 0 0 2px rgba(--main-color-rgb,0.5);
+}
+
+input[type="checkbox"]:disabled + label::before {
+ background-color: #F5F5F5;
+ border-color: #F5F5F5;
+ cursor: not-allowed;
+}
+
+input[type="checkbox"]:checked + label::after {
+ content: '';
+ position: absolute;
+ left: 8px;
+ top: 2px;
+ width: 4px;
+ height: 12px;
+ border: solid var(--main-color);
+ border-width: 0 4px 4px 0;
+ transform: rotate(45deg);
+}
+
+/* Radio */
+input[type="radio"] {
+ opacity: 0;
+ position: absolute;
+}
+
+input[type="radio"] + label {
+ position: relative;
+ padding-left: 35px;
+ cursor: pointer;
+ display: flex;
+ line-height: 22px;
+}
+
+input[type="radio"] + label::before {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 24px;
+ height: 24px;
+ background: #fafafa;
+ border: 1px solid #ccc;
+ border-radius: 50%;
+ box-sizing: border-box;
+}
+
+input[type="radio"]:focus + label::before {
+ border-color: var(--main-color);
+ box-shadow: 0 0 0 2px rgba(var(--main-color-rgb),0.5);
+}
+
+input[type="radio"]:disabled + label::before {
+ background-color: #F5F5F5;
+ border-color: #F5F5F5;
+ cursor: not-allowed;
+}
+
+input[type="radio"]:checked + label::after {
+ content: '';
+ position: absolute;
+ left: 5px;
+ top: 5px;
+ width: 14px;
+ height: 14px;
+ background: var(--main-color);
+ border-radius: 50%;
+ box-sizing: border-box;
+}
+
+.theme input[type="radio"] + label {
+ padding-left: 44px;
+}
+
+.theme input[type="radio"] + label::before {
+ left: 11px;
+ top: 20px;
+}
+
+.theme input[type="radio"]:checked + label::after {
+ left: 16px;
+ top: 25px;
+}
\ No newline at end of file