Skip to content

Instantly share code, notes, and snippets.

@thibodux
Created July 22, 2017 10:49
Show Gist options
  • Save thibodux/3b987d09e89f23e59654e1edd1fd2238 to your computer and use it in GitHub Desktop.
Save thibodux/3b987d09e89f23e59654e1edd1fd2238 to your computer and use it in GitHub Desktop.
Splunk CSS to hide Real-Time and All-Time options from time pickers
/* These CSS settings will hide often unwanted time
period options from all time pickers in SimpleXML
dashboards for the app containing this file.
These settings are only visual changes, i.e.,
users can still search using All-Time or Real-Time
settings if they know how to manually enter the
corresponding values */
/* hide real-time accordion tab in time pickers */
div[id^='realtime_view'] {
display: none;
}
/* hide real-time column from the Presets accordion tab in time pickers */
div[id^='presets_view'] > div.accordion-body > div > ul:nth-child(1) {
display:none;
}
/* hide unnecessary divider from the Presets accordion tab in time pickers */
div[id^='presets_view'] > div.accordion-body > div > div:nth-child(2) {
display:none;
}
/* hide Other column from the Presets accordion tab in time pickers */
div[id^='presets_view'] > div.accordion-body > div > ul:nth-child(6) {
display:none;
}
/* hide unnecessary divider from the Presets accordion tab in time pickers */
div[id^='presets_view'] > div.accordion-body > div > div:nth-child(5) {
display:none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment