Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 50fd5ea

Browse files
committed
Add GitHub icon to 'show on github' link
1 parent c0bf452 commit 50fd5ea

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

platform/ios/docs/theme/assets/css/jazzy.css.scss

+11
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,17 @@ pre code {
525525
font-size: 0.9em;
526526
}
527527

528+
.show-on-github {
529+
font-variant: small-caps;
530+
}
531+
532+
.show-on-github-icon {
533+
width: 16px;
534+
display: inline-block !important;
535+
vertical-align: -3px;
536+
padding-left: 2px;
537+
}
538+
528539

529540
// ===========================================================================
530541
//
Loading

platform/ios/docs/theme/templates/task.mustache

+5-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,11 @@
8080
</div>
8181
{{/return}}
8282
{{#github_token_url}}
83-
<div class="slightly-smaller">
84-
<a href="{{{github_token_url}}}">Show on GitHub</a>
83+
<div class="slightly-smaller show-on-github">
84+
<a href="{{{github_token_url}}}">
85+
show on github
86+
<img class="show-on-github-icon" src="{{{path_to_root}}}img/github.svg"/>
87+
</a>
8588
</div>
8689
{{/github_token_url}}
8790
</section>

0 commit comments

Comments
 (0)