Parcourir la source

Reimplement external link icon using Fork Awesome (#791)

### Prerequisites

Put an `x` into the box(es) that apply:

- [ ] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

This PR re-implements #779 using Fork Awesome's icon for the external
link instead of a unicode character that may or may not be in the font
being used on the website. Since Fork Awesome is always included in the
CSS and is used elsewhere on the pages, we know this character will
definitely be available and will be consistent with the styling of the
rest of the website.

### Issues Resolved

None.

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [x] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [x] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [x] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
Simon Hollingshead il y a 2 ans
Parent
commit
989c0a5a81

+ 4 - 1
assets/scss/_content.scss

@@ -22,7 +22,10 @@
 
   article {
     a:where(.external-link)::after {
-      content: "⬈"
+      @include fa-icon;
+      content: fa-content($fa-var-external-link);
+      padding-left: 0.5em;
+      font-size: 0.75em;
     }
 
     details {

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content


+ 0 - 1
resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json

@@ -1 +0,0 @@
-{"Target":"css/coder-dark.min.f6534b0b446b75d9b6ad77a97d43ede2ddaeff1b6e2361fb7198d6f8fcb7f83f.css","MediaType":"text/css","Data":{"Integrity":"sha256-9lNLC0Rrddm2rXepfUPt4t2u/xtuI2H7cZjW+Py3+D8="}}

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
resources/_gen/assets/scss/scss/coder.scss_38b4d05915c0483e6cb106e4f0efccbc.content


+ 1 - 1
resources/_gen/assets/scss/scss/coder.scss_38b4d05915c0483e6cb106e4f0efccbc.json

@@ -1 +1 @@
-{"Target":"css/coder.min.0669b62fc2c181a12a4ba10be9984e385c9a5e83dc7cb7ae3759ad0b98d7e8b2.css","MediaType":"text/css","Data":{"Integrity":"sha256-Bmm2L8LBgaEqS6EL6ZhOOFyaXoPcfLeuN1mtC5jX6LI="}}
+{"Target":"css/coder.min.65236a6d834b26194eed04a2a3b45e44d9194ef9e620253705d4bef03bd7ef81.css","MediaType":"text/css","Data":{"Integrity":"sha256-ZSNqbYNLJhlO7QSio7ReRNkZTvnmICU3BdS+8DvX74E="}}

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 5
resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content


+ 0 - 1
resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json

@@ -1 +0,0 @@
-{"Target":"css/coder.min.0669b62fc2c181a12a4ba10be9984e385c9a5e83dc7cb7ae3759ad0b98d7e8b2.css","MediaType":"text/css","Data":{"Integrity":"sha256-Bmm2L8LBgaEqS6EL6ZhOOFyaXoPcfLeuN1mtC5jX6LI="}}

+ 9 - 1
resources/_gen/assets/scss/scss/coder.scss_d9b60ee5c2bc7799a5af2e1647965a29.content

@@ -3270,7 +3270,15 @@ figure {
           font-size: 4rem;
           line-height: 4.4rem; } }
   .content article a:where(.external-link)::after {
-    content: "⬈"; }
+    display: inline-block;
+    font: normal normal normal 14px/1 ForkAwesome;
+    font-size: inherit;
+    text-rendering: auto;
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale;
+    content: "\f08e";
+    padding-left: 0.5em;
+    font-size: 0.75em; }
   .content article details summary {
     cursor: pointer; }
   .content article footer {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff