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:
Walmor Moreira 2016-06-08 10:05:37 -03:00 committed by Ruipeng Zhang
parent aaad1de2a1
commit 4a3c2e2a73
4 changed files with 10 additions and 3 deletions

View File

@ -31,6 +31,7 @@ customize:
facebook: /
dribbble: /
rss: /
social_link_tooltip: true # enable the social link tooltip, options: true, false
# Widgets
widgets:

View File

@ -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>

View File

@ -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
@ -378,4 +378,4 @@ ol.toc
transition color 1s ease-out
&:hover
color color-theme
transition color .3s ease-out
transition color .3s ease-out

View File

@ -87,6 +87,7 @@
color: color-default + #333
&:hover
color: color-default
&.tooltip:hover
&:after
right: -50%
top: -41px