feat: award
This commit is contained in:
54
source/css/_partial/reward.styl
Normal file
54
source/css/_partial/reward.styl
Normal file
@@ -0,0 +1,54 @@
|
||||
.page-reward
|
||||
margin: 60px 0;
|
||||
text-align: center;
|
||||
|
||||
.page-reward-btn
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
line-height: 56px;
|
||||
font-size: 20px;
|
||||
color: #fff;
|
||||
background: body-color;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
||||
-webkit-transition: .4s ease-in-out;
|
||||
transition: .4s ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:active
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(0, 0, 0, 0.2);
|
||||
|
||||
|
||||
.tooltip-item
|
||||
display: block;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
|
||||
|
||||
.reward-box
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
|
||||
|
||||
.reward-p
|
||||
color: body-color;
|
||||
font-weight: bold;
|
||||
text-shadow: 1px 1px 1px main-color;
|
||||
|
||||
.icon
|
||||
margin: 0 10px;
|
||||
color: #ddd;
|
||||
|
||||
.reward-type
|
||||
font-size: 16px;
|
||||
display: block;
|
||||
color: #4d4d4d;
|
||||
margin: 20px 0 0 0;
|
||||
|
||||
.reward-img
|
||||
width: 130px;
|
||||
height: 130px;
|
||||
border: 6px solid #fff;
|
||||
border-radius: 3px;
|
29
source/css/_partial/tooltip.styl
Normal file
29
source/css/_partial/tooltip.styl
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
|
||||
|
||||
.tooltip-top
|
||||
.tooltip
|
||||
display: inline;
|
||||
position: relative;
|
||||
z-index: 999;
|
||||
|
||||
/* Tooltip */
|
||||
|
||||
.tooltip-content
|
||||
position: absolute;
|
||||
z-index: 9999;
|
||||
width: 370px;
|
||||
left: 50%;
|
||||
bottom: 70px;
|
||||
font-size: 20px;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
color: #4d4d4d;
|
||||
background: water;
|
||||
margin: 0 0 -10px -185px;
|
||||
cursor: default;
|
||||
display: none;
|
||||
padding-bottom: 20px;
|
||||
|
||||
|
@@ -67,6 +67,8 @@ button
|
||||
@import "_partial/pace"
|
||||
@import "_partial/gitalk"
|
||||
@import "_partial/apple"
|
||||
@import "_partial/reward"
|
||||
@import "_partial/tooltip"
|
||||
|
||||
if sidebar
|
||||
@import "_partial/sidebar"
|
||||
|
BIN
source/images/alipay.jpg
Normal file
BIN
source/images/alipay.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 117 KiB |
BIN
source/images/wechat.jpg
Normal file
BIN
source/images/wechat.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
@@ -208,7 +208,12 @@
|
||||
$content.addClass('on');
|
||||
$sidebar.addClass('on');
|
||||
}
|
||||
|
||||
// 赞赏
|
||||
$('.tooltip-item').hover(function () {
|
||||
$('.tooltip-content').slideDown(150)
|
||||
}, function () {
|
||||
$('.tooltip-content').slideUp(150)
|
||||
})
|
||||
})(jQuery);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user