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

Mushroom Style Changes #157

Open
jhemak opened this issue Aug 1, 2024 · 5 comments
Open

Mushroom Style Changes #157

jhemak opened this issue Aug 1, 2024 · 5 comments

Comments

@jhemak
Copy link

jhemak commented Aug 1, 2024

Style changes were made in Mushroom between v3.6.4 to v4.0.0. These changes may need to be incorporated into timer-bar-card as the height of cards no longer matches Mushroom when using v4.0.0. piitaya/lovelace-mushroom#1471.

image

Left is a timer-bar-card; right is a mushroom-template-card.

@EthanBezz
Copy link

As a temporary solution, and if you have card-mod installed, you can add this to the end of your timer-bar-card's configuration:

card_mod:
  style: |
    ha-card {
      transition: none !important;
      padding: 0px !important;
    }

So for example:

type: custom:timer-bar-card
entity: timer.example_timer
name: "My Example Timer"
card_mod:
  style: |
    ha-card {
      transition: none !important;
      padding: 0px !important;
    }

@jhemak
Copy link
Author

jhemak commented Aug 2, 2024

Thanks @EthanBezz!

@EthanBezz
Copy link

EthanBezz commented Aug 8, 2024

Now that Home Assistant version 2024.8.0 has been released, more card-mod magic is needed in order for the timer-bar-card to match the slimmer look of the other cards.

Replace the old temporary solution with this newer temporary solution:

card_mod:
  style: |
    ha-card {
      transition: none !important;
      padding: 0px !important;
      --spacing: var(--mush-spacing, 10px) !important;
      --icon-size: var(--mush-icon-size, 36px) !important;
    }
    div.bar-container.pointer {
      min-height: 1em !important;
    }

@rianadon
Copy link
Owner

rianadon commented Sep 9, 2024

Thanks for keeping up with these changes! It seems the mushroom cards are changing a lot as the Home Assistant team finishing up the new sections layout.

I'll wait for them to finish before updating the card to be consistent. Then, I can tackle updating to the latest mushroom and adding whatever sections layout requires in one go.

@tempus2016
Copy link

Now that Home Assistant version 2024.8.0 has been released, more card-mod magic is needed in order for the timer-bar-card to match the slimmer look of the other cards.

Replace the old temporary solution with this newer temporary solution:

card_mod:
  style: |
    ha-card {
      transition: none !important;
      padding: 0px !important;
      --spacing: var(--mush-spacing, 10px) !important;
      --icon-size: var(--mush-icon-size, 36px) !important;
    }
    div.bar-container.pointer {
      min-height: 1em !important;
    }

Do you know what the css would be to make the state of the timer
Screenshot 2024-10-19 at 16 38 47
bold to match the mushroom theme?

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

No branches or pull requests

4 participants