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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...