Page 1 of 1

Font size - Block “current"

Posted: Thu Jul 25, 2024 3:41 pm
by El_Viejo
Version used 24.6

I have found that some templates use a larger font size for the sensor values than the default.
In the block settings I have not been able to find a way to achieve this.

What do I have to do to increase the font size of the sensor values?

Thanks in advance.

Re: Font size - Block “current"

Posted: Wed Aug 07, 2024 11:51 am
by didoujm
Bonjour
Il faut aller à la ligne 365:
<span class="mticon-temp conditionsIcon tooltip" alt='' title="<?php echo lang('temperature','c')?>"></span><br><?php if($showLabels){?><span class='currentLabel'><?php echo lang('temperature','c')?></span><br><?php } ?><span id="currentTValue" style='font-size: 1.3em'></span><br>°<?php echo $displayTempUnits?>.
je vous joins un exemple ci-dessus.

Il faut ajouter style='font-size:1.3em' pour agrandir la valeur température.

Amicalement didier

Re: Font size - Block “current"

Posted: Thu Aug 08, 2024 3:56 pm
by El_Viejo
Thank you very much for your help.

In my version of the block it is line 345. In order not to rush and ruin my template, I will slowly review the changes to be made.

Merci beaucoup.

Re: Font size - Block “current"

Posted: Fri Aug 09, 2024 3:17 pm
by El_Viejo
I just tried it and it doesn't work correctly. It adds another amount below the current temperature instead of increasing the font size.

What am I doing wrong?

Merci.

Re: Font size - Block “current"

Posted: Fri Aug 09, 2024 4:28 pm
by MonyMony
I have modified the font size of the label on this block (see www.cecilweather.com). In my case, I changed the value in line 317 for font-size:

Code: Select all

		.currentLabel{
			font-size:0.6em;
			font-variant: small-caps;
Other font sizes are in the style area of the code should you wish to make changes beyond what I did. To help, I am attaching my copy of the current block.php for you to do a comparison with. I hope it helps!
currentBlock.php.zip
(9.73 KiB) Downloaded 867 times

Re: Font size - Block “current"

Posted: Sat Aug 10, 2024 2:59 pm
by El_Viejo
Thank you very much.

I will try it.

Re: Font size - Block “current"

Posted: Mon Aug 12, 2024 4:12 pm
by El_Viejo
I have tried that file modification with different "font-size" and it does not work.

Tried in Chrome, Edge and Mozilla, with no result in increasing the size.

I'm stumped.

But, thanks for your interest.

Re: Font size - Block “current"

Posted: Mon Aug 12, 2024 4:30 pm
by milesb
El_Viejo wrote: Mon Aug 12, 2024 4:12 pm I have tried that file modification with different "font-size" and it does not work.

Tried in Chrome, Edge and Mozilla, with no result in increasing the size.

I'm stumped.

But, thanks for your interest.
I've had the same lack of success.

Re: Font size - Block “current"

Posted: Mon Aug 12, 2024 11:08 pm
by lemimi
Hello,
Here is what I get on my web page: https://lemimi.fr/template/indexDesktop.php
If you are interested, the file can be downloaded here: http://lemimi.fr/chargements/template/currentBlock.zip
Good luck... Michel

Re: Font size - Block “current"

Posted: Tue Aug 13, 2024 7:49 am
by El_Viejo
Thank you very much.

Downloaded, I will try it.

Re: Font size - Block “current"

Posted: Tue Aug 13, 2024 9:10 am
by El_Viejo
Tested and works.

Thank you all for your help.