Dashticz - Custom CSS
Posted: Monday 04 September 2017 9:32
Section for questions about custom CSS modifications in Dashticz v2.0
Join 16,000+ members discussing home automation with Domoticz. Get help with Zigbee, ZWave, MQTT, scripting, and 150+ integrations
https://forum.domoticz.com/
Code: Select all
blocks[31] = {}
blocks[31]['title']='Huiskamerlamp';
blocks[31]['image']='Light144_On.png';
blocks[31]['width']=4;
blocks[10] = {}
blocks[10]['title']='Lamp poort';
blocks[10]['image']='Light48_On.png'
blocks[10]['width']=4;Code: Select all
#newsTicker li {
font-size:16px !important;
}
Ingmar wrote: Tuesday 24 October 2017 15:46 How can i remove the icon of the news block? With the TV block i removed the icon via the block settings in config.js. Instead of naming an alternative icon, i left it blank between the single quotes which causes no icon to be shown. However, with the news block that doesn't work...
Code: Select all
/* News block: Hide icon and change margins of text to fill block */
#rss-styled_news {
margin-right: -20px;
margin-left: -20px;
}
.fa.fa-newspaper-o {
opacity: 0;
}Code: Select all
/* change background of all blocks */
.transbg.col-xs-1,
.transbg.col-xs-2,
.transbg.col-xs-3,
.transbg.col-xs-4,
.transbg.col-xs-5,
.transbg.col-xs-6,
.transbg.col-xs-7,
.transbg.col-xs-8,
.transbg.col-xs-9,
.transbg.col-xs-10,
.transbg.col-xs-11,
.transbg.col-xs-12 {
border: 5px solid rgba(255,255,255,0); /* border: 7px -> 3px - Smaller space between blocks */
background: rgba(255,0,0,0.8);
}Code: Select all
.gasgebruik {
background: rgba(255,128,128,0.3) !important;
background-clip: padding-box;
}Code: Select all
.gasgebruik {
background: rgba(255,128,128,0.3);
}Code: Select all
div.mh {
height: 99px !important;
}
Code: Select all
.block_'9448_1' { color:red !important; }Code: Select all
.fa-battery-three-quarters.on { color: red; }
.fa-battery-three-quarters.off { color: blue;}
.fa-battery-three-quarters:before { font-size: 40px;}
.fa-battery-three-quarters { margin-top: 15px !important;} /* zet het icon in het midden van de block */
Code: Select all
blocks[697] = {}
blocks[697]['width'] = 3; //1 to 12, remove this line if you want to use the default (4)
blocks[697]['title'] = 'Laders'; //if you want change the name of switch different then domoticz
blocks[697]['icon'] = '.fa-battery-three-quarters; //if you want an other icon instead of the default, choose from: ttp://fontawesome.io/cheatsheet/
//blocks[697]['image'] = 'bulb_off.png'; //if you want to show an image instead if icon, place image in img/ folder
blocks[697]['switch'] = true; //if you want to switch the title and data
blocks[697]['hide_data'] = true; //if you want to hide the data of this block
blocks[697]['show_lastupdate'] = false; //if you want to show the last update specific for this block
Code: Select all
.fa-eye.on { color: red; }
.fa-eye.off { color: blue;}
.fa-eye:before { font-size: 40px;}
.fa-eye { margin-top: 15px !important;} /* zet het icon in het midden van de block */
Code: Select all
.block_9448_1 { color:red !important; }
that works just for the icon....[ option for the text ]robgeerts wrote: Tuesday 02 January 2018 9:25 Try:(I removed the quotes...)Code: Select all
.block_9448_1 { color:red !important; }
Code: Select all
/*//////////////// Tekst in de buttons en er onder \\\\\\\\\\\\\\\\\\\\\*/
.col-data .title { font-size: 45px; margin-left: 25px; font-weight: 600; color: deepskyblue; font-variant: small-caps;}
.col-data span { font-size: 25px; margin-right: 25px; font-weight:220; color: dodgerblue;font-variant: small-caps;}
Code: Select all
.block_9325 { font-size: 25px; !important; color: red;!important; }
Code: Select all
/*////////////////////////////////////// Zon opkomst en ondergang \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
.sunrise { font-size: 25px; color: #FFFF00 ;!important; font-weight: 1; font-variant: small-caps;}
.wi-sunrise { color: yellow;!important;}
.sunset { font-size: 25px; color: #0000FF ;!important; font-weight: 1; font-variant: small-caps;}
.wi-sunset { color: indigo; !important;}
Code: Select all
.kliko.png { height:25px; width:25px; margin-left:2px ; margin-top: 2px;}
Code: Select all
/* ///////////// Swiper bullet \\\\\\\\\\\\\\\\\\\\*/
.swiper-pagination-bullet {background: #00FF00 ; width: 90px;!important; height: 90px;!important; float:left; position:relative; left:1000px;}
Code: Select all
.trafficmap { height: 100%;}
.col-xs-1.block_trafficmap,
.col-xs-2.block_trafficmap
, .col-xs-3.block_trafficmap, .col-xs-4.block_trafficmap, .col-xs-5.block_trafficmap, .col-xs-6.block_trafficmap, .col-xs-7.block_trafficmap, .col-xs-8.block_trafficmap, .col-xs-9.block_trafficmap, .col-xs-10.block_trafficmap, .col-xs-11.block_trafficmap, .col-xs-12.block_trafficmap {
padding-left: 13px !important;
padding-right: 13px !important;
height:1000px !important;
}