style.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import styled from "styled-components";
  2. export const ModelBox = styled.div`
  3. display: flex;
  4. flex-direction: column;
  5. align-items: flex-start;
  6. line-height: 1;
  7. font-size: 0.14rem;
  8. background: linear-gradient(rgba(29, 56, 104, 0.72), rgba(4, 18, 51, 0.76));
  9. border: 1px solid;
  10. border-image: linear-gradient(
  11. 45deg,
  12. rgba(74, 196, 253, 0.45),
  13. rgba(173, 219, 240, 0.34),
  14. rgba(146, 213, 249, 0.28)
  15. )
  16. 1;
  17. opacity: 1;
  18. .tabBox {
  19. width: 100%;
  20. padding: 0.16rem;
  21. padding-bottom: 0;
  22. }
  23. ::-webkit-scrollbar {
  24. background: transparent;
  25. }
  26. .main {
  27. padding: 10px 14px 0;
  28. width: 100%;
  29. height: 40px;
  30. display: flex;
  31. justify-content: space-between;
  32. align-items: center;
  33. position: relative;
  34. margin-bottom: 10px;
  35. .titleImg {
  36. width: 4px;
  37. height: 30px;
  38. margin-right: 18px;
  39. }
  40. .titleBg {
  41. width: 100%;
  42. height: 46.5px;
  43. }
  44. .title {
  45. font-size: 18px;
  46. // font-family: Source Han Sans CN-Medium, Source Han Sans CN;
  47. font-weight: 500;
  48. color: #c9efff;
  49. letter-spacing: 2px;
  50. margin-top: -4px;
  51. }
  52. .icon {
  53. width: 20px;
  54. height: 20px;
  55. pointer-events: initial;
  56. flex-shrink: 0;
  57. }
  58. .titleBorder {
  59. position: absolute;
  60. top: 40px;
  61. left: 13px;
  62. width: 100%;
  63. height: 1px;
  64. }
  65. .arrow {
  66. position: absolute;
  67. right: 14px;
  68. top: 29px;
  69. width: 26px;
  70. height: 26px;
  71. pointer-events: initial;
  72. transition: transform 0.2s;
  73. }
  74. .titleBg {
  75. height: 47px;
  76. width: 100%;
  77. background: url(${require("../../assets/chartBox/title-bg.png")});
  78. background-size: 100% 100%;
  79. }
  80. .titleBgMini {
  81. background-image: url(${require("../../assets/chartBox/title-bg-mini.png")});
  82. }
  83. .titleLeft {
  84. overflow: hidden;
  85. text-overflow: ellipsis;
  86. white-space: nowrap;
  87. vertical-align: middle;
  88. display: flex;
  89. align-items: center;
  90. }
  91. .titleRight {
  92. flex-shrink: 0;
  93. width: 50px;
  94. }
  95. }
  96. `;