BContentTopItem.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <li class="top-item">
  3. <div class="v-item">
  4. <a href="/video/av8815046/" target="_blank" title="【阴阳师/狗博】射杀恋人之日【ALeo维】">
  5. <div class="preview">
  6. <img src="//i0.hdslb.com/bfs/archive/dcf689fdc2e4560a08c272471bfb91e2a0656f64.jpg@320w_200h.webp" alt="【阴阳师/狗博】射杀恋人之日【ALeo维】">
  7. </div>
  8. <div class="mask">
  9. </div>
  10. <div class="info">
  11. <div class="t">【阴阳师/狗博】射杀恋人之日【ALeo维】</div>
  12. <p class="up">up主:要小心有毒的橙汁</p>
  13. <p class="play">播放:46022</p>
  14. </div>
  15. </a>
  16. </div>
  17. </li>
  18. </template>
  19. <script>
  20. export default {
  21. }
  22. </script>
  23. <style lang="stylus" scoped>
  24. .top-item
  25. float left
  26. width 180px
  27. margin-bottom 20px
  28. .v-item
  29. width 160px
  30. height 100px
  31. position relative
  32. .preview
  33. height 100px
  34. background 0
  35. overflow hidden
  36. border-radius 4px
  37. img
  38. height 100%
  39. margin 0 auto
  40. display block
  41. width 160px
  42. opacity 1
  43. .mask
  44. position absolute
  45. width 100%
  46. height 100%
  47. opacity 0
  48. visibility hidden
  49. top 0px
  50. left 0px
  51. z-index 1
  52. background rgba(0,0,0,0.7)
  53. transition .3s all linear
  54. border-radius 4px
  55. &:hover
  56. visibility visible
  57. opacity 1
  58. transition none
  59. .info
  60. padding 10px 0 3px
  61. height 18px
  62. overflow hidden
  63. position absolute
  64. width 100%
  65. bottom 0
  66. left 0px
  67. z-index 1
  68. background linear-gradient(transparent,rgba(0,0,0,0.1) 20%,rgba(0,0,0,0.2) 35%,rgba(0,0,0,0.6) 65%,rgba(0,0,0,0.9))
  69. border-radius 0 0 4px 4px
  70. p
  71. color #99a2aa
  72. margin 5px 5px 0
  73. transition .2s all linear
  74. opacity 0
  75. height 16px
  76. &.up
  77. margin-top 10px
  78. text-overflow ellipsis
  79. overflow hidden
  80. white-space nowrap
  81. .t
  82. height 18px
  83. line-height 18px
  84. overflow hidden
  85. color #fff
  86. margin 0 5px
  87. word-break break-all
  88. word-wrap break-word
  89. &:hover .mask
  90. visibility visible
  91. opacity 1
  92. transition none
  93. &:hover .info
  94. padding 0
  95. height 100%
  96. background 0
  97. &:hover .info p
  98. opacity 1
  99. transition .3s all linear
  100. &:hover .t
  101. margin-top 10px
  102. height 36px
  103. </style>