Dashboards & Visualizations

TimeRangePicker and splButton CSS Colour

calump90
Engager

Hello,

I am having trouble with two css elements.

1) I am unable to change the colour of the TimeRangePicker (button titled 'AllTime' ?) using the following css:

.TimeRangePicker {
color: #112442;
background-color: #112442;

}

or

.TimeRangePicker .timeRangeActivatorWrapper {
color: #112442;
background-color: red;

}

2) I can change the colour of the splButtons, however when I mouse over (hover) the magnifying glass icon disappears and it just displays a block. Here is my code:

.splButton-primary {
background-color: #112442;   
color: ;
background-image: url(overlay_softgradient_28.png); 

}

.splButton-primary:hover, input.searchButton:hover {
background-color: #102950;
background-image: url(overlay_softgradient_28.png); 

}

The css file I am editing is application.css contain within the static dir of my app.

Appreciate the help.

Tags (4)

Flynt
Splunk Employee
Splunk Employee

Your TimeRangePicker color can be changed with the following -

.TimeRangePicker .timeRangeActivatorWrapper {
background-image: none;
background-color:yourcolor;
}

As far as the search button, I'd just have the hover portion change the background color and omit the image unless you want your image to be different when you hover over it.

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...