Skip to content

Commit 0fd4d78

Browse files
committed
Adding comment form info icons
1 parent de4d91f commit 0fd4d78

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

_includes/comments/new.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,17 @@
2323

2424
<input type="text" id="identity" name="identity" class="form-input"
2525
placeholder="email/@twitter/github" value="" />
26-
<span class="info-circle" title="Identity is only used to generate an avatar. It is not submitted with the form."></span>
26+
<span class="icon-wrapper" title="Identity is only used to generate an avatar. It is not submitted with the form.">
27+
{% include icons/info.html %}
28+
</span>
2729

2830
<input id="comment-submit" type="submit" value="Add comment" />
2931

3032
<div id="remember-me">
3133
<input type="checkbox" id="remember" name="remember"><label for="remember">Remember me</label>
32-
<span class="info-circle" title="Stores your name and email in the browser so you don't have to fill out the form again. This does not set a cookie."></span>
34+
<span title="Stores your name and email in the browser so you don't have to fill out the form again. This does not set a cookie.">
35+
{% include icons/info.html %}
36+
</span>
3337
</div>
3438
</div>
3539

_includes/icons/info.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="info-circle" class="info-icon svg-inline--fa fa-info-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"></path></svg>
2+
<!--
3+
Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com
4+
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
5+
-->

_sass/_comments.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,20 @@
8080
#comment-count {
8181
padding: 8px;
8282
}
83+
84+
.info-icon {
85+
color: $gray;
86+
display: inline-block;
87+
height: 18px;
88+
89+
&:hover {
90+
color: $color-accent;
91+
}
92+
}
93+
94+
input + span.icon-wrapper {
95+
left: -30px;
96+
margin-right: -22px;
97+
position: relative;
98+
top: -48px;
99+
}

0 commit comments

Comments
 (0)