Skip to content

Instantly share code, notes, and snippets.

@Studentenfutter
Forked from thibodux/dashboard.css
Created October 12, 2023 12:16
Show Gist options
  • Save Studentenfutter/3775f8f08b8a9a00a06afdae7daba408 to your computer and use it in GitHub Desktop.
Save Studentenfutter/3775f8f08b8a9a00a06afdae7daba408 to your computer and use it in GitHub Desktop.
Splunk CSS: Hide options / time ranges 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 */
/* ACCORDION MENUS*/
/* hide real-time accordion tab in time pickers */
div[id^='realtime_view'] {
display: none;
}
/* hide daterange accordion tab in time pickers */
div[id^='daterange_view'] {
display: none;
}
/* hide relative accordion tab in time pickers */
div[id^='relative_view'] {
display: none;
}
/* hide dateandtimerange accordion tab in time pickers */
div[id^='dateandtimerange_view'] {
display: none;
}
/* hide other accordion tab in time pickers */
div[id^='advanced_view'] {
display: none;
}
/* PRESETS COLUMNS */
/* ----- ul hides the columns in the presets accordion menu, div hides the dividers -----*/
/* 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