Read the statement by Michael Teeuw here.
Custom.css is not working
-
Hello,
I am trying to change the width of the columns but with no success. I added the values to the custom.css but for some reason, it doesn’t work. When I go and change the CSS settings directly in the modules CSS file it works. Does anyone have an idea of what this can cause?
-
@cookblook I don’t know the answer, but if you use the developers window (ctrl-shift-i), and select the elements tab, you can navigate thru the dom. and on any selected element you will see the style classes used, top to bottom.
I was just working on this for a style not being applied… darned computers are VERY picky about the spelling!
I just looked thru the MM code , and custom.css is loaded in the js/loader.js file
} else { // All modules loaded. Load custom.css // This is done after all the modules so we can // overwrite all the defined styles. loadFile(config.customCss, function() { // custom.css loaded. Start all modules. startModules(); }); -
It looks like the custom.css is the last css loaded in the header, so it should override any others. What specific changes have you added to the custom.css?
-
@sdetweil Sam do you know if there is some tutorial available on what you just explained.
Because I find it very precious as well and I would guess not nearly everyone knows about this possibility in the developer’s tab.If there’s nothing, I’m inclined to write a piece on that.
-
@lavolp3 @sdetweil
Sorry, I could have just looked for it myself. Found it super fast.
https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works -
I tried this one when I put it in the custom.css nothing happens. if I change it in the module CSS file it works.
.MMM-DarkSkyForecast .module-content { width: 600px; }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login