Never ending working styling for light and dark mode in Novi.

This commit is contained in:
Scott Idem
2025-08-08 15:57:46 -04:00
parent 5187f6455a
commit b95111503d
6 changed files with 255 additions and 14 deletions

View File

@@ -385,6 +385,14 @@ if ($ae_loc?.site_cfg_json?.theme_name) {
}
if ($ae_loc?.site_cfg_json?.theme_mode) {
$ae_loc.theme_mode = $ae_loc.site_cfg_json.theme_mode;
if (browser && window.matchMedia('(prefers-color-scheme: dark)').matches) {
$ae_loc.theme_mode = 'dark';
} else {
$ae_loc.theme_mode = 'light';
}
$ae_loc.theme_mode = 'dark';
}

View File

@@ -55,7 +55,10 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
class="flex flex-row gap-1 items-center justify-around"
>
<label
class="text-sm w-32 md:w-42 form-group"
class="
novi_label
text-sm text-gray-700 dark:text-gray-300 w-32 md:w-42 form-group
"
for="qry_limit__posts">
Max posts:
@@ -231,7 +234,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
// $idaa_sess.bb.show__inline_edit__post_obj = true;
}}
class="
novi_btn btn-tertiary
novi_btn novi_white btn-tertiary
text-xs
btn btn-sm
preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800
@@ -249,7 +252,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
e_class=""
e_class_form_hidden="float-right"
e_class_form_showing="inline-block"
btn_class="novi_btn"
btn_class="novi_btn novi_white"
show_btn_class=""