[Styling Module] Color Flat Bubble Cards #1320
Replies: 10 comments 12 replies
-
I really like this, especially the card color picker. It has also taught me a lot about altering the CSS elements in the backend. I noticed, however, that it overrides my custom styling. Is there a way I can change something in the back end so that I can apply this card without letting it override my custom styling? thank you! |
Beta Was this translation helpful? Give feedback.
-
I have installed 2.5.0-beta.8. I can confirm that I tried several other
modules (default styling, termperature/humidity color, and subbuton
animation), and none of them override the custom styles. Only "Color flat
bubble cards" overrides the custom styling.
Thanks!
…On Fri, Mar 21, 2025 at 8:11 AM Cloos ***@***.***> wrote:
Hi! Have you updated to the latest beta? Because your custom styles should
take over modules in this version.
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3LUOEURDOYMIAPFYNU6FL2VP6V7AVCNFSM6AAAAABYWCV2U6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENJXGY3DSMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I definitely will as soon as I get home! Its been a fun project! Bubble
cards in generally, this module, and a few other modules has really given
me a dashboard I really like! And modules came out just in time. The
modules feature really has made customizing the cards so much easier and
richer.
…On Fri, Mar 21, 2025 at 8:32 AM will-fezz ***@***.***> wrote:
I really like this, especially the card color picker. It has also taught
me a lot about altering the CSS elements in the backend. I noticed,
however, that it overrides my custom styling. Is there a way I can change
something in the back end so that I can apply this card without letting it
override my custom styling?
thank you!
See Clooos' reply.
Do you have a screenshot,I would love to see what you have done to
customise it?
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3LUOCNAXMAYHSOE653S6T2VQBHTAVCNFSM6AAAAABYWCV2U6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENJXGY4TIOA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes sir! I have! These custom styles work with other modules, just not
Flat bubble card.
…On Fri, Mar 21, 2025 at 8:44 AM Cloos ***@***.***> wrote:
Have you added !important; at the end of your custom styles?
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3LUOCGY5XIHRQQ5IZ6EQL2VQCRVAVCNFSM6AAAAABYWCV2U6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENJXG4YDMMI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi! @will-fezz Thanks for your help! Can you tell me what you changed to make it work with custom styles? I am trying to compare what I have to what you changed above, but I can't find what you may have changed (although I think you got rid of some of the "!important" tags at the end of some lines.) I don't want to just re-copy and paste since I have changed the attributes of a several of the elements, and commented out a lot of stuff I wasn't using. I'll past my version below. Also, I included a screen shot of my dashboard. It is nothing ground breaking by any means, and not as visually appealing as what you created, but it works for me! =) Thanks again!
|
Beta Was this translation helpful? Give feedback.
-
Thanks @will-fez! I so appreciate your help!
I’m not sure what I am doing wrong with the code, but it is still
overriding the custom styles.
My goal is to use the custom styles to change the background color of a few
cards based on entity state (for lights and switches that don’t have a
color control) while still maintaining the common theme of having a border
around the card that I control with your module.
Thanks again for your help!
…On Sun, Mar 23, 2025 at 07:13 will-fezz ***@***.***> wrote:
Yeah took !important off most of the lines as I think this was preventing
some custom styles.
However, this lead to a a couple of items changing color. So I had to
change the color of "--accent-color" in a couple of places.
Hope this helps.
Your dashboard look great. Have my changes helped? If you need more
specific help let me know what you want to do and I might be able to help.
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3LUOAYOPPA3ZJZNY4XVJ32V2JMFAVCNFSM6AAAAABYWCV2U6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENJZGE4DKNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you for getting back to me! No problem on the delay; we are all busy
people! And I appreciate your help whenever it comes! So you have that
exactly right. That is what I want to accomplish for just a few cards.
Which is why I am trying to accomplish it through custom styles. It is just
that, I already have that custom style programmed in the card, and it works
with other modules when Flat cards is turned off. But flat cards overrides
that and all other custom styles when I turn it on.
Thanks again for your help!
Dan
…On Tue, Mar 25, 2025 at 2:05 PM will-fezz ***@***.***> wrote:
Sorry it has taken me a while to reply. I have done a quick test and have
the the following results
This is a button with this styling:
Screenshot.2025-03-25.at.18.00.59.png (view on web)
<https://github.com/user-attachments/assets/82e8a3dc-a9fe-41ab-8b7a-76745a63fcee>
I added the following to custom styles:
Screenshot.2025-03-25.at.18.02.20.png (view on web)
<https://github.com/user-attachments/assets/5d3bbdfe-1bd3-4598-bb67-1710f61bc84f>
code:
.bubble-button-card-container { background: green !important; }
and it resulted in this:
Screenshot.2025-03-25.at.18.03.48.png (view on web)
<https://github.com/user-attachments/assets/c463877b-a052-4b52-9317-fdd4d951aad9>
which seems like what you are requesting.
Could you clarify more?
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE3LUOEQS6ZZATK7FHMY4ST2WGEGNAVCNFSM6AAAAABYWCV2U6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRRHA4DGNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@will-fezz yes! thanks!
|
Beta Was this translation helpful? Give feedback.
-
I'm sorry about that! I think I got it reformatted right. |
Beta Was this translation helpful? Give feedback.
-
@will-fezz I believe I found the culprit. I don't fully understand it, but while I was messing around with custom styling, I found that this card does not like some commented out lines. For instance, this works:
but this does not:
So, since I had commented out so many thing in your code that I didn't need, I started taking them out one by one. It wasn't until I got to the very end that I found that this code, commented out as it is below, was preventing my custom styles from overriding the modue:
I deleted that from the module, and my custom styles seem to be behaving appropriately with the module! |
Beta Was this translation helpful? Give feedback.
-
Module post template
Color Flat Bubble Cards
Version: v1.1
Creator: will_fezz (https://github.com/will-fezz)
Important
Unsupported cards:
This design features a flat style for the bubble cards, resembling the mushroom or tile cards, but with a more vibrant and colorful touch.
Configure this module via the editor or in YAML, for example:
🧩 Get this Module
Screenshot:
In this screenshot I am using the font Quicksand. You can add this with the Change Font module.
Change Font Module - #1292
Quicksand Font - https://fonts.google.com/specimen/Quicksand
Before posting your module
unsupported
propertyyour_module_key
Beta Was this translation helpful? Give feedback.
All reactions