fix form css
This commit is contained in:
parent
705c47bc63
commit
26777d9e30
9 changed files with 23 additions and 7 deletions
|
@ -23,7 +23,8 @@ class BlacklistForm extends Component {
|
||||||
</div>;
|
</div>;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
<AddButton name='add' onClick={this.bindValue.bind(this)} />
|
<AddButton name='add' style='float:right'
|
||||||
|
onClick={this.bindValue.bind(this)} />
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.form-keymaps-form {
|
.form-keymaps-form {
|
||||||
column-count: 2;
|
column-count: 3;
|
||||||
.keymap-fields-group {
|
.keymap-fields-group {
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,8 @@ class SearchForm extends Component {
|
||||||
</div>;
|
</div>;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
<AddButton name='add' onClick={this.bindValue.bind(this)} />
|
<AddButton name='add' style='float:right'
|
||||||
|
onClick={this.bindValue.bind(this)} />
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
|
|
||||||
.column-name {
|
.column-name {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.column-url {
|
.column-url {
|
||||||
flex: 5;
|
flex: 5;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.column-option {
|
.column-option {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
line-height: 1.5rem;
|
padding: .5rem 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { h, Component } from 'preact';
|
||||||
class AddButton extends Component {
|
class AddButton extends Component {
|
||||||
render() {
|
render() {
|
||||||
return <input
|
return <input
|
||||||
className='ui-add-button' type='button' value='Add'
|
className='ui-add-button' type='button' value='✚'
|
||||||
{...this.props} />;
|
{...this.props} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
.ui-add-button {
|
.ui-add-button {
|
||||||
font-size: 80%
|
border: none;
|
||||||
|
padding: 4;
|
||||||
|
display: inline;
|
||||||
|
background: none;
|
||||||
|
font-weight: bold;
|
||||||
|
color: green;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: darkgreen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
display: inline;
|
display: inline;
|
||||||
background: none;
|
background: none;
|
||||||
color: red;
|
color: red;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: darkred;
|
color: darkred;
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input[type='text'] {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
width: 8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input.input-crror,
|
input.input-crror,
|
||||||
|
|
Reference in a new issue