Found some time to check the new card-mod version.
Default HA theme.
Here is a simple case:
Card 1:
type: entities
card_mod:
style:
.card-content hui-text-entity-row:
$:
hui-generic-entity-row:
$: |
.info {
color: red;
}
entities: &ref_entities
- sun.sun
- sun.sun
- sun.sun
Code Inspector:
Where I expect to see ācard-modā sections:
in each div
section:
- on
hui-text-entity-row
level;
- on
hui-text-entity-row $
level;
- on
hui-generic-entity-row
level;
- on
hui-generic-entity-row $
level.
Where ācard-modā sections are created:
- on
type-entities
level (??? why ???);
- for each
div
section:
- on
hui-text-entity-row
level;
- on
hui-text-entity-row $
level - twice (??? why twice ???);
- on
hui-generic-entity-row
level;
- on
hui-generic-entity-row $
level.
Card 2:
type: entities
card_mod:
style:
.card-content hui-text-entity-row $:
hui-generic-entity-row:
$: |
.info {
color: red;
}
entities: *ref_entities
Code Inspector:
Where I expect to see ācard-modā sections:
in the 1st div
section:
- on
hui-text-entity-row $
level;
- on
hui-generic-entity-row
level;
- on
hui-generic-entity-row $
level.
Where ācard-modā sections are created:
- on
type-entities
level (??? why ???);
- for the 1st
div
section:
- on
hui-text-entity-row
level - NOT PRESENT;
- on
hui-text-entity-row $
level - twice (??? why twice ???);
- on
hui-generic-entity-row
level;
- on
hui-generic-entity-row $
level.
- for the 2nd & 3rd
div
sections:
- on
hui-text-entity-row
level - NOT PRESENT;
- on
hui-text-entity-row $
level (??? why ???);
- on
hui-generic-entity-row
level - NOT PRESENT;
- on
hui-generic-entity-row $
level - NOT PRESENT.
Card 3:
type: entities
card_mod:
style:
.card-content hui-text-entity-row $ hui-generic-entity-row:
$: |
.info {
color: red;
}
entities: *ref_entities
Code Inspector:
Where I expect to see ācard-modā sections:
in the 1st div
section:
- on
hui-generic-entity-row
level;
- on
hui-generic-entity-row $
level.
Where ācard-modā sections are created:
- on
type-entities
level (??? why ???);
- for the 1st
div
section:
- on
hui-text-entity-row
level - NOT PRESENT;
- on
hui-text-entity-row $
level (??? why ???);
- on
hui-generic-entity-row
level;
- on
hui-generic-entity-row $
level.
- for the 2nd & 3rd
div
sections:
- on
hui-text-entity-row
level - NOT PRESENT;
- on
hui-text-entity-row $
level (??? why ???);
- on
hui-generic-entity-row
level - NOT PRESENT;
- on
hui-generic-entity-row $
level - NOT PRESENT.
Card 4:
type: entities
card_mod:
style:
.card-content hui-text-entity-row $ hui-generic-entity-row $: |
.info {
color: red;
}
entities: *ref_entities
Code Inspector:
Where I expect to see ācard-modā sections:
in the 1st div
section:
- on
hui-generic-entity-row $
level.
Where ācard-modā sections are created:
- on
type-entities
level (??? why ???);
- for the 1st
div
section:
- on
hui-text-entity-row
level - NOT PRESENT;
- on
hui-text-entity-row $
level (??? why ???);
- on
hui-generic-entity-row
level - NOT PRESENT;
- on
hui-generic-entity-row $
level.
- for the 2nd & 3rd
div
sections:
- on
hui-text-entity-row
level - NOT PRESENT;
- on
hui-text-entity-row $
level (??? why ???);
- on
hui-generic-entity-row
level - NOT PRESENT;
- on
hui-generic-entity-row $
level - NOT PRESENT.
Card 5:
type: entities
card_mod:
style:
.card-content hui-text-entity-row:
$ hui-generic-entity-row $: |
.info {
color: red;
}
entities: *ref_entities
Code Inspector:
Where I expect to see ācard-modā sections:
in each div
section:
- on
hui-text-entity-row
level.
- on
hui-generic-entity-row $
level.
Where ācard-modā sections are created:
- on
type-entities
level (??? why ???);
- for each
div
section:
- on
hui-text-entity-row
level;
- on
hui-text-entity-row $
level (??? why ???);
- on
hui-generic-entity-row
level - NOT PRESENT;
- on
hui-generic-entity-row $
level.
Yes, in practice I see some difference between Code Inspector and this.
Probably I misunderstood something.