More work on dark mode clean up. Wrapping up for the week. Happy almost birthday me.
This commit is contained in:
41
src/app.css
41
src/app.css
@@ -879,23 +879,56 @@ img.qr_code:focus {
|
|||||||
/* BEGIN: Overrides and fixes specific to Novi and IDAA */
|
/* BEGIN: Overrides and fixes specific to Novi and IDAA */
|
||||||
.iframe .novi_btn {
|
.iframe .novi_btn {
|
||||||
border-radius: 60px;
|
border-radius: 60px;
|
||||||
border-color: hsla(0, 0%, 50%, .5);
|
/* border-color: hsla(0, 0%, 50%, .5); */
|
||||||
|
/* border-color: hsla(0, 0%, 0%, .15); */
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.iframe .novi_label {
|
.iframe .dark .novi_label {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.iframe .novi_black {
|
.iframe .dark .novi_black {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.iframe .novi_white {
|
.iframe .dark .novi_white {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.iframe .dark .novi_bg_black {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.iframe .dark .novi_bg_white {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.iframe .dark .novi_bg_gray {
|
||||||
|
background-color: hsla(0, 0%, 50%, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.iframe .dark .novi_bg_light_gray {
|
||||||
|
background-color: hsla(0, 0%, 95%, 1);
|
||||||
|
}
|
||||||
|
.iframe .dark .novi_bg_dark_gray {
|
||||||
|
background-color: hsla(0, 0%, 20%, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.iframe .novi_bg_light {
|
||||||
|
background-color: hsla(0, 0%, 0%, .15);
|
||||||
|
color: hsla(0, 0%, 20%, 1);
|
||||||
|
}
|
||||||
|
.iframe .novi_bg_dark {
|
||||||
|
background-color: hsla(0, 0%, 0%, .25);
|
||||||
|
color: hsla(0, 0%, 95%, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.iframe .novi_margin_sm {
|
.iframe .novi_margin_sm {
|
||||||
/* margin: 0.5em; */
|
/* margin: 0.5em; */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -280,6 +280,7 @@ function send_help_tech_email() {
|
|||||||
>
|
>
|
||||||
<h4
|
<h4
|
||||||
class="
|
class="
|
||||||
|
novi_white
|
||||||
text-base font-semibold text-gray-800 dark:text-gray-200
|
text-base font-semibold text-gray-800 dark:text-gray-200
|
||||||
flex flex-row gap-1 items-center justify-center
|
flex flex-row gap-1 items-center justify-center
|
||||||
"
|
"
|
||||||
@@ -374,8 +375,7 @@ function send_help_tech_email() {
|
|||||||
onclick={() => ($ae_sess.show_help_tech = true)}
|
onclick={() => ($ae_sess.show_help_tech = true)}
|
||||||
class="
|
class="
|
||||||
btn btn-sm
|
btn btn-sm
|
||||||
preset-tonal-surface
|
border border-blue-400 dark:border-blue-600
|
||||||
preset-outlined-warning-600-400
|
|
||||||
transition-all
|
transition-all
|
||||||
{btn_class}
|
{btn_class}
|
||||||
{show_btn_class}
|
{show_btn_class}
|
||||||
|
|||||||
@@ -386,13 +386,13 @@ if ($ae_loc?.site_cfg_json?.theme_name) {
|
|||||||
if ($ae_loc?.site_cfg_json?.theme_mode) {
|
if ($ae_loc?.site_cfg_json?.theme_mode) {
|
||||||
$ae_loc.theme_mode = $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';
|
||||||
$ae_loc.theme_mode = 'dark';
|
}
|
||||||
} else {
|
|
||||||
$ae_loc.theme_mode = 'light';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (browser && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||||
$ae_loc.theme_mode = 'dark';
|
$ae_loc.theme_mode = 'dark';
|
||||||
|
} else {
|
||||||
|
$ae_loc.theme_mode = 'light';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -254,7 +254,11 @@ $effect(() => {
|
|||||||
$idaa_sess.bb.show__inline_edit__post_comment_id = true;
|
$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}`}
|
title={`New comment on: ${$lq__post_obj?.title}`}
|
||||||
>
|
>
|
||||||
<span class="fas fa-plus m-1"></span> New Comment
|
<span class="fas fa-plus m-1"></span> New Comment
|
||||||
|
|||||||
@@ -30,14 +30,18 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- preset-filled-surface-500 -->
|
||||||
|
<!-- text-white -->
|
||||||
<div
|
<div
|
||||||
class="
|
class="
|
||||||
ae_section ae_options filters_and_search
|
ae_section ae_options filters_and_search
|
||||||
|
novi_bg_light
|
||||||
flex flex-row flex-wrap gap-1
|
flex flex-row flex-wrap gap-1
|
||||||
items-center justify-center
|
items-center justify-center
|
||||||
my-2 p-2 border rounded-md
|
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
|
w-full max-w-4xl
|
||||||
m-auto
|
m-auto
|
||||||
"
|
"
|
||||||
@@ -252,10 +256,8 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
|||||||
e_class=""
|
e_class=""
|
||||||
e_class_form_hidden="float-right"
|
e_class_form_hidden="float-right"
|
||||||
e_class_form_showing="inline-block"
|
e_class_form_showing="inline-block"
|
||||||
btn_class="novi_btn novi_white"
|
btn_class="novi_btn"
|
||||||
show_btn_class=""
|
show_btn_class="btn-info"
|
||||||
|
|
||||||
|
|
||||||
additional_kv={{
|
additional_kv={{
|
||||||
'novi_uuid': $idaa_loc.novi_uuid,
|
'novi_uuid': $idaa_loc.novi_uuid,
|
||||||
'novi_email': $idaa_loc.novi_email,
|
'novi_email': $idaa_loc.novi_email,
|
||||||
|
|||||||
@@ -452,14 +452,15 @@ function add_activity_log(
|
|||||||
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- preset-filled-surface-100-900 -->
|
||||||
<Element_data_store
|
<Element_data_store
|
||||||
ds_code="recovery_meetings_info"
|
ds_code="recovery_meetings_info"
|
||||||
ds_type="html"
|
ds_type="html"
|
||||||
class_li="
|
class_li="
|
||||||
rounded-lg
|
rounded-lg
|
||||||
preset-filled-surface-100-900 preset-outlined-surface-200-800
|
preset-outlined-surface-200-800
|
||||||
m-auto p-2 space-y-2
|
m-auto p-2 space-y-2
|
||||||
w-full max-w-(--breakpoint-lg)
|
w-full max-w-xl
|
||||||
"
|
"
|
||||||
show_edit_btn={true}
|
show_edit_btn={true}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -212,12 +212,13 @@ function preventDefault(fn) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- preset-filled-surface-200-800 -->
|
||||||
<section
|
<section
|
||||||
class="
|
class="
|
||||||
ae_section ae_options filters_and_search
|
ae_section ae_options filters_and_search
|
||||||
flex flex-col flex-wrap gap-1 items-center justify-center
|
flex flex-col flex-wrap gap-1 items-center justify-center
|
||||||
my-2 p-2
|
my-2 p-2
|
||||||
preset-filled-surface-200-800 preset-outlined-surface-300-700
|
preset-outlined-surface-300-700
|
||||||
rounded-lg
|
rounded-lg
|
||||||
d-flex
|
d-flex
|
||||||
align-items-center justify-content-center
|
align-items-center justify-content-center
|
||||||
|
|||||||
Reference in New Issue
Block a user