trade-history.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .trade-history {
  2. display: flex;
  3. flex-direction: column;
  4. background: #fff;
  5. height: 100%;
  6. .trade-title {
  7. display: flex;
  8. justify-content: space-between;
  9. align-items: center;
  10. font-size: 0.813rem;
  11. font-weight: 600;
  12. padding: 8px 12px;
  13. border-bottom: 1px solid #eee;
  14. color: #333;
  15. .trade-title-left {
  16. display: flex;
  17. align-items: center;
  18. gap: 6px;
  19. }
  20. .sound-toggle {
  21. display: flex;
  22. align-items: center;
  23. justify-content: center;
  24. width: 22px;
  25. height: 22px;
  26. border: none;
  27. border-radius: 4px;
  28. background: transparent;
  29. cursor: pointer;
  30. font-size: 0.75rem;
  31. padding: 0;
  32. transition: background 0.15s;
  33. &:hover {
  34. background: #f0f0f0;
  35. }
  36. &.active {
  37. color: #F7931A;
  38. }
  39. &.muted {
  40. opacity: 0.5;
  41. }
  42. }
  43. .trade-intensity {
  44. font-size: 0.688rem;
  45. font-weight: 600;
  46. font-variant-numeric: tabular-nums;
  47. &.up {
  48. color: hsl(var(--crypto-up));
  49. }
  50. &.down {
  51. color: hsl(var(--crypto-down));
  52. }
  53. }
  54. }
  55. .trade-loading {
  56. padding: 24px;
  57. text-align: center;
  58. color: #999;
  59. font-size: 0.813rem;
  60. }
  61. .trade-header {
  62. display: flex;
  63. justify-content: space-between;
  64. padding: 4px 12px;
  65. font-size: 0.688rem;
  66. color: #999;
  67. border-bottom: 1px solid #f5f5f5;
  68. span:last-child {
  69. text-align: right;
  70. }
  71. }
  72. .trade-body {
  73. flex: 1;
  74. overflow-y: auto;
  75. font-variant-numeric: tabular-nums;
  76. }
  77. .trade-row {
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. padding: 3px 12px;
  82. font-size: 0.75rem;
  83. transition: background 0.1s;
  84. &.buy .price {
  85. color: hsl(var(--crypto-up));
  86. }
  87. &.sell .price {
  88. color: hsl(var(--crypto-down));
  89. }
  90. .price {
  91. font-weight: 500;
  92. flex: 1;
  93. }
  94. .size {
  95. color: #555;
  96. flex: 1;
  97. text-align: center;
  98. }
  99. .time {
  100. color: #999;
  101. font-size: 0.688rem;
  102. flex-shrink: 0;
  103. text-align: right;
  104. }
  105. }
  106. }