common.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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, .el-select-dropdown__item:hover {
  58. background-color: var(--main-color);
  59. color: #00292c;
  60. }
  61. .popper__arrow{
  62. border-bottom-color: var(--main-color)!important;
  63. &::after{
  64. border-bottom-color: var(--main-color)!important;
  65. }
  66. }
  67. }
  68. @mixin mbg($o) {
  69. background-color: rgba(0, 166, 208, $o);
  70. }
  71. .blur-wrap {
  72. // backdrop-filter: blur(6px);
  73. @include mbg(0.3);
  74. border: 1px solid var(--main-color);
  75. border-radius: 8px;
  76. }
  77. .scroll-event{
  78. height: calc( 100% - 48px );
  79. // .header-item:last-child{
  80. // display: none;
  81. // }
  82. .row-item{
  83. .ceil:last-of-type{
  84. display: none;
  85. flex: none;;
  86. }
  87. }
  88. }
  89. .scroll-base{
  90. .row-item{
  91. .ceil:last-of-type{
  92. display: none;
  93. width: 0!important;
  94. flex: none;;
  95. }
  96. }
  97. }
  98. .left-wrap {
  99. position: absolute;
  100. left: calc(1vw + 1em + 48px + 20px);
  101. height: calc(100vh - var(--header-height) - 24px);
  102. top: calc(var(--header-height) + 24px);
  103. width: 23vw;
  104. min-width: 390px;
  105. // padding: 15px;
  106. box-sizing: border-box;
  107. // display: flex;
  108. // flex-direction: column;
  109. .left-item{
  110. // flex: 1;
  111. height: calc( ( 100vh - var(--header-height) - 24px - 50px ) / 3 );
  112. @include mbg(0.3);
  113. // border: 1px solid var(--main-color);
  114. background: rgba(11,21,17,.6);
  115. // border-radius: 8px;
  116. margin-bottom: 17px;
  117. &.chart-wrap .ntitle{
  118. margin-bottom: 10px;
  119. }
  120. }
  121. // &.event-page{
  122. // width: 30vw;
  123. // }
  124. }
  125. .dv-scroll-board{
  126. .row-item{
  127. &:hover{
  128. transform: scale(1.05);
  129. // transform:scaleZ(5);
  130. box-shadow: 0 0 5px 3px rgba(1, 68, 73, 0.5);
  131. }
  132. }
  133. }
  134. .right-wrap {
  135. pointer-events: none;
  136. & > * {
  137. pointer-events: auto;
  138. }
  139. position: absolute;
  140. top: calc(var(--header-height) + 24px);
  141. // height: calc( 100vh - var(--header-height) - 24px );
  142. right: 10px;
  143. .scroll-board-wrap {
  144. position: relative;
  145. margin-left: auto;
  146. background-color: rgba(1,33,35,.7);
  147. width: 380px;
  148. // border-radius: 8px;
  149. overflow: hidden;
  150. padding-top: 15px;
  151. &.close{
  152. height: 80px;
  153. .scroll-board-01{
  154. .rows{
  155. opacity: 0;
  156. }
  157. }
  158. .inner{
  159. img{
  160. transform: rotate(180deg);
  161. }
  162. }
  163. }
  164. .scroll-board-01{
  165. height: calc( 100vh - var(--header-height) - 249px );
  166. // height: 60vh;
  167. box-sizing: border-box;
  168. padding: 0 15px;
  169. color: #08eeff;
  170. .header{
  171. color: #fff;
  172. }
  173. .rows{
  174. .ceil:last-of-type{
  175. padding: 0;
  176. }
  177. }
  178. }
  179. .scroll-board-tool{
  180. height: 40px;
  181. margin: 30px 15px 0;
  182. .inner{
  183. position: absolute;
  184. left: 15px;
  185. right: 15px;
  186. bottom: 0;
  187. height: 40px;
  188. line-height: 40px;
  189. background-color: rgba(8,238,255,.1);
  190. text-align: center;
  191. }
  192. }
  193. }
  194. }
  195. .xiaoban{
  196. margin: 20px 0;
  197. width: 380px;
  198. margin-left: auto;
  199. color: var(--main-color);
  200. .el-input .el-input__inner{
  201. border: none;
  202. font-size: 18px;
  203. // height: 50px;
  204. // line-height: 50px;
  205. color: var(--main-color);
  206. background: url(../img/xiaoban-bg.png) no-repeat;
  207. background-size: 100% 100%;
  208. &::-webkit-input-placeholder {
  209. color: var(--main-color);
  210. }
  211. }
  212. .el-input__icon{
  213. color: var(--main-color);
  214. font-size: 24px;
  215. }
  216. .title{
  217. white-space: nowrap;
  218. font-size: 18px;
  219. }
  220. }
  221. .nav-wrap {
  222. position: fixed;
  223. left: 1vw;
  224. top: calc(var(--header-height) + 24px);
  225. .nav-item {
  226. color: var(--main-color);
  227. &:not(:first-of-type) {
  228. margin-top: 1vh;
  229. }
  230. width: 1em;
  231. background: url(../img/nav-item.png);
  232. background-size: 100% 100%;
  233. padding: 2vh 24px;
  234. cursor: pointer;
  235. &.active {
  236. background-image: url(../img/nav-item-s.png);
  237. color: #5ee574;
  238. }
  239. }
  240. }