Skip to content

Commit

Permalink
+3
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 3, 2023
1 parent be31e62 commit fb5b53b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
5 changes: 0 additions & 5 deletions theme/demo/demo.view.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ namespace $.$$ {

$mol_style_define( $mol_theme_demo_case, {

flex: {
direction: `row`,
shrink: 0,
grow: 0,
},
gap: $mol_gap.block,
padding: $mol_gap.block,

Expand Down
4 changes: 2 additions & 2 deletions theme/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $mol_theme_demo $mol_example_large
precision_change 15
<= Scroll $mol_scroll sub /
<= Cases $mol_theme_demo_case
title <= theme \Current light
title \Current light
inner /
<= Base $mol_theme_demo_case theme \$mol_theme_base
<= Accent $mol_theme_demo_case theme \$mol_theme_accent
Expand All @@ -25,7 +25,7 @@ $mol_theme_demo_case $mol_view
<= Self $mol_list rows /
<= Card1 $mol_list rows /
<= Card2 $mol_row sub /
<= Card2_text $mol_button_copy title <= theme_code <= title
<= Card2_text $mol_button_copy title <= title
<= Card1_text $mol_button_copy title \ $mol_theme.card
<= Back $mol_button_copy title \$mol_theme.back
<= Line $mol_button_copy title \$mol_theme.line
Expand Down
8 changes: 0 additions & 8 deletions theme/demo/demo.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,4 @@ namespace $.$$ {

}

export class $mol_theme_demo_case extends $.$mol_theme_demo_case {

theme_code() {
return this.title()
}

}

}
2 changes: 1 addition & 1 deletion view/view/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ namespace $ {

attr() {
return {
mol_theme: this.theme() || undefined,
mol_theme: this.theme() ?? undefined,
} as {}
}

Expand Down

0 comments on commit fb5b53b

Please sign in to comment.