<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Associating module output with custom.css]]></title><description><![CDATA[<p dir="auto">The CSS 101 post on this forum is an excellent explanation of css techniques and I appreciate the time and effort it took to create it.  I’d like to take it one more step (the one I’m currently stuck on) and see if anyone can help me progress.  I have some understanding of css and see how the main.css and custom.css files work in MM2.5.  What I’m stuck on is associating output from modules bound for the MM screen with identifiers that I can use in the .css files.  As a general example, if I take a look at a module and see that there are labels/values created in the .js file, how do I name those labels/values in the .css file so I can change their display appearance?  I hope I’m stating that question clearly.  Obviously, my Javascript knowledge is limited.  Thanks for any pointers or guidance provided.</p>
]]></description><link>https://forum.magicmirror.builders/topic/9190/associating-module-output-with-custom-css</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 07:33:28 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9190.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Dec 2018 06:17:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Associating module output with custom.css on Tue, 11 Dec 2018 01:31:08 GMT]]></title><description><![CDATA[<p dir="auto">@j-e-f-f Your suggestions worked well…thanks!  It took me a while to get the localhost access working, but I can now view my MM2.5 using my Chrome web browser and then using the inspector to find displayed items I want to change.  Thanks again!</p>
]]></description><link>https://forum.magicmirror.builders/post/47954</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47954</guid><dc:creator><![CDATA[dwburger]]></dc:creator><pubDate>Tue, 11 Dec 2018 01:31:08 GMT</pubDate></item><item><title><![CDATA[Reply to Associating module output with custom.css on Mon, 10 Dec 2018 06:57:31 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for all the helpful and informative replies!  Lots of information for this relative beginner to digest.  I’ll work on the suggestions offered and see how I progress.  Thanks again!</p>
]]></description><link>https://forum.magicmirror.builders/post/47920</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47920</guid><dc:creator><![CDATA[dwburger]]></dc:creator><pubDate>Mon, 10 Dec 2018 06:57:31 GMT</pubDate></item><item><title><![CDATA[Reply to Associating module output with custom.css on Thu, 06 Dec 2018 15:22:21 GMT]]></title><description><![CDATA[<p dir="auto">@j-e-f-f I currently don’t see the advantage in having a local duplicate for the mirror.<br />
I have a smb share on the mirror open to access the files directly with a programming tool from my laptop. (I’m using notepad++ or atom)<br />
Then I access the mirror from my laptop via chrome.</p>
<p dir="auto">A reload of the MM homepage in Chrome is automatically a reload of all the program code I have updated. Better than doing pm2 reload mm, which takes far longer.<br />
And I have it all on one screen at one machine.</p>
]]></description><link>https://forum.magicmirror.builders/post/47787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47787</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Thu, 06 Dec 2018 15:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to Associating module output with custom.css on Tue, 04 Dec 2018 16:14:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a> said in <a href="/post/47637">Associating module output with custom.css</a>:</p>
<blockquote>
<p dir="auto">One small remark the @j-e-f-f 's great explanations:<br />
You don’t need to run serveronly mode to access the mirror in your browser with dev console.<br />
The standard running mode already has the server on port 8080 running as well. So with the standard MM running (e.g. with pm2) you can already access the mirror with your browser as well.</p>
</blockquote>
<p dir="auto">This is certainly true, but for local CSS work (i.e.: running a second copy on your laptop so that you can immediately see your CSS changes), you need to take an extra step in order to be efficient. Electron will start in full-screen mode by default.  So you’ll need to switch to windowed mode (From electron’s menu: View -&gt; Toggle Full Screen.  Also it should be noted that the only way to close Electron is to stop Magic Mirror (CTRL-C in the console window).  If you close Electron a new window will immediately re-open in full-screen mode.</p>
<p dir="auto">Since I almost always already have Chrome open, I find it more efficient to run MagicMirror in server only mode and use Chrome to do my dev work.  Similarly, you can use another browser if you prefer its dev tools.</p>
<p dir="auto">My instructions above all assume you’d want to run a second copy of MagicMirror locally.  If you want to make changes directly to your instance running on a Raspberry Pi, you’ll need to jump through a few extra hoops.</p>
<ol>
<li>By default, Magic Mirror will refuse connections from external sources.  You need to modify the config to allow this.</li>
<li>When you make a CSS change you either need to work directly through an SSH session and modify the CSS file using Nano or another CLI text editor, or you need to make the changes locally and the upload them each time to your Pi.</li>
<li>In order to see your changes, you need to refresh Electron.  So far I haven’t found a quick way to to do this through SSH.  The only way I’ve been able to do so is to restart MagicMirror altogether, which on the Pi is slow.</li>
</ol>
<p dir="auto">So it’s a bit of a hassle up front to install a local copy of MagicMirror on your laptop, as you’ll need to do a manual install, and reinstall all of the applicable modules, but once you’re up and running it’s the best way to make code or CSS changes.</p>
]]></description><link>https://forum.magicmirror.builders/post/47701</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47701</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Tue, 04 Dec 2018 16:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to Associating module output with custom.css on Mon, 03 Dec 2018 14:25:54 GMT]]></title><description><![CDATA[<p dir="auto">Adding one more.<br />
You can access your front-end dev console with <code>Ctrl+Alt+i</code>(or in MacOSX, <code>Alt+Command+i</code>) on MM screen.(with Keyboard connected)</p>
]]></description><link>https://forum.magicmirror.builders/post/47639</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47639</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 03 Dec 2018 14:25:54 GMT</pubDate></item><item><title><![CDATA[Reply to Associating module output with custom.css on Mon, 03 Dec 2018 12:27:27 GMT]]></title><description><![CDATA[<p dir="auto">One small remark the @j-e-f-f 's great explanations:<br />
You don’t need to run serveronly mode to access the mirror in your browser with dev console.<br />
The standard running mode already has the server on port 8080 running as well. So with the standard MM running (e.g. with pm2) you can already access the mirror with your browser as well.</p>
]]></description><link>https://forum.magicmirror.builders/post/47637</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47637</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Mon, 03 Dec 2018 12:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to Associating module output with custom.css on Mon, 03 Dec 2018 12:06:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwburger" aria-label="Profile: dwburger">@<bdi>dwburger</bdi></a> One thing I forgot to mention… MagicMirror has the mouse cursor hidden by default.  When you are working locally, you’ll want to make the cursor visible in your custom.css file, like so:</p>
<pre><code>html {
  cursor: auto;
}
</code></pre>
<p dir="auto">You can also modify main.css directly if you want to keep this change out of your custom css file (assuming you’ll eventually want to upload it to your mirror).  It’s in the very first rule:</p>
<pre><code>html {
  cursor: none;
  overflow: hidden;
  background: #000;
}
</code></pre>
<p dir="auto">You can simply comment out the line, like so:</p>
<pre><code>html {
  /* cursor: none; */
  overflow: hidden;
  background: #000;
}
</code></pre>
<p dir="auto">Otherwise you will have a hard time right-clicking anything with a hidden cursor :D</p>
]]></description><link>https://forum.magicmirror.builders/post/47635</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47635</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Mon, 03 Dec 2018 12:06:05 GMT</pubDate></item><item><title><![CDATA[Reply to Associating module output with custom.css on Mon, 03 Dec 2018 11:52:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwburger" aria-label="Profile: dwburger">@<bdi>dwburger</bdi></a> This can be done by starting MagicMirror in dev mode.</p>
<p dir="auto"><code>npm start dev</code></p>
<p dir="auto">This will have Electron start with the dev console open.  This allows you to inspect elements in the HTML to see what class names are applied to them.  You can in turn use these class names in your <code>custom.css</code> file to style things in the way you wish.</p>
<p dir="auto">An even better approach is to run a copy of MagicMirror on your laptop. Start in server-only mode:</p>
<p dir="auto"><code>node serveronly</code></p>
<p dir="auto">Then you can use Chrome’s dev tools (right-click -&gt; Inspect Element) to determine what class names are applied to any given element.  Modify your customs.css file locally, refresh the browser and see your changes reflected immediately.</p>
<p dir="auto">You can try this right now if you’r using Chrome (most other browsers have a similar feature too).  Right click anything on this page and inspect it.  You’ll then see the dev tools open, with the focus on the HTML for the element you just clicked on.</p>
<p dir="auto">Here’s an example:<br />
<img src="/assets/uploads/files/1543837749712-screen-shot-2018-12-03-at-11.48.47-am.png" alt="0_1543837748382_Screen Shot 2018-12-03 at 11.48.47 am.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">You can see that this particular div has the class <code>content</code> applied to it.  On the right, you can see current styles applied to element, and you can even make temporary changes in-browser to try things out.</p>
<p dir="auto">Does this answer your question?</p>
]]></description><link>https://forum.magicmirror.builders/post/47634</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/47634</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Mon, 03 Dec 2018 11:52:42 GMT</pubDate></item></channel></rss>