ventBox1.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. .box1-top {
  63. width: 100%;
  64. height: 35px;
  65. background: var(--image-box1-top) no-repeat;
  66. background-size: 100% 100%;
  67. .title {
  68. width: 100%;
  69. height: 35px;
  70. display: flex;
  71. justify-content: center;
  72. align-items: center;
  73. color: #fff;
  74. }
  75. }
  76. .box1-center {
  77. width: calc(100% + 0.5px);
  78. position: relative;
  79. .box-container {
  80. width: calc(100% - 2px);
  81. min-height: 50px;
  82. // position: relative;
  83. padding: 10px;
  84. color: #fff;
  85. // background-color: #0097ff05;
  86. background-color: var(--container-color);
  87. backdrop-filter: blur(5px);
  88. &::before {
  89. content: '';
  90. display: block;
  91. position: absolute;
  92. top: 5px;
  93. left: 0;
  94. width: 1px;
  95. height: calc(100% - 10px);
  96. background-image: var(--container-image);
  97. }
  98. &::after {
  99. content: '';
  100. display: block;
  101. position: absolute;
  102. right: 0;
  103. top: 5px;
  104. width: 1px;
  105. height: calc(100% - 10px);
  106. background: var(--container-image);
  107. }
  108. }
  109. }
  110. .box1-bottom {
  111. width: 100%;
  112. height: 35px;
  113. background: var(--image-box1-bottom) no-repeat;
  114. background-size: 100% 100%;
  115. position: absolute;
  116. bottom: 0px;
  117. z-index: 1;
  118. pointer-events: none;
  119. }
  120. }
  121. </style>