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: /
|
facebook: /
|
||||||
dribbble: /
|
dribbble: /
|
||||||
rss: /
|
rss: /
|
||||||
|
social_link_tooltip: true # enable the social link tooltip, options: true, false
|
||||||
|
|
||||||
# Widgets
|
# Widgets
|
||||||
widgets:
|
widgets:
|
||||||
|
|
|
@ -23,8 +23,13 @@
|
||||||
<div class="profile-block social-links">
|
<div class="profile-block social-links">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
<% var tooltipClass = theme.customize.social_link_tooltip === false ? '' : 'class=tooltip'; %>
|
||||||
<% for(var i in theme.customize.social_links) { %>
|
<% 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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -261,7 +261,7 @@
|
||||||
background: none
|
background: none
|
||||||
box-sizing: border-box
|
box-sizing: border-box
|
||||||
font: 14px font-sans
|
font: 14px font-sans
|
||||||
padding: 0 15px
|
padding: 0 10px
|
||||||
color: color-default
|
color: color-default
|
||||||
outline: none
|
outline: none
|
||||||
border: 1px solid color-border
|
border: 1px solid color-border
|
||||||
|
@ -378,4 +378,4 @@ ol.toc
|
||||||
transition color 1s ease-out
|
transition color 1s ease-out
|
||||||
&:hover
|
&:hover
|
||||||
color color-theme
|
color color-theme
|
||||||
transition color .3s ease-out
|
transition color .3s ease-out
|
||||||
|
|
|
@ -87,6 +87,7 @@
|
||||||
color: color-default + #333
|
color: color-default + #333
|
||||||
&:hover
|
&:hover
|
||||||
color: color-default
|
color: color-default
|
||||||
|
&.tooltip:hover
|
||||||
&:after
|
&:after
|
||||||
right: -50%
|
right: -50%
|
||||||
top: -41px
|
top: -41px
|
||||||
|
|
Loading…
Reference in New Issue