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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...