ventBox1.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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: 10px;
  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. .title {
  45. height: 100%;
  46. padding-left: 8%;
  47. justify-content: flex-start;
  48. align-items: center;
  49. }
  50. }
  51. }
  52. }
  53. .vent-box1-bg {
  54. --image-box1-top: url('/@/assets/images/vent/border/box1-top.png');
  55. --image-box1-bottom: url('/@/assets/images/vent/border/box1-bottom.png');
  56. --container-color: #00213236;
  57. --container-image: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
  58. width: 100%;
  59. min-height: 80px;
  60. position: relative;
  61. .box1-top {
  62. width: 100%;
  63. height: 35px;
  64. background: var(--image-box1-top) no-repeat;
  65. background-size: 100% 100%;
  66. .title {
  67. width: 100%;
  68. height: 35px;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. color: #fff;
  73. }
  74. }
  75. .box1-center {
  76. width: calc(100% + 0.5px);
  77. position: relative;
  78. .box-container {
  79. width: calc(100% - 2px);
  80. min-height: 50px;
  81. // position: relative;
  82. padding: 10px;
  83. color: #fff;
  84. // background-color: #0097ff05;
  85. background-color: var(--container-color);
  86. backdrop-filter: blur(5px);
  87. &::before {
  88. content: '';
  89. display: block;
  90. position: absolute;
  91. top: 5px;
  92. left: 0;
  93. width: 1px;
  94. height: calc(100% - 10px);
  95. background-image: var(--container-image);
  96. }
  97. &::after {
  98. content: '';
  99. display: block;
  100. position: absolute;
  101. right: 0;
  102. top: 5px;
  103. width: 1px;
  104. height: calc(100% - 10px);
  105. background: var(--container-image);
  106. }
  107. }
  108. }
  109. .box1-bottom {
  110. width: 100%;
  111. height: 35px;
  112. background: var(--image-box1-bottom) no-repeat;
  113. background-size: 100% 100%;
  114. position: absolute;
  115. bottom: 0px;
  116. z-index: 1;
  117. pointer-events: none;
  118. }
  119. }
  120. </style>