common.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. html,
  2. body,
  3. :root {
  4. --padding-left: 24px;
  5. --padding-right: 24px;
  6. --main-color: rgb(2, 238, 255);
  7. --title-color: #58c96b;
  8. --header-height: 85px;
  9. --s: 6; // 轮播的个数
  10. --h: 36; // 单个 li 容器的高度
  11. --speed: 3s; // 单次动画的时长
  12. }
  13. @font-face {
  14. font-family: "Rubik";
  15. src: url(../fonts/Rubik.ttf);
  16. }
  17. html,
  18. body {
  19. margin: 0;
  20. padding: 0;
  21. }
  22. .u-m-t {
  23. margin-top: 2vh;
  24. }
  25. .u-p-t {
  26. padding-top: 1vh;
  27. }
  28. .page-padding-left {
  29. padding-left: var(--padding-left);
  30. }
  31. .ntitle {
  32. height: 38px;
  33. line-height: 38px;
  34. text-align: left;
  35. // background: url(../img/ntitle.png) no-repeat;
  36. // background-size: 100% 100%;
  37. text-indent: 40px;
  38. // margin-bottom: 10px;
  39. }
  40. .addr {
  41. text-align: right;
  42. padding-right: 24px;
  43. font-size: 14px;
  44. overflow: hidden;
  45. text-overflow: ellipsis;
  46. white-space: nowrap;
  47. padding-left: 1em;
  48. }
  49. // 更改下拉框颜色
  50. .el-select-dropdown.el-popper {
  51. background-color: rgba(0, 166, 208, 0.3);
  52. border-color: var(--main-color);
  53. backdrop-filter: blur(6px);
  54. .el-select-dropdown__item {
  55. color: #fff;
  56. }
  57. .el-select-dropdown__item.hover,
  58. .el-select-dropdown__item:hover {
  59. background-color: var(--main-color);
  60. color: #00292c;
  61. }
  62. .popper__arrow {
  63. border-bottom-color: var(--main-color) !important;
  64. &::after {
  65. border-bottom-color: var(--main-color) !important;
  66. }
  67. }
  68. }
  69. @mixin mbg($o) {
  70. background-color: rgba(0, 166, 208, $o);
  71. }
  72. .blur-wrap {
  73. // backdrop-filter: blur(6px);
  74. @include mbg(0.3);
  75. border: 1px solid var(--main-color);
  76. border-radius: 8px;
  77. }
  78. .scroll-event {
  79. height: calc(100% - 48px);
  80. // .header-item:last-child{
  81. // display: none;
  82. // }
  83. .row-item {
  84. .ceil:last-of-type {
  85. display: none;
  86. flex: none;
  87. }
  88. }
  89. }
  90. .scroll-base {
  91. .row-item {
  92. .ceil:last-of-type {
  93. display: none;
  94. width: 0 !important;
  95. flex: none;
  96. }
  97. }
  98. }
  99. .left-wrap {
  100. position: absolute;
  101. left: calc(1vw + 1em + 48px + 20px);
  102. height: calc(100vh - var(--header-height) - 24px);
  103. top: calc(var(--header-height) + 24px);
  104. width: 20vw;
  105. min-width: 390px;
  106. // padding: 15px;
  107. box-sizing: border-box;
  108. // display: flex;
  109. // flex-direction: column;
  110. .left-item {
  111. background-image: url("../img/left_bac.png");
  112. background-size: 100% 100%;
  113. // flex: 1;
  114. height: calc((100vh - var(--header-height) - 24px - 50px) / 3);
  115. // @include mbg(0.3);
  116. // border: 1px solid var(--main-color);
  117. // background: rgba(11,21,17,.6);
  118. // border-radius: 8px;
  119. margin-bottom: 17px;
  120. &.chart-wrap .ntitle {
  121. margin-bottom: 10px;
  122. }
  123. }
  124. // &.event-page{
  125. // width: 30vw;
  126. // }
  127. }
  128. .dv-scroll-board {
  129. .row-item {
  130. overflow: hidden;
  131. &:active{
  132. background-color: #fff;
  133. }
  134. &:hover {
  135. transform: scale(1.05);
  136. // transform:scaleZ(5);
  137. box-shadow: 0 0 5px 3px rgba(1, 68, 73, 0.5);
  138. }
  139. }
  140. }
  141. .right-wrap {
  142. pointer-events: none;
  143. & > * {
  144. pointer-events: auto;
  145. }
  146. position: absolute;
  147. top: calc(var(--header-height) + 24px);
  148. // height: calc( 100vh - var(--header-height) - 24px );
  149. right: 10px;
  150. .scroll-board-wrap {
  151. position: relative;
  152. // margin-left: auto;
  153. // background-color: rgba(1,33,35,.7);
  154. width: 380px;
  155. // border-radius: 8px;
  156. overflow: hidden;
  157. padding-top: 15px;
  158. &.close {
  159. height: 80px;
  160. .scroll-board-01 {
  161. .rows {
  162. opacity: 0;
  163. }
  164. }
  165. .inner {
  166. img {
  167. transform: rotate(180deg);
  168. }
  169. }
  170. }
  171. .scroll-board-01 {
  172. height: calc(100vh - var(--header-height) - 272px);
  173. // height: 60vh;
  174. box-sizing: border-box;
  175. padding: 0 15px;
  176. color: #08eeff;
  177. .header {
  178. color: #fff;
  179. }
  180. .rows {
  181. .ceil:last-of-type {
  182. padding: 0;
  183. }
  184. }
  185. }
  186. .scroll-board-tool {
  187. height: 40px;
  188. margin: 30px 15px 0;
  189. .inner {
  190. position: absolute;
  191. left: 15px;
  192. right: 15px;
  193. bottom: 0;
  194. height: 40px;
  195. line-height: 40px;
  196. background-color: rgba(8, 238, 255, 0.1);
  197. text-align: center;
  198. }
  199. }
  200. }
  201. }
  202. .xiaoban {
  203. margin: 10px 0;
  204. width: 380px;
  205. // margin-left: auto;
  206. color: var(--main-color);
  207. .el-input .el-input__inner {
  208. border: none;
  209. font-size: 18px;
  210. // height: 50px;
  211. // line-height: 50px;
  212. color: var(--main-color);
  213. background: url(../img/xiaoban-bg.png) no-repeat;
  214. background-size: 100% 100%;
  215. &::-webkit-input-placeholder {
  216. // color: var(--main-color);
  217. color: #016262;
  218. }
  219. }
  220. .el-input__icon {
  221. color: var(--main-color);
  222. font-size: 24px;
  223. }
  224. .title {
  225. white-space: nowrap;
  226. font-size: 18px;
  227. }
  228. }
  229. .nav-wrap {
  230. position: fixed;
  231. left: 1vw;
  232. top: calc(var(--header-height) + 24px);
  233. .nav-item {
  234. color: var(--main-color);
  235. &:not(:first-of-type) {
  236. margin-top: 1vh;
  237. }
  238. width: 1em;
  239. background: url(../img/nav-item.png);
  240. background-size: 100% 100%;
  241. padding: 2vh 24px;
  242. cursor: pointer;
  243. &.active {
  244. background-image: url(../img/nav-item-s.png);
  245. color: #ffaa00;
  246. }
  247. }
  248. }