Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global configuration settings #205

Open
Mariusthvdb opened this issue Jan 28, 2022 · 2 comments
Open

global configuration settings #205

Mariusthvdb opened this issue Jan 28, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Mariusthvdb
Copy link

Mariusthvdb commented Jan 28, 2022

move out of issue, separate FR now:

btw, did you ever consider setting a global option on the fold? Or would you accept a FR to do so?

Use case, I use padding: 0 on each card, and would also use the no animation on each card. I card_mod the fold label to use

  - type: custom:fold-entity-row
    head:
      type: section
      label: Details
      card_mod:
        style: |
          .label {
            margin-left: 0px;
          }

to align , described in FR 203, so its getting a bigger config everywhere:

  - type: custom:fold-entity-row
    head:
      type: section
      label: Details
      card_mod:
        style: |
          .label {
            margin-left: 0px;
          }
    padding: 0
    no_animation: true

would there be any chance of setting that globally for all folds? the card_mod maybe get its own config option and be

  - type: custom:fold-entity-row
    head:
      type: section
      label: Details
    margin: 0
    padding: 0
    no_animation: true

and set those globally?

other option ofc would be by hacking the resource, as I did on the animation before. for me that would be ok, but it would require editing each release, and, of, it wouldn't be as flexible.

still if you'd point me to a spot in the resource where we can go from

Schermafbeelding 2022-01-28 om 14 04 00

to

Schermafbeelding 2022-01-28 om 14 05 06

that would be enormously appreciated.... for now I tried all options, even added a #label style, but that doesnt exist/work

please consider?

@Mariusthvdb Mariusthvdb added the enhancement New feature or request label Jan 28, 2022
@Mariusthvdb Mariusthvdb changed the title add label padding-left: 0px, and global setting global configuration settings Jan 28, 2022
@ildar170975
Copy link

ildar170975 commented Jan 28, 2022

I think it would be great to have a support of "templates" - like it was done for custom:button-card:

  • there is a template "my_fold_entity_row";
  • this template may be used everywhere.

But implementation could be rather difficult...

Currently I am using yaml anchors for repeating code if possible.

@Mariusthvdb
Copy link
Author

ofc I use anchors too, even nested, but with a large set up and split configuration, I still need a huge amount of repeats...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants