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

Custom CSS? #6

Open
Fredde87 opened this issue Jul 25, 2023 · 3 comments
Open

Custom CSS? #6

Fredde87 opened this issue Jul 25, 2023 · 3 comments

Comments

@Fredde87
Copy link

Hey, sorry if this is a stupid question. But how do I apply custom CSS to the module? Using the ~/MagicMirror/css/custon.css doesnt seem to take effect.

The Readme is a bit confusing as it mentions dynamic CSS variable but nothing more on what that means.

Am I missing something obvious?

@Fabrizz
Copy link
Owner

Fabrizz commented Jul 27, 2023

Edit as I thought that this issue was inside MMM-OnSpotify, DynamicTheming grabs the colors from OnSpotify, if you want to disable or change it you can do it inside LiveLyrics or OnSpotify.

You can just edit custom.css and add any styling that you want.

What do you want to change? Maybe you need to use !important in yor css statements so it overrides the dafaults or look at how the module changes when its status changes.

This last bit is maybe what is conflicting with your config, as there are media queries for different screen sizes, different grid stylings for the backgrouds and some hardcoded values for shadows, etc inside the JS. I tried to make it really modular, so try looking at the default css to copy the selectors

@Fredde87
Copy link
Author

Sorry for the late reply, I took a break from working on my MM.

Unfortunately that still hasn't taken effect. My goal is to resize it because I simply want it to occupy just a small section of the bottom of the screen as well as reducing the font size. So I tried this just to resize the height but it still fills the whole screen. I must be missing something obvious?

.MMM-LiveLyrics {
height: 5% !important;
max-height: 5% !important;
}

@Fabrizz
Copy link
Owner

Fabrizz commented Aug 31, 2023

Then you should probably edit the included.css to override the dafaults and view exactly what you want to change. It also depends on what displayMode: you have configured

You can change everything modifing the font-size of the parent container of the module, as the sizes are relative

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

2 participants