style(journals): standardize Skeleton v4 preset-* classes across all journal components
- Replace all Skeleton v2 variant-* classes with v4 preset-* equivalents - variant-filled-* → preset-filled-* - variant-soft-* / variant-ghost-* → preset-tonal-* - variant-outline-* → preset-outlined-* - variant-form-material removed from inputs/selects/textareas - input-bordered removed - Fix dark mode: journal entry content hover (dark:hover:bg-blue-950) - Fix dark mode: journal obj view section/description bg and text colors - Fix modal headers: add dismissable=false + explicit X close button (all 3 journals modals) - Fix DaisyUI wrappers removed from modal_journal_entry_append - app.css: add global select padding-inline to fix text-against-border issue
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
<div class="flex items-center gap-3 w-full md:w-auto">
|
||||
<a
|
||||
href="/journals/{journal.journal_id}"
|
||||
class="btn-icon btn-icon-sm variant-soft-surface"
|
||||
class="btn-icon btn-icon-sm preset-tonal-surface"
|
||||
title="Back to Journal"
|
||||
>
|
||||
<ChevronLeft size="1.2em" />
|
||||
@@ -86,8 +86,8 @@
|
||||
class="btn-icon btn-icon-sm transition-all {has_changed &&
|
||||
$journals_loc.entry.edit_kv[entry.journal_entry_id] ===
|
||||
'current'
|
||||
? 'variant-filled-success'
|
||||
: 'variant-soft-surface'}"
|
||||
? 'preset-filled-success'
|
||||
: 'preset-tonal-surface'}"
|
||||
>
|
||||
{#if $journals_loc.entry.edit_kv[entry.journal_entry_id] === 'current'}
|
||||
{#if has_changed}<Save size="1.2em" />{:else}<Eye
|
||||
@@ -102,7 +102,7 @@
|
||||
<input
|
||||
type="text"
|
||||
bind:value={tmp_entry_obj.name}
|
||||
class="input input-sm variant-form-material font-bold text-lg grow md:min-w-[300px] border-none bg-transparent focus:ring-0"
|
||||
class="input input-sm font-bold text-lg grow md:min-w-[300px] border-none bg-transparent focus:ring-0"
|
||||
placeholder="Entry Title..."
|
||||
onchange={on_save}
|
||||
/>
|
||||
@@ -155,8 +155,8 @@
|
||||
<button
|
||||
type="button"
|
||||
class="btn-icon btn-icon-sm transition-all {is_decrypted
|
||||
? 'variant-filled-success shadow-lg shadow-success-500/20'
|
||||
: 'variant-soft-warning'}"
|
||||
? 'preset-filled-success shadow-lg shadow-success-500/20'
|
||||
: 'preset-tonal-warning'}"
|
||||
onclick={on_decrypt}
|
||||
title={is_decrypted ? 'Lock Content' : 'Decrypt Content'}
|
||||
>
|
||||
@@ -171,7 +171,7 @@
|
||||
<!-- Unified Config Button -->
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm variant-soft-primary font-bold"
|
||||
class="btn btn-sm preset-tonal-primary font-bold"
|
||||
onclick={on_show_config}
|
||||
>
|
||||
<Settings size="1.1em" class="mr-2" /> Config
|
||||
@@ -181,7 +181,7 @@
|
||||
{#if has_changed && save_status !== 'saving'}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm variant-filled-primary shadow-lg"
|
||||
class="btn btn-sm preset-filled-primary"
|
||||
onclick={on_save}
|
||||
>
|
||||
<Save size="1.1em" class="mr-2" /> Save
|
||||
|
||||
Reference in New Issue
Block a user