Add more icons
This commit is contained in:
parent
f100537bbe
commit
a8d455b988
7 changed files with 20 additions and 17 deletions
|
|
@ -74,13 +74,13 @@ class PostModal extends React.Component {
|
||||||
className={`button read-button ${readButtonDisabled && 'button--disabled'}`}
|
className={`button read-button ${readButtonDisabled && 'button--disabled'}`}
|
||||||
onClick={() => !readButtonDisabled && this.props.markPostRead(post, token)}
|
onClick={() => !readButtonDisabled && this.props.markPostRead(post, token)}
|
||||||
>
|
>
|
||||||
Mark as read
|
<i className="fas fa-check" /> Mark as read
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="button post__close-button"
|
className="button post__close-button"
|
||||||
onClick={() => this.props.unSelectPost()}
|
onClick={() => this.props.unSelectPost()}
|
||||||
>
|
>
|
||||||
Close <i className="gg-close"></i>
|
<i className="fas fa-times"></i> Close
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="post__header">
|
<div className="post__header">
|
||||||
|
|
@ -112,7 +112,7 @@ class PostModal extends React.Component {
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<i className="gg-link" />
|
<i className="fas fa-external-link-alt" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class CategoryItem extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const chevronClass = this.state.open ? 'gg-chevron-down' : 'gg-chevron-right';
|
const chevronClass = this.state.open ? 'fas fa-chevron-down' : 'fas fa-chevron-right';
|
||||||
const selected = isSelected(this.props.category, this.props.selected, CATEGORY_TYPE);
|
const selected = isSelected(this.props.category, this.props.selected, CATEGORY_TYPE);
|
||||||
const className = selected ? 'category category--selected' : 'category';
|
const className = selected ? 'category category--selected' : 'category';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class ReadButton extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<button className="button read-button" onClick={this.markSelectedRead}>
|
<button className="button read-button" onClick={this.markSelectedRead}>
|
||||||
Mark selected read
|
<i className="fas fa-check" /> Mark selected read
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class RuleItem extends React.Component {
|
||||||
if (this.props.rule.favicon) {
|
if (this.props.rule.favicon) {
|
||||||
favicon = <img className="favicon" width="20" src={this.props.rule.favicon} />;
|
favicon = <img className="favicon" width="20" src={this.props.rule.favicon} />;
|
||||||
} else {
|
} else {
|
||||||
favicon = <i className="gg-image" />;
|
favicon = <i className="fas fa-image" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
display: inline-flex;
|
& i {
|
||||||
padding: 0 15px;
|
padding: 0 0 0 7px;
|
||||||
|
|
||||||
& img {
|
|
||||||
width: 30px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -91,7 +88,12 @@
|
||||||
|
|
||||||
&__close-button {
|
&__close-button {
|
||||||
background-color: $blue;
|
background-color: $blue;
|
||||||
color: $white;
|
color: var(--font-color);
|
||||||
|
|
||||||
|
// TODO add mixin for default font awesome padding
|
||||||
|
& i {
|
||||||
|
padding: 0 7px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: lighten($blue, +1%);
|
background-color: lighten($blue, +1%);
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,6 @@
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
|
||||||
display: inline-flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .badge {
|
& .badge {
|
||||||
& a {
|
& a {
|
||||||
color: $black;
|
color: $black;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
.read-button {
|
.read-button {
|
||||||
@extend .button;
|
@extend .button;
|
||||||
|
|
||||||
color: $white;
|
color: var(--font-color);
|
||||||
background-color: $green;
|
background-color: $green;
|
||||||
|
|
||||||
|
// TODO add mixin for default font awesome padding
|
||||||
|
& i {
|
||||||
|
padding: 0 7px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: darken($green, 10%);
|
background-color: darken($green, 10%);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue