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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...