Last active
July 2, 2019 16:13
-
-
Save thibodux/408a685dc1a46af5f4f73f7c2922e47e to your computer and use it in GitHub Desktop.
Splunk CSS to simplify resizing SimpleXML form inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Splunk's SimpleXML classes for text boxes, drop downs, and | |
multiselect inputs have some odd CSS settings that make | |
it difficult to change the width of the whole entity with | |
a single CSS setting. | |
The following adjustments to the child input elements | |
are intended to overcome this challenge by making the | |
internal elements conform to the width setting of the | |
top-level container. | |
Using these settings for an entire app will allow a developer | |
to resize these type of inputs by simple adjusting the | |
`width` CSS setting for the top-level class or HTML ID */ | |
/* internal piece of text inputs */ | |
.input-text > div input[type=text] { | |
width: 90% !important; | |
max-width: 90% !important; | |
min-width: 90% !important; | |
} | |
/* internal piece of dropdown inputs */ | |
.input-dropdown > .splunk-dropdown > div { | |
width: 100% !important; | |
max-width: 100% !important; | |
min-width: 100% !important; | |
} | |
/* internal piece of multiselect inputs */ | |
.input-multiselect > div > div { | |
width: 100% !important; | |
max-width: 100% !important; | |
min-width: 100% !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment