mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
add styling for piece list filter widget
This commit is contained in:
parent
fb10d9329b
commit
f31d576583
@ -115,15 +115,15 @@ let PieceListToolbarFilterWidgetFilter = React.createClass({
|
|||||||
<MenuItem
|
<MenuItem
|
||||||
key={i}
|
key={i}
|
||||||
onClick={this.filterBy(param)}
|
onClick={this.filterBy(param)}
|
||||||
style={{'textAlign': 'center'}}>
|
className="filter-widget-item">
|
||||||
<div className="checkbox-line">
|
<div className="checkbox-line">
|
||||||
<span>
|
<span>
|
||||||
{getLangText('I can') + ' ' + getLangText(label)}
|
{getLangText('I can') + ' ' + getLangText(label)}
|
||||||
<input
|
|
||||||
readOnly
|
|
||||||
type="checkbox"
|
|
||||||
checked={this.state.filterBy[param]} />
|
|
||||||
</span>
|
</span>
|
||||||
|
<input
|
||||||
|
readOnly
|
||||||
|
type="checkbox"
|
||||||
|
checked={this.state.filterBy[param]} />
|
||||||
</div>
|
</div>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
);
|
);
|
||||||
|
@ -13,13 +13,32 @@
|
|||||||
|
|
||||||
.ascribe-piece-list-toolbar-filter-widget {
|
.ascribe-piece-list-toolbar-filter-widget {
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
.checkbox-line {
|
|
||||||
span {
|
.filter-widget-item {
|
||||||
cursor: pointer;
|
|
||||||
|
> a {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkbox-line {
|
||||||
|
position: relative;
|
||||||
|
height: 25px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
position: absolute;
|
||||||
|
left: 9px;
|
||||||
|
top: 3px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
position: relative;
|
position: absolute;
|
||||||
top: 2px;
|
top: 2px;
|
||||||
|
right: 9px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user