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

added space for consistance spacing between icon and anchor #573

Merged
merged 1 commit into from
Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions src/app/demos/anchor-link/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sequi ratione perspiciatis corrupti porro ipsam laudantium recusandae doloremque beatae perferendis libero placeat, excepturi odit quos quod facere pariatur quas, molestias esse!
</p>

<stache-page-anchor>
Test
</stache-page-anchor>
<stache-page-anchor>Test</stache-page-anchor>

<stache-page-anchor>
Test 2
</stache-page-anchor>
<stache-page-anchor>Test 2</stache-page-anchor>

<stache-page-anchor>
Foo Test
Expand Down Expand Up @@ -92,9 +88,7 @@
<anchor-demo>
</anchor-demo>

<stache-page-anchor>
Test 6
</stache-page-anchor>
<stache-page-anchor>Test 6</stache-page-anchor>

<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sequi ratione perspiciatis corrupti porro ipsam laudantium recusandae doloremque beatae perferendis libero placeat, excepturi odit quos quod facere pariatur quas, molestias esse!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<div [attr.id]="fragment" class="stache-page-anchor">
<a routerLink="{{path}}" fragment="{{fragment}}" queryParamsHandling="merge" (click)="scrollToAnchor()">
<h2 class="stache-page-anchor-heading">
<ng-content></ng-content><i class="fa fa-link stache-page-anchor-icon"></i>
<!-- ICON SOURCE: http://www.flaticon.com/free-icon/unlink_149919#term=link&page=1&position=12 -->
<ng-content></ng-content> <i class="fa fa-link stache-page-anchor-icon"></i>
</h2>
</a>
</div>