mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Merge pull request #150 from ascribe/refactor-piece-list-toolbar-widget-css
Refactor piece list toolbar widget css and remove btn-ascribe-add
This commit is contained in:
commit
2ad0ef69bb
@ -87,7 +87,7 @@ let PieceListToolbarFilterWidget = React.createClass({
|
|||||||
id="ascribe-piece-list-toolbar-filter-widget-dropdown"
|
id="ascribe-piece-list-toolbar-filter-widget-dropdown"
|
||||||
pullRight={true}
|
pullRight={true}
|
||||||
title={filterIcon}
|
title={filterIcon}
|
||||||
className="ascribe-piece-list-toolbar-filter-widget">
|
className="ascribe-piece-list-toolbar-widget">
|
||||||
{/* We iterate over filterParams, to receive the label and then for each
|
{/* We iterate over filterParams, to receive the label and then for each
|
||||||
label also iterate over its items, to get all filterable options */}
|
label also iterate over its items, to get all filterable options */}
|
||||||
{this.props.filterParams.map(({ label, items }, i) => {
|
{this.props.filterParams.map(({ label, items }, i) => {
|
||||||
@ -121,7 +121,7 @@ let PieceListToolbarFilterWidget = React.createClass({
|
|||||||
<li
|
<li
|
||||||
key={itemLabel}
|
key={itemLabel}
|
||||||
onClick={this.filterBy(param)}
|
onClick={this.filterBy(param)}
|
||||||
className="filter-widget-item">
|
className="ascribe-piece-list-toolbar-widget-item">
|
||||||
<div className="checkbox-line">
|
<div className="checkbox-line">
|
||||||
<span>
|
<span>
|
||||||
{getLangText(itemLabel)}
|
{getLangText(itemLabel)}
|
||||||
|
@ -57,7 +57,7 @@ let PieceListToolbarOrderWidget = React.createClass({
|
|||||||
<DropdownButton
|
<DropdownButton
|
||||||
id="ascribe-piece-list-toolbar-order-widget-dropdown"
|
id="ascribe-piece-list-toolbar-order-widget-dropdown"
|
||||||
pullRight={true}
|
pullRight={true}
|
||||||
className="ascribe-piece-list-toolbar-filter-widget"
|
className="ascribe-piece-list-toolbar-widget"
|
||||||
title={orderIcon}>
|
title={orderIcon}>
|
||||||
<li style={{'textAlign': 'center'}}>
|
<li style={{'textAlign': 'center'}}>
|
||||||
<em>{getLangText('Sort by')}:</em>
|
<em>{getLangText('Sort by')}:</em>
|
||||||
@ -67,7 +67,7 @@ let PieceListToolbarOrderWidget = React.createClass({
|
|||||||
<li
|
<li
|
||||||
key={param}
|
key={param}
|
||||||
onClick={this.orderBy(param)}
|
onClick={this.orderBy(param)}
|
||||||
className="filter-widget-item">
|
className="ascribe-piece-list-toolbar-widget-item">
|
||||||
<div className="checkbox-line">
|
<div className="checkbox-line">
|
||||||
<span>
|
<span>
|
||||||
{getLangText(param.replace('_', ' '))}
|
{getLangText(param.replace('_', ' '))}
|
||||||
|
@ -306,12 +306,7 @@ let PieceList = React.createClass({
|
|||||||
orderBy={this.state.orderBy}
|
orderBy={this.state.orderBy}
|
||||||
applyFilterBy={this.applyFilterBy}
|
applyFilterBy={this.applyFilterBy}
|
||||||
applyOrderBy={this.applyOrderBy}>
|
applyOrderBy={this.applyOrderBy}>
|
||||||
{customSubmitButton ?
|
{customSubmitButton}
|
||||||
customSubmitButton :
|
|
||||||
<button className="btn btn-default btn-ascribe-add">
|
|
||||||
<span className="icon-ascribe icon-ascribe-add" />
|
|
||||||
</button>
|
|
||||||
}
|
|
||||||
</PieceListToolbar>
|
</PieceListToolbar>
|
||||||
<PieceListBulkModal
|
<PieceListBulkModal
|
||||||
availableAcls={availableAcls}
|
availableAcls={availableAcls}
|
||||||
|
@ -148,14 +148,10 @@ hr {
|
|||||||
font-weight: $ascribe--font-weight-light;
|
font-weight: $ascribe--font-weight-light;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-ascribe-search{
|
.icon-ascribe-search {
|
||||||
color: $ascribe--button-default-color;
|
color: $ascribe--button-default-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ascribe-piece-list-toolbar .btn-ascribe-add{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ascribe-accordion-list {
|
.ascribe-accordion-list {
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
@ -210,7 +206,6 @@ hr {
|
|||||||
|
|
||||||
.route--login,
|
.route--login,
|
||||||
.route--signup {
|
.route--signup {
|
||||||
|
|
||||||
.btn-spinner {
|
.btn-spinner {
|
||||||
background-color: $ascribe--button-default-color;
|
background-color: $ascribe--button-default-color;
|
||||||
}
|
}
|
||||||
@ -233,31 +228,6 @@ hr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-ascribe-add {
|
|
||||||
width: 30px;
|
|
||||||
height: 30px;
|
|
||||||
background-color: transparent !important;
|
|
||||||
border: 1px solid $ascribe-dark-blue;
|
|
||||||
border-radius: 50%;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border-color: white!important;
|
|
||||||
background-color: $ascribe-dark-blue!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
> span {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 2px;
|
|
||||||
width: 30px;
|
|
||||||
height: 30px;
|
|
||||||
color: $ascribe-dark-blue;
|
|
||||||
padding: 0.4em;
|
|
||||||
&:hover {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// buttons!
|
// buttons!
|
||||||
// thought of the day:
|
// thought of the day:
|
||||||
// "every great atrocity is the result of people just following orders"
|
// "every great atrocity is the result of people just following orders"
|
||||||
@ -374,19 +344,6 @@ fieldset[disabled] .btn-secondary.active {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ascribe-piece-list-toolbar-filter-widget button {
|
|
||||||
background-color: transparent;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
color: $ascribe--button-default-color;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:active {
|
|
||||||
background-color: $ascribe--button-default-color !important;
|
|
||||||
border-color: $ascribe--button-default-color !important;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-wide {
|
.btn-wide {
|
||||||
font-weight: $ascribe--font-weight-light;
|
font-weight: $ascribe--font-weight-light;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
.ascribe-piece-list-toolbar {
|
.ascribe-piece-list-toolbar {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
@ -30,17 +29,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ascribe-piece-list-toolbar-filter-widget {
|
.ascribe-piece-list-toolbar-widget {
|
||||||
|
|
||||||
button {
|
button {
|
||||||
background-color: rgba(0, 0, 0, 0);
|
background-color: transparent;
|
||||||
border: 1px solid rgba(0, 0, 0, 0);
|
border: 1px solid transparent;
|
||||||
color: #02b6a3;
|
color: $ascribe--button-default-color;
|
||||||
padding: 6px 4px 6px 8px;
|
padding: 6px 4px 6px 8px;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active {
|
&:active {
|
||||||
background-color: #02b6a3 !important;
|
background-color: $ascribe--button-default-color !important;
|
||||||
|
border-color: $ascribe--button-default-color !important;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.caret {
|
.caret {
|
||||||
@ -48,7 +47,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-widget-item {
|
.ascribe-piece-list-toolbar-widget-item {
|
||||||
a {
|
a {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
@ -60,10 +60,6 @@
|
|||||||
color: $simple-prize--button-color;
|
color: $simple-prize--button-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.client--sluice .ascribe-piece-list-toolbar .btn-ascribe-add{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// disabled buttons
|
// disabled buttons
|
||||||
.client--sluice {
|
.client--sluice {
|
||||||
.btn-default.disabled,
|
.btn-default.disabled,
|
||||||
|
@ -248,10 +248,6 @@ $vivi23--highlight-color: #2882fa;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Other components **/
|
/** Other components **/
|
||||||
.ascribe-piece-list-toolbar .btn-ascribe-add {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ascribe-accordion-list-table-toggle:hover {
|
.ascribe-accordion-list-table-toggle:hover {
|
||||||
color: $vivi23--fg-color;
|
color: $vivi23--fg-color;
|
||||||
}
|
}
|
||||||
|
@ -59,10 +59,6 @@ $cc--button-color: $cc--nav-fg-prim-color;
|
|||||||
color: $cc--button-color;
|
color: $cc--button-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.client--cc .ascribe-piece-list-toolbar .btn-ascribe-add {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// disabled buttons
|
// disabled buttons
|
||||||
.client--cc {
|
.client--cc {
|
||||||
// disabled buttons
|
// disabled buttons
|
||||||
|
@ -60,10 +60,6 @@ $cyland--button-sec-color: #515151;
|
|||||||
color: $cyland--button-color;
|
color: $cyland--button-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.client--cyland .ascribe-piece-list-toolbar .btn-ascribe-add {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// buttons!
|
// buttons!
|
||||||
// thought of the day:
|
// thought of the day:
|
||||||
// "every great atrocity is the result of people just following orders"
|
// "every great atrocity is the result of people just following orders"
|
||||||
|
@ -225,10 +225,6 @@ $ikono--font: 'Helvetica Neue', 'Helvetica', sans-serif !important;
|
|||||||
color: $ikono--button-color;
|
color: $ikono--button-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.client--ikonotv .ascribe-piece-list-toolbar .btn-ascribe-add {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// spinner!
|
// spinner!
|
||||||
.client--ikonotv {
|
.client--ikonotv {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user