All Apps and Add-ons

In Splunk 6.1.X How Do I Change The Font Size of a single-value in CSS and Simple XML

davecroto
Splunk Employee
Splunk Employee

Every time I try and create a new .CSS file called foobar.css and place it in $SPLUNKHOME/etc/apps/my new app/appserver/static

Here is the only thing I have in foobar.css:

.single-value .single-result {
font-size: 15px;
font-weight: bold;
word-wrap: break-word;

And then:

Here is my XML....Notice the foobar.css referenced as the stylesheet

<dashboard stylesheet="foobar.css">
  <label>test</label>
  <row>
    <panel>
      <single>
        <searchString>index=_internal |head 2 |stats dc(sourcetype)</searchString>
        <earliestTime/>
        <latestTime/>
        <option name="drilldown">none</option>
      </single>
    </panel>
  </row>
</dashboard>

When I go to firebug it is crossed out and I am back to the default 24px size not 15px

0 Karma
1 Solution

davecroto
Splunk Employee
Splunk Employee

Added !important, like below. Be careful, make sure the semicolon ";" is after the word !important.

.single-value .single-result {
font-size: 15px !important;
font-weight: bold;
word-wrap: break-word;

Then restart Splunk Web.

View solution in original post

davecroto
Splunk Employee
Splunk Employee

Added !important, like below. Be careful, make sure the semicolon ";" is after the word !important.

.single-value .single-result {
font-size: 15px !important;
font-weight: bold;
word-wrap: break-word;

Then restart Splunk Web.

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 ...