sidebar.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. .crypto-sidebar {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. background: #fafafa;
  6. .sidebar-tabs {
  7. display: flex;
  8. border-bottom: 1px solid #eee;
  9. .tab {
  10. flex: 1;
  11. padding: 8px 0;
  12. font-size: 0.75rem;
  13. font-weight: 600;
  14. color: #999;
  15. background: transparent;
  16. border: none;
  17. border-bottom: 2px solid transparent;
  18. cursor: pointer;
  19. transition: color 0.15s, border-color 0.15s;
  20. &:hover {
  21. color: #666;
  22. }
  23. &.active {
  24. color: #F7931A;
  25. border-bottom-color: #F7931A;
  26. }
  27. }
  28. }
  29. .sidebar-search {
  30. padding: 8px;
  31. border-bottom: 1px solid #eee;
  32. input {
  33. width: 100%;
  34. padding: 6px 10px;
  35. font-size: 0.813rem;
  36. border: 1px solid #ddd;
  37. border-radius: 4px;
  38. outline: none;
  39. &:focus {
  40. border-color: #F7931A;
  41. }
  42. }
  43. }
  44. .sidebar-list {
  45. flex: 1;
  46. overflow-y: auto;
  47. }
  48. .sidebar-item {
  49. display: flex;
  50. align-items: center;
  51. justify-content: space-between;
  52. width: 100%;
  53. padding: 8px 12px;
  54. border: 1px solid transparent;
  55. border-bottom: 1px solid #f0f0f0;
  56. background: transparent;
  57. cursor: pointer;
  58. text-align: left;
  59. transition: background 0.15s;
  60. &:hover {
  61. background: #f0f0f0;
  62. }
  63. &.active {
  64. background: #fff3e0;
  65. border-left: 3px solid #F7931A;
  66. }
  67. .item-info {
  68. display: flex;
  69. flex-direction: column;
  70. gap: 1px;
  71. .item-kor-name {
  72. font-weight: 600;
  73. font-size: 0.813rem;
  74. color: #222;
  75. }
  76. .item-symbol {
  77. font-size: 0.688rem;
  78. color: #999;
  79. }
  80. }
  81. .item-price {
  82. display: flex;
  83. flex-direction: column;
  84. align-items: flex-end;
  85. gap: 1px;
  86. .price {
  87. font-size: 0.813rem;
  88. font-weight: 600;
  89. font-variant-numeric: tabular-nums;
  90. }
  91. .change {
  92. font-size: 0.688rem;
  93. font-variant-numeric: tabular-nums;
  94. }
  95. .up {
  96. color: hsl(var(--crypto-up));
  97. }
  98. .down {
  99. color: hsl(var(--crypto-down));
  100. }
  101. .neutral {
  102. color: hsl(var(--crypto-neutral));
  103. }
  104. }
  105. }
  106. .sidebar-empty {
  107. padding: 24px;
  108. text-align: center;
  109. color: #999;
  110. font-size: 0.813rem;
  111. }
  112. }
  113. // 시세 변동 보더 플래시 애니메이션
  114. @keyframes flash-border-up {
  115. 0% {
  116. border-color: hsl(var(--crypto-up));
  117. box-shadow: inset 0 0 0 1px hsl(var(--crypto-up) / 0.3);
  118. }
  119. 100% {
  120. border-color: transparent;
  121. box-shadow: none;
  122. }
  123. }
  124. @keyframes flash-border-down {
  125. 0% {
  126. border-color: hsl(var(--crypto-down));
  127. box-shadow: inset 0 0 0 1px hsl(var(--crypto-down) / 0.3);
  128. }
  129. 100% {
  130. border-color: transparent;
  131. box-shadow: none;
  132. }
  133. }
  134. .sidebar-item.flash-up {
  135. animation: flash-border-up 0.6s ease-out;
  136. }
  137. .sidebar-item.flash-down {
  138. animation: flash-border-down 0.6s ease-out;
  139. }