<?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[How to change the clock css to be 90% full screen ?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">The current ‘zoom’ is not working. Basically I want the digital clock to be zoom out almost the whole screen. Any help ?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.magicmirror.builders/topic/4477/how-to-change-the-clock-css-to-be-90-full-screen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 21:16:57 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4477.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Jul 2017 01:31:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to change the clock css to be 90% full screen ? on Mon, 24 Jul 2017 04:48:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/j.e.f.f" aria-label="Profile: j.e.f.f">@<bdi>j.e.f.f</bdi></a></p>
<p dir="auto">It works.</p>
<p dir="auto">Thanks a lot.</p>
]]></description><link>https://forum.magicmirror.builders/post/25711</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25711</guid><dc:creator><![CDATA[nagaculun]]></dc:creator><pubDate>Mon, 24 Jul 2017 04:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to change the clock css to be 90% full screen ? on Wed, 19 Jul 2017 22:02:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/j.e.f.f" aria-label="Profile: j.e.f.f">@<bdi>j.e.f.f</bdi></a></p>
<p dir="auto">Thanks for the instructions. Unfortunately my mirror in the 'kernel panic’state yesterday. Will need to bring that up first before I try your suggestion. Will update when I do that.</p>
]]></description><link>https://forum.magicmirror.builders/post/25520</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25520</guid><dc:creator><![CDATA[nagaculun]]></dc:creator><pubDate>Wed, 19 Jul 2017 22:02:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to change the clock css to be 90% full screen ? on Wed, 19 Jul 2017 13:27:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nagaculun" aria-label="Profile: nagaculun">@<bdi>nagaculun</bdi></a> Your easiest bet would be to use a CSS transform to scale the clock module.  That way it won’t mess up the base layout in case you decide you want other modules to also be displayed.</p>
<p dir="auto">I’m assuming you’re using the module scheduler to turn the modules on and off.  I’d use this to schedule a second instance of the clock module for the evening, so that way I could position it in a different part of the screen.  It also makes it easier to target just that version so that your daytime version isn’t also scaled.</p>
<p dir="auto">Say I had my daytime clock positioned in the top_left, and my evening clock positioned in the top_right</p>
<p dir="auto">Here’s what the CSS would look like:</p>
<pre><code>/* targets only the clock module I have positioned top_right, leaves the top_left version untouched. */
.region.top.right .clock { 
    transform: scale(3.5); /* Scale multiplier.  adjust to taste. */
    
    /* by default the clock will scale from the center.  Use this to change the origin point. */
    transform-origin: top right; 
}
</code></pre>
<p dir="auto">What is important to note here is that this will NOT affect the flow of other modules. The upside is the size of the clock will not be constrained by the size of the parent container, meaning the time and date won’t wrap when the width exceeds to width of the top_left region, for example.  However,  if you have another module below it, this will cause the clock to overlap it.  You’ll need to add some CSS to that module to move it downward (or position it in a different region).</p>
<p dir="auto">The main idea here is to have two versions of the clock module, and use the scheduler to toggle the day time one off and the night time one on when you need it.</p>
<p dir="auto">I was using the clock’s configured position to target the particular one I want, but If you want to have the clock in the same position for day and night, then add a class in the config to the one you want to style, like so:</p>
<pre><code>    {
      module: "clock",
      position: "top_left",
      classes: "default everyone night", /* added "night" */
      config: {
        timeFormat: 12,
        displaySeconds: false,
        showPeriod: true,
        showPeriodUpper: false
      }
    },
</code></pre>
<p dir="auto">Then you can target the module by class name:</p>
<pre><code>.clock.night {
  ... /* CSS rules here */
}
</code></pre>
<p dir="auto">lastly, the <code>scale</code> rule can also accept separate parameters for length and width… so if you wanted to make a severely stretched and distorted) clock, you could do something like:</p>
<p dir="auto"><code>transform: scale(3,10);</code></p>
<p dir="auto">This will stretch the clock 3 times as wide and 10 times as tall.  Maybe you could make something pretty cool this way…</p>
<p dir="auto">I hope this helps!</p>
<ul>
<li>Jeff</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/25506</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25506</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Wed, 19 Jul 2017 13:27:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to change the clock css to be 90% full screen ? on Wed, 19 Jul 2017 11:49:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nagaculun" aria-label="Profile: nagaculun">@<bdi>nagaculun</bdi></a> then you could set the font sizes of the clock elements in custom.css</p>
]]></description><link>https://forum.magicmirror.builders/post/25502</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25502</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Wed, 19 Jul 2017 11:49:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to change the clock css to be 90% full screen ? on Mon, 17 Jul 2017 18:24:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a> said in <a href="/post/25419">How to change the clock css to be 90% full screen ?</a>:</p>
<blockquote>
<p dir="auto">Furthermore the value can have even more units than just pixels, as it uses the standard width and height property for it.<br />
Check out the property values section here <a href="https://www.w3schools.com/cssref/pr_dim_width.asp" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.w3schools.com/cssref/pr_dim_width.asp</a></p>
</blockquote>
<p dir="auto">I am not embarrassed to admit that I’ve used these css properties without understanding them. I only cared that they worked. So this link gave me a better understanding of how and why they work.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.magicmirror.builders/post/25452</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25452</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Mon, 17 Jul 2017 18:24:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to change the clock css to be 90% full screen ? on Mon, 17 Jul 2017 17:24:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a></p>
<p dir="auto">Basically, I have 2 set of configs; day and night. At day time, it display calendar, 3 clocks, weather and news feed.</p>
<p dir="auto">But at night time, it only shows a digital clock, which is much easier to read. So still prefer the digital version.</p>
]]></description><link>https://forum.magicmirror.builders/post/25447</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25447</guid><dc:creator><![CDATA[nagaculun]]></dc:creator><pubDate>Mon, 17 Jul 2017 17:24:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to change the clock css to be 90% full screen ? on Mon, 17 Jul 2017 04:58:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nagaculun" aria-label="Profile: nagaculun">@<bdi>nagaculun</bdi></a> did you consider using the config option <code>analogSize</code> for the clock module?</p>
<p dir="auto"><code>analogSize</code>: Specific to the analog clock. Defines how large the analog display is. Possible values: A positive number of pixels <strong>Default value:</strong> <code>'200px'</code></p>
<p dir="auto">Furthermore the value can have even more units than just pixels, as it uses the standard width and height property for it.<br />
Check out the property values section here <a href="https://www.w3schools.com/cssref/pr_dim_width.asp" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.w3schools.com/cssref/pr_dim_width.asp</a></p>
]]></description><link>https://forum.magicmirror.builders/post/25419</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/25419</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Mon, 17 Jul 2017 04:58:41 GMT</pubDate></item></channel></rss>