1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

chore: avoid using .fa() mixins and @fa-var vars (#3912)

This commit is contained in:
Sami Mazouz
2023-10-29 14:45:50 +01:00
committed by GitHub
parent 015529ff1e
commit 87a83d33b3
10 changed files with 38 additions and 29 deletions

View File

@@ -338,7 +338,10 @@ export default class Composer extends Component {
items.add(
'minimize',
<ComposerButton
icon="fas fa-minus minimize"
icon={classList('fas minimize', {
'fa-minus': app.screen() !== 'phone',
'fa-times': app.screen() === 'phone',
})}
title={app.translator.trans('core.forum.composer.minimize_tooltip')}
onclick={this.state.minimize.bind(this.state)}
itemClassName="App-backControl"

View File

@@ -145,6 +145,7 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
})}
>
<div className="Search-input">
<Icon name="fas fa-search Search-input-icon" />
<input
aria-label={searchLabel}
className="FormControl"

View File

@@ -58,9 +58,7 @@
overflow: hidden;
color: var(--muted-color);
&:before {
.fas();
content: @fa-var-search;
&-icon {
margin-right: -36px;
width: 36px;
font-size: 14px;

View File

@@ -16,5 +16,6 @@
margin-left: -30px;
pointer-events: none;
color: var(--control-color);
.fa-fw();
text-align: center;
width: 1.25em;
}

View File

@@ -41,7 +41,8 @@
.icon {
font-size: 14px;
margin-right: 2px;
.fa-fw();
text-align: center;
width: 1.25em;
}
}

View File

@@ -155,9 +155,6 @@
}
}
}
.Composer-controls .fa-minus:before {
content: @fa-var-times;
}
.composer-backdrop {
position: fixed;
top: 0;