talpor / django-dashing

django-dashing is a customisable, modular dashboard application framework for Django to visualize interesting data about your project. Inspired in the dashboard framework Dashing
BSD 3-Clause "New" or "Revised" License
731 stars 108 forks source link

Different coloured lists #67

Closed kufton closed 7 years ago

kufton commented 8 years ago

Is it possible to create different coloured widgets without having to create a new custom widget each time? Another way of wording this might be, is it possible to edit the style/class of a widget when you're adding it to a dashboard. Similar to the color option, but that only impacts the background, not the div holding the data displayed on top of it.

mtdb commented 7 years ago

No, currently it is not posible to modify the style or class of a widget when is being adding (only the background-color using the color option) You can use the selector :nth-child of css in order to give specifics styles to a widget because they are always added in the same order, for example .widget-number:nth-child(2) {font-size: 2em} is not the ideal but is a workaround for this requirement.