custom.css Text size

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
marktn
Posts: 232
Joined: Tuesday 21 April 2015 21:39
Target OS: Windows
Domoticz version:
Contact:

custom.css Text size

Post by marktn »

Hello,

Is it possible to make the text size of the switches bigger? Read the wiki, but can't find it.
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: custom.css Text size

Post by HansieNL »

As far as I know is there no specific css class for only switches.
You can add your own class to your switches:

Code: Select all

blocks['block_switch'] = {
	idx: 123,
	addClass: 'blocksw'
}
You can then change the text size via custom.css:

Code: Select all

.blocksw .title {
	font-size: 200% !important;
}

.blocksw .state {
	font-size: 150% !important;
}

.blocksw .lastupdate {
	font-size: 300% !important;
}
Blah blah blah
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest