hexo-theme-ayer/source-src/css/_partial/reward.styl

92 lines
1.8 KiB
Stylus
Raw Normal View History

2019-12-16 15:48:13 +00:00
#reward-btn
position relative
display inline-block
height 36px
line-height 36px
2020-02-07 04:42:33 +00:00
margin 60px 0
2019-12-16 15:48:13 +00:00
padding 0 20px
font-size 18px
color #fff
background body-color
text-decoration none
border-radius 4px
margin-left 50%
transform translateX(-50%)
box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
2020-03-23 15:04:50 +00:00
transition(.4s ease-in-out)
2019-12-16 15:48:13 +00:00
cursor pointer
2019-12-05 15:31:52 +00:00
&:hover,
&:active
2019-12-16 15:48:13 +00:00
box-shadow 0 6px 12px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(0, 0, 0, 0.2)
2019-12-05 15:31:52 +00:00
2019-12-16 15:48:13 +00:00
#reward
position absolute
z-index 9999
left 50%
top 20%
transform translateX(-50%)
margin 60px 0
padding 0px 20px 20px
background-color lighten(water,30%)
display none
2020-02-06 15:14:35 +00:00
&.ready {
visibility: hidden;
display: block;
transform: translate(-50%, -100%);
transition: .3s;
}
&.in {
visibility: visible;
opacity: 1;
transform: translate(-50%, 0);
}
2019-12-16 15:48:13 +00:00
.close
height 28px
line-height 28px
width 28px
display block
text-align center
position absolute
right: -12px;
top: -10px;
border-radius: 50%
background-color body-color
cursor pointer
i
font-size: 20px
color white
2019-12-05 15:31:52 +00:00
.reward-p
2019-12-16 15:48:13 +00:00
color body-color
font-weight bold
font-size 20px
text-align center
text-shadow 1px 1px 1px main-color
i
margin 0 10px
transform translateY(2px)
.reward-box
display: flex
justify-content space-between
width 100%
.reward-item
text-align center
margin: 0 10px
2019-12-05 15:31:52 +00:00
.reward-type
2019-12-16 15:48:13 +00:00
font-size 16px
display block
color black
margin-top 10px
2019-12-05 15:31:52 +00:00
.reward-img
2019-12-16 15:48:13 +00:00
display block
width 12rem
height 12rem
border-radius 3px
@media (max-width: 768px)
#reward
padding 0 10px 10px
.reward-img
max-width 10rem
max-height 10rem
margin 0 5px