ventBox1.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <div class="vent-box1-bg">
  3. <div class="box1-top">
  4. <div class="title">
  5. <slot name="title"></slot>
  6. </div>
  7. </div>
  8. <div class="box1-center">
  9. <div class="box-container">
  10. <slot name="container"></slot>
  11. </div>
  12. </div>
  13. <div class="box1-bottom"></div>
  14. </div>
  15. </template>
  16. <script>
  17. import { defineComponent } from 'vue';
  18. export default defineComponent({
  19. name: 'VentBox1',
  20. setup() {},
  21. });
  22. </script>
  23. <style lang="less" scoped>
  24. @import '/@/design/theme.less';
  25. @{theme-deepblue} {
  26. .vent-box1-bg {
  27. --image-box1-top: url('/@/assets/images/themify/deepblue/vent/border/box2-top.png');
  28. --image-box1-bottom: none;
  29. // --image-box1-bottom: url('/@/assets/images/themify/deepblue/vent/border/box1-bottom.png');
  30. --container-color: #0e223b;
  31. // --container-image: linear-gradient(#3df6ff00, #2c3f59, #3df6ff00);
  32. --container-image: none;
  33. }
  34. .vent-box1-bg {
  35. border: 1px solid #3a4b5f;
  36. border-radius: 10px;
  37. background: var(--container-color) no-repeat;
  38. padding-top: 5px;
  39. .box1-top {
  40. height: 35px;
  41. background: var(--image-box1-top) no-repeat;
  42. background-size: 94% 25px;
  43. background-position: center center;
  44. margin-bottom: 5px;
  45. .title {
  46. height: 100%;
  47. padding-left: 8%;
  48. justify-content: flex-start;
  49. align-items: center;
  50. }
  51. }
  52. }
  53. }
  54. .vent-box1-bg {
  55. --image-box1-top: url('/@/assets/images/vent/border/box1-top.png');
  56. --image-box1-bottom: url('/@/assets/images/vent/border/box1-bottom.png');
  57. --container-color: #00213236;
  58. --container-image: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
  59. width: 100%;
  60. min-height: 80px;
  61. position: relative;
  62. overflow-x: hidden;
  63. .box1-top {
  64. width: 100%;
  65. height: 35px;
  66. background: var(--image-box1-top) no-repeat;
  67. background-size: 100% 100%;
  68. .title {
  69. width: 100%;
  70. height: 35px;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. color: #fff;
  75. }
  76. }
  77. .box1-center {
  78. width: calc(100% + 0.5px);
  79. position: relative;
  80. .box-container {
  81. width: calc(100% - 2px);
  82. min-height: 50px;
  83. // position: relative;
  84. padding: 10px;
  85. color: #fff;
  86. // background-color: #0097ff05;
  87. background-color: var(--container-color);
  88. backdrop-filter: blur(5px);
  89. &::before {
  90. content: '';
  91. display: block;
  92. position: absolute;
  93. top: 5px;
  94. left: 0;
  95. width: 1px;
  96. height: calc(100% - 10px);
  97. background-image: var(--container-image);
  98. }
  99. &::after {
  100. content: '';
  101. display: block;
  102. position: absolute;
  103. right: 1px;
  104. top: 5px;
  105. width: 1px;
  106. height: calc(100% - 10px);
  107. background: var(--container-image);
  108. }
  109. }
  110. }
  111. .box1-bottom {
  112. width: 100%;
  113. height: 35px;
  114. background: var(--image-box1-bottom) no-repeat;
  115. background-size: 100% 100%;
  116. position: absolute;
  117. bottom: 0px;
  118. z-index: 1;
  119. pointer-events: none;
  120. }
  121. }
  122. </style>