mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Styled <select>
This commit is contained in:
parent
64146a0392
commit
4ae84d5e1a
@ -50,26 +50,29 @@ const SettingsGeneral = ({settings, updateSetting}) => (
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div className="form-control form-control--outlined pad-top-sm">
|
||||
<label>Text Editor Font Size (px)
|
||||
<input type="number"
|
||||
min={8}
|
||||
max={20}
|
||||
defaultValue={settings.editorFontSize}
|
||||
onChange={e => updateSetting('editorFontSize', parseInt(e.target.value, 10))}/>
|
||||
</label>
|
||||
</div>
|
||||
<div className="form-row">
|
||||
<div className="form-control form-control--outlined pad-top-sm">
|
||||
<label>Text Editor Font Size (px)
|
||||
<input type="number"
|
||||
min={8}
|
||||
max={20}
|
||||
defaultValue={settings.editorFontSize}
|
||||
onChange={e => updateSetting('editorFontSize', parseInt(e.target.value, 10))}/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div className="form-control form-control--outlined pad-top-sm">
|
||||
<label>Text Editor Key Map
|
||||
<select defaultValue={settings.editorKeyMap}
|
||||
onChange={e => updateSetting('editorKeyMap', e.target.value)}>
|
||||
<option value="default">Default</option>
|
||||
<option value="vim">Vim</option>
|
||||
<option value="emacs">Emacs</option>
|
||||
<option value="sublime">Sublime</option>
|
||||
</select>
|
||||
</label>
|
||||
<div className="form-control form-control--outlined pad-top-sm">
|
||||
<label>
|
||||
Text Editor Key Map
|
||||
<select defaultValue={settings.editorKeyMap}
|
||||
onChange={e => updateSetting('editorKeyMap', e.target.value)}>
|
||||
<option value="default">Default</option>
|
||||
<option value="vim">Vim</option>
|
||||
<option value="emacs">Emacs</option>
|
||||
<option value="sublime">Sublime</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-control form-control--outlined">
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
input,
|
||||
textarea,
|
||||
select,
|
||||
button {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@ -57,14 +58,17 @@
|
||||
&.form-control--outlined,
|
||||
&.form-control--underlined {
|
||||
textarea,
|
||||
input {
|
||||
input,
|
||||
select {
|
||||
height: @line-height-xs;
|
||||
border: 1px solid @hl-md;
|
||||
padding: @padding-sm;
|
||||
padding: 0 @padding-sm;
|
||||
border-radius: @radius-md;
|
||||
background-color: @hl-xxs;
|
||||
}
|
||||
|
||||
textarea:focus,
|
||||
select:focus,
|
||||
input:focus {
|
||||
background-color: transparent;
|
||||
border-color: @hl-lg;
|
||||
@ -78,6 +82,7 @@
|
||||
|
||||
&.form-control--padded {
|
||||
textarea,
|
||||
select,
|
||||
input {
|
||||
border: 0;
|
||||
}
|
||||
@ -85,6 +90,7 @@
|
||||
|
||||
&.form-control--underlined {
|
||||
textarea,
|
||||
select,
|
||||
input {
|
||||
border-radius: 0;
|
||||
border-top: 0;
|
||||
@ -181,7 +187,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
textarea, input, button {
|
||||
textarea, input, button, select {
|
||||
box-sizing: border-box;
|
||||
text-align: left;
|
||||
font-size: inherit;
|
||||
|
Loading…
Reference in New Issue
Block a user