Minor improvements (#149)
* Remove an empty space on the right side of the share box * Include an option to disable the social links tooltip The tooltip is enabled by default, it'll be displayed even when the option is omitted.
This commit is contained in:
parent
aaad1de2a1
commit
4a3c2e2a73
|
@ -31,6 +31,7 @@ customize:
|
|||
facebook: /
|
||||
dribbble: /
|
||||
rss: /
|
||||
social_link_tooltip: true # enable the social link tooltip, options: true, false
|
||||
|
||||
# Widgets
|
||||
widgets:
|
||||
|
|
|
@ -23,8 +23,13 @@
|
|||
<div class="profile-block social-links">
|
||||
<table>
|
||||
<tr>
|
||||
<% var tooltipClass = theme.customize.social_link_tooltip === false ? '' : 'class=tooltip'; %>
|
||||
<% for(var i in theme.customize.social_links) { %>
|
||||
<td><a href="<%- url_for(theme.customize.social_links[i]) %>" target="_blank" title="<%= i %>"><i class="fa fa-<%= i %>"></i></a></td>
|
||||
<td>
|
||||
<a href="<%- url_for(theme.customize.social_links[i]) %>" target="_blank" title="<%= i %>" <%= tooltipClass %>>
|
||||
<i class="fa fa-<%= i %>"></i>
|
||||
</a>
|
||||
</td>
|
||||
<% } %>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -261,7 +261,7 @@
|
|||
background: none
|
||||
box-sizing: border-box
|
||||
font: 14px font-sans
|
||||
padding: 0 15px
|
||||
padding: 0 10px
|
||||
color: color-default
|
||||
outline: none
|
||||
border: 1px solid color-border
|
||||
|
|
|
@ -87,6 +87,7 @@
|
|||
color: color-default + #333
|
||||
&:hover
|
||||
color: color-default
|
||||
&.tooltip:hover
|
||||
&:after
|
||||
right: -50%
|
||||
top: -41px
|
||||
|
|
Loading…
Reference in New Issue