guide.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <div id="drawer-container">
  3. <div id="drawer" class="fullWidth">
  4. <div class="frame-container darkGlass">
  5. <!-- 场景列表 -->
  6. <div id="scrollFrame" class="frame">
  7. <ul id="thumb-container" class="slidee"></ul>
  8. </div>
  9. <!-- 滚动条 -->
  10. <div class="scrollbar" id="scroller">
  11. <!-- thumb -->
  12. <div class="handle"></div>
  13. </div>
  14. </div>
  15. </div>
  16. <!-- 自动导览时显示导览进度 -->
  17. <div id="playHead">
  18. <div id="status">
  19. <span class="curIdx">1</span>
  20. of <span class="totalSteps"></span>
  21. </div>
  22. <div id="progressBar"></div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. },
  30. };
  31. </script>
  32. <style lang="less" scoped>
  33. #drawer-container {
  34. #drawer {
  35. font-size: 16px;
  36. .frame-container {
  37. background-color: rgba(133, 119, 69, 0.5);
  38. backdrop-filter: blur(10px);
  39. #scrollFrame.frame {
  40. background-color: initial;
  41. ul#thumb-container {
  42. padding: 10px 20px;
  43. li.thumbImg {
  44. // 在这里写也没用
  45. }
  46. }
  47. }
  48. #scroller {
  49. .handle {
  50. }
  51. }
  52. }
  53. }
  54. }
  55. </style>
  56. <style lang="less">
  57. // 场景封面图
  58. // 平时
  59. #thumb-container .thumbImg img {
  60. box-sizing: border-box;
  61. border: none;
  62. width: 100%;
  63. object-fit: cover;
  64. }
  65. // hover时
  66. .frame .slidee li.thumbImg.hasHover>img:hover {
  67. }
  68. // 选中后
  69. .frame .slidee li.thumbImg.active>img {
  70. border: 3px solid #A10E0C !important;
  71. }
  72. // 场景名称
  73. // 平时
  74. .frame .slidee li .overlay {
  75. box-sizing: border-box;
  76. left: 0;
  77. top: 0;
  78. bottom: initial;
  79. height: 100%;
  80. line-height: 97px;
  81. transform: initial;
  82. color: #fff;
  83. background: rgba(0, 0, 0, 0.5);
  84. }
  85. // 选中后
  86. .frame .slidee li.thumbImg.active>.overlay {
  87. top: initial;
  88. bottom: 0;
  89. height: 36px;
  90. line-height: 36px;
  91. background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
  92. }
  93. </style>