Dashboards & Visualizations

CSS for view higher priority than application.css and default.css ?

StefanB
Explorer

Hi,

if I add a different template and stylesheet in a dashboard's xml, which one will get used if classes are not used?

Getting clearer:

my dashboard-xml gets the line:

<view template="otherdashboard.html" stylesheet="myown.css">

And in myown.css are the same classes or classes are missing, which classes will get used?

Or is it like what I have not defined in myown.css will not be interpreted?

Tags (2)
1 Solution

Ron_Naken
Splunk Employee
Splunk Employee

Classes you specify in your .CSS should override values provided by the default CSS definitions. The global defaults are specified here:

$SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/css/skins/default/

And any application you're in will generally have its own set of additional defaults/overrides:

$SPLUNK_HOME/etc/apps/<app>/appserver/static/application.css

Anything you don't specify will simply be inherited.

View solution in original post

Ron_Naken
Splunk Employee
Splunk Employee

Classes you specify in your .CSS should override values provided by the default CSS definitions. The global defaults are specified here:

$SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/css/skins/default/

And any application you're in will generally have its own set of additional defaults/overrides:

$SPLUNK_HOME/etc/apps/<app>/appserver/static/application.css

Anything you don't specify will simply be inherited.

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...