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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...