Permalink
Browse files

style(tooltip): by jQuery UI 提示框样式美化

  • Loading branch information...
MOxFIVE committed Jan 26, 2016
1 parent 561bd90 commit 6788c02f56f69c8213b150bfa20f220723f1e7db
Showing with 28 additions and 2 deletions.
  1. +3 −0 _config.yml
  2. +3 −0 layout/_partial/after-footer.ejs
  3. +4 −1 layout/_partial/head.ejs
  4. +14 −1 source/css/_partial/main.styl
  5. +4 −0 source/js/pc.js
View
@@ -109,6 +109,9 @@ search_box: false
# Animation in Homepage and Loading avatar
animate: true
# Load jQuery UI to style tooltips
# 工具提示框样式美化
jquery_ui: false
# >>> Small features | 小功能设置 <<<
@@ -10,5 +10,8 @@
<% } %>
<%- partial('scrolling-button') %>
<%- partial('_partial/hide-labels') %>
<% if (theme.jquery_ui){ %>
<script src="//cdn.bootcss.com/jqueryui/1.10.4/jquery-ui.min.js"></script>
<% } %>
<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
View
@@ -29,7 +29,10 @@
<link rel="icon" href="<%- theme.favicon %>">
<% } %>
<% if (theme.animate){ %>
<%- css('//cdn.bootcss.com/animate.css/3.5.0/animate.min.css') %>
<%- css('//cdn.bootcss.com/animate.css/3.5.0/animate.min.css') %>
<% } %>
<% if (theme.jquery_ui){ %>
<link href="//cdn.bootcss.com/jqueryui/1.10.4/css/jquery-ui.min.css" rel="stylesheet">
<% } %>
<%- css('css/style') %>
<link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css">
@@ -477,4 +477,17 @@
if hexo-config("github_widget")
.article-entry .github-widget h3::after
content none
content none
if hexo-config("jquery_ui")
.ui-tooltip
padding 6px
max-width 30em
box-shadow 0 0 .8em rgba(0, 0, 0, .6)
color white
font-family font-sans, font-chs
font-size .9em
background rgba(0, 0, 0, .65)
body .ui-tooltip
border 1px solid white
View
@@ -106,4 +106,8 @@ define([], function(){
Tips.init();
}
}
});
$(function() {
$(document).tooltip();
});

0 comments on commit 6788c02

Please sign in to comment.