fontsize of a block value

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
rene2716
Posts: 17
Joined: Friday 04 May 2018 11:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

fontsize of a block value

Post by rene2716 »

Hi,

I can change the fontsize of a block with custom.css, but it does not change the value fontsize, only the title text of the block.
Any tips or tricks?

tnx in advance
René
hannuf
Posts: 2
Joined: Sunday 10 May 2020 20:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: fontsize of a block value

Post by hannuf »

Hi,

I am also trying to change font size of value in one block, did you find out how to? or can someone help with this?
hannuf
Posts: 2
Joined: Sunday 10 May 2020 20:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: fontsize of a block value

Post by hannuf »

Found it on other topic, .block_6_3 .title { font-size:12px ; }
webrazor
Posts: 61
Joined: Monday 09 November 2015 9:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: fontsize of a block value

Post by webrazor »

This worked for me to, but after update to 3.5 it is not working anymore.
Now i use:

Code: Select all

.block_78 .value {
	font-size	: 48px!important;
}
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: fontsize of a block value

Post by Lokonli »

Is this solved already?
What kind of device is it?

If the above is not working try with:

Code: Select all

.block_78 .state{
	font-size	: 48px!important;
}
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: fontsize of a block value

Post by Lokonli »

webrazor wrote: Sunday 19 July 2020 0:24 This worked for me to, but after update to 3.5 it is not working anymore.
Now i use:

Code: Select all

.block_78 .value {
	font-size	: 48px!important;
}
From your other post I guess it's a temperature device. Correct?

On my system with device ID 2 as a temperature device the following is changing the size of the temperature value:

Code: Select all

.block_2 .value {
    font-size: 35px!important
}
However, if you defined a block in CONFIG.js with a custom identifier, then you have to use that identifier as well in custom.css.

So, in case your CONFIG.js contains:

Code: Select all

blocks['mytemp'] = {
	idx: 2
}
then you have to add the following to custom.css:

Code: Select all

.block_mytemp .value {
    font-size: 35px!important
}
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest