Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Docs: Use emojis instead of images to indicate fixable/recommended ru…
Browse files Browse the repository at this point in the history
…les (#858)

* Update: change `(fixable)` and `(recommended)` to emojis

* Update: replace paragraph wrench & checkmark icons as well
  • Loading branch information
qpwo authored Jul 22, 2021
1 parent c1ecb6d commit 4dd81b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions _layouts/doc.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
| replace: '<p>(recommended) ', '<p class="recommended icon">'
| replace: '<p>(removed) ', '<p class="removed icon">'
| replace: '<p>(fixable) ', '<p class="fixable icon">'
| replace: '(recommended)', '<span title="recommended" aria-label="recommended" class="glyphicon glyphicon-ok"></span>'
| replace: '(fixable)', '<span title="fixable" aria-label="fixable" class="glyphicon glyphicon-wrench"></span>'
| replace: '(recommended)', '<span title="recommended" aria-label="recommended">✓</span>'
| replace: '(fixable)', '<span title="fixable" aria-label="fixable">🔧</span>'
}}
</article>
</main>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/rules.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</div>

{{ content
| replace: '(recommended)', '<span title="recommended" aria-label="recommended" class="glyphicon glyphicon-ok"></span>'
| replace: '(fixable)', '<span title="fixable" aria-label="fixable" class="glyphicon glyphicon-wrench"></span>'
| replace: '(recommended)', '<span title="recommended" aria-label="recommended">✓</span>'
| replace: '(fixable)', '<span title="fixable" aria-label="fixable">🔧</span>'
}}
</article>
</main>
Expand Down
4 changes: 2 additions & 2 deletions src/styles/lib/overrides.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ p {
}

&.recommended:before {
content: "\e013"; /* ok */
content: ""; /* ok */
}

&.removed:before {
content: "\e014"; /* remove */
}

&.fixable:before {
content: "\e136"; /* wrench */
content: "🔧"; /* wrench */
}

&.incorrect:before {
Expand Down

0 comments on commit 4dd81b3

Please sign in to comment.