More work on dark mode clean up. Wrapping up for the week. Happy almost birthday me.

This commit is contained in:
Scott Idem
2025-08-08 17:49:58 -04:00
parent b95111503d
commit 7ef18ce105
7 changed files with 62 additions and 21 deletions

View File

@@ -386,13 +386,13 @@ 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';
}
if (browser && window.matchMedia('(prefers-color-scheme: dark)').matches) {
$ae_loc.theme_mode = 'dark';
} else {
$ae_loc.theme_mode = 'light';
}

View File

@@ -254,7 +254,11 @@ $effect(() => {
$idaa_sess.bb.show__inline_edit__post_comment_id = true;
}
}}
class="novi_btn btn btn-md preset-tonal-secondary border border-secondary-500 hover:preset-filled-secondary-500 transition"
class="
novi_btn btn-primary
btn btn-md preset-tonal-secondary
border border-secondary-500 hover:preset-filled-secondary-500
transition-all"
title={`New comment on: ${$lq__post_obj?.title}`}
>
<span class="fas fa-plus m-1"></span> New Comment

View File

@@ -30,14 +30,18 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
</script>
<!-- preset-filled-surface-500 -->
<!-- text-white -->
<div
class="
ae_section ae_options filters_and_search
novi_bg_light
flex flex-row flex-wrap gap-1
items-center justify-center
my-2 p-2 border rounded-md
bg-gray-200 border-gray-300 dark:bg-gray-800 dark:border-gray-700
preset-outlined-surface-800-200
w-full max-w-4xl
m-auto
"
@@ -252,10 +256,8 @@ 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 novi_white"
show_btn_class=""
btn_class="novi_btn"
show_btn_class="btn-info"
additional_kv={{
'novi_uuid': $idaa_loc.novi_uuid,
'novi_email': $idaa_loc.novi_email,

View File

@@ -452,14 +452,15 @@ function add_activity_log(
/>
<!-- preset-filled-surface-100-900 -->
<Element_data_store
ds_code="recovery_meetings_info"
ds_type="html"
class_li="
rounded-lg
preset-filled-surface-100-900 preset-outlined-surface-200-800
preset-outlined-surface-200-800
m-auto p-2 space-y-2
w-full max-w-(--breakpoint-lg)
w-full max-w-xl
"
show_edit_btn={true}
/>

View File

@@ -212,12 +212,13 @@ function preventDefault(fn) {
</script>
<!-- preset-filled-surface-200-800 -->
<section
class="
ae_section ae_options filters_and_search
flex flex-col flex-wrap gap-1 items-center justify-center
my-2 p-2
preset-filled-surface-200-800 preset-outlined-surface-300-700
preset-outlined-surface-300-700
rounded-lg
d-flex
align-items-center justify-content-center