Skip to content

Commit

Permalink
Merge pull request #90 from peterbugan/buganpeter
Browse files Browse the repository at this point in the history
Add hover for arrow
  • Loading branch information
filiplikavcan authored Jun 8, 2019
2 parents 0151245 + 0e7e442 commit 6d07679
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
22 changes: 14 additions & 8 deletions src/components/_custom/next-link/next-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ $right-arrow: url("../../../assets/images/arrow-pointing-to-right.svg");
margin-top: 50px;
margin-bottom: 50px;
padding-left: 30px;
}

.sdn-next-link__link {
display: inline-block;
font-size: 21px;
font-weight: 600;
text-decoration: none;

.sdn-next-link__container {
display: inline-block;
margin-left: 10px;
}

&:before {
content: "";
Expand All @@ -23,14 +35,8 @@ $right-arrow: url("../../../assets/images/arrow-pointing-to-right.svg");
background-repeat: no-repeat;
background-position: center right;
background-size: cover;
vertical-align: top;
}
}

.sdn-next-link__link {
padding-left: 10px;
font-size: 21px;
font-weight: 600;
text-decoration: none;

small {
display: block;
Expand All @@ -52,5 +58,5 @@ $right-arrow: url("../../../assets/images/arrow-pointing-to-right.svg");
opacity: .8;
}
}
}
}
}
8 changes: 5 additions & 3 deletions src/components/_custom/next-link/template.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<div class="sdn-next-link" style="margin-top: 50px; margin-bottom: 50px;">
<div class="sdn-next-link">
<a href="{{ params.url }}" class="sdn-next-link__link">
{{ params.label }}
<small>{{ params.text }}</small>
<div class="sdn-next-link__container">
{{ params.label }}
<small>{{ params.text }}</small>
</div>
</a>
</div>

0 comments on commit 6d07679

Please sign in to comment.