Font size - Block “current"

Post Reply
El_Viejo
Forecaster
Forecaster
Posts: 103
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Font size - Block “current"

Post by El_Viejo » Thu Jul 25, 2024 3:41 pm

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.
Attachments
Current_size.png
Current_size.png (110.39 KiB) Viewed 555 times

User avatar
didoujm
Observer
Observer
Posts: 17
Joined: Sun Aug 20, 2017 1:47 pm
Location: Mirepoix
Station model: Davis Vantage Pro2
Software: WEATHER DISPLAY
Contact:

Re: Font size - Block “current"

Post by didoujm » Wed Aug 07, 2024 11:51 am

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

El_Viejo
Forecaster
Forecaster
Posts: 103
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Font size - Block “current"

Post by El_Viejo » Thu Aug 08, 2024 3:56 pm

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.

El_Viejo
Forecaster
Forecaster
Posts: 103
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Font size - Block “current"

Post by El_Viejo » Fri Aug 09, 2024 3:17 pm

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.

User avatar
MonyMony
Forecaster
Forecaster
Posts: 187
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Re: Font size - Block “current"

Post by MonyMony » Fri Aug 09, 2024 4:28 pm

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 18 times
Image

El_Viejo
Forecaster
Forecaster
Posts: 103
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Font size - Block “current"

Post by El_Viejo » Sat Aug 10, 2024 2:59 pm

Thank you very much.

I will try it.

El_Viejo
Forecaster
Forecaster
Posts: 103
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Font size - Block “current"

Post by El_Viejo » 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.

milesb
Observer
Observer
Posts: 43
Joined: Tue Mar 26, 2019 10:38 pm
Location: Asheville, NC
Station model: Davis Vantage Pro2
Software: Weather Display
Contact:

Re: Font size - Block “current"

Post by milesb » Mon Aug 12, 2024 4:30 pm

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.

User avatar
lemimi
Advisor
Advisor
Posts: 99
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Font size - Block “current"

Post by lemimi » Mon Aug 12, 2024 11:08 pm

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

El_Viejo
Forecaster
Forecaster
Posts: 103
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Font size - Block “current"

Post by El_Viejo » Tue Aug 13, 2024 7:49 am

Thank you very much.

Downloaded, I will try it.

El_Viejo
Forecaster
Forecaster
Posts: 103
Joined: Wed Sep 11, 2019 3:56 pm
Location: Derio - Bizkaia - Spain
Station model: Ecowitt - Netatmo

Re: Font size - Block “current"

Post by El_Viejo » Tue Aug 13, 2024 9:10 am

Tested and works.

Thank you all for your help.

Post Reply