sidebar.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. .crypto-sidebar {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. background: var(--bg-elevated);
  6. .sidebar-tabs {
  7. display: flex;
  8. border-bottom: 1px solid var(--border-default);
  9. .tab {
  10. flex: 1;
  11. padding: 8px 0;
  12. font-size: 0.75rem;
  13. font-weight: 600;
  14. color: var(--text-muted);
  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: var(--text-primary);
  22. }
  23. &.active {
  24. color: var(--brand-orange);
  25. border-bottom-color: var(--brand-orange);
  26. }
  27. }
  28. }
  29. .sidebar-search {
  30. padding: 8px;
  31. border-bottom: 1px solid var(--border-default);
  32. input {
  33. width: 100%;
  34. padding: 6px 10px;
  35. font-size: 0.813rem;
  36. border: 1px solid var(--border-default);
  37. border-radius: 4px;
  38. outline: none;
  39. &:focus {
  40. border-color: var(--brand-orange);
  41. }
  42. }
  43. }
  44. .sidebar-sort {
  45. display: flex;
  46. border-bottom: 1px solid var(--border-default);
  47. background: var(--bg-subtle);
  48. button {
  49. flex: 1;
  50. padding: 5px 0;
  51. font-size: 0.688rem;
  52. font-weight: 500;
  53. color: var(--text-muted);
  54. background: transparent;
  55. border: none;
  56. cursor: pointer;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. gap: 3px;
  61. transition: color 0.15s;
  62. &:hover {
  63. color: var(--text-primary);
  64. }
  65. &.active {
  66. color: var(--brand-orange);
  67. font-weight: 700;
  68. }
  69. svg {
  70. font-size: 0.625rem;
  71. }
  72. }
  73. }
  74. .sidebar-list {
  75. flex: 1;
  76. overflow-y: auto;
  77. }
  78. .sidebar-item {
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. width: 100%;
  83. padding: 8px 12px;
  84. border: 1px solid transparent;
  85. border-bottom: 1px solid var(--bg-subtle);
  86. background: transparent;
  87. cursor: pointer;
  88. text-align: left;
  89. transition: background 0.15s;
  90. &:hover {
  91. background: var(--bg-subtle);
  92. }
  93. &.active {
  94. background: var(--sidebar-active-bg, #fff3e0);
  95. border-left: 3px solid var(--brand-orange);
  96. }
  97. .item-info {
  98. display: flex;
  99. flex-direction: column;
  100. gap: 1px;
  101. .item-name {
  102. font-weight: 600;
  103. font-size: 0.813rem;
  104. color: var(--text-primary);
  105. }
  106. .item-symbol {
  107. font-size: 0.688rem;
  108. color: var(--text-muted);
  109. }
  110. }
  111. .item-price {
  112. display: flex;
  113. flex-direction: column;
  114. align-items: flex-end;
  115. gap: 1px;
  116. .price {
  117. font-size: 0.813rem;
  118. font-weight: 600;
  119. font-variant-numeric: tabular-nums;
  120. }
  121. .change {
  122. font-size: 0.688rem;
  123. font-variant-numeric: tabular-nums;
  124. }
  125. .up {
  126. color: hsl(var(--crypto-up));
  127. }
  128. .down {
  129. color: hsl(var(--crypto-down));
  130. }
  131. .neutral {
  132. color: hsl(var(--crypto-neutral));
  133. }
  134. }
  135. }
  136. .sidebar-empty {
  137. padding: 24px;
  138. text-align: center;
  139. color: var(--text-muted);
  140. font-size: 0.813rem;
  141. }
  142. }
  143. // 시세 변동 보더 플래시 애니메이션
  144. @keyframes flash-border-up {
  145. 0% {
  146. border-color: hsl(var(--crypto-up));
  147. box-shadow: inset 0 0 0 1px hsl(var(--crypto-up) / 0.3);
  148. }
  149. 100% {
  150. border-color: transparent;
  151. box-shadow: none;
  152. }
  153. }
  154. @keyframes flash-border-down {
  155. 0% {
  156. border-color: hsl(var(--crypto-down));
  157. box-shadow: inset 0 0 0 1px hsl(var(--crypto-down) / 0.3);
  158. }
  159. 100% {
  160. border-color: transparent;
  161. box-shadow: none;
  162. }
  163. }
  164. .sidebar-item.flash-up {
  165. animation: flash-border-up 0.6s ease-out;
  166. }
  167. .sidebar-item.flash-down {
  168. animation: flash-border-down 0.6s ease-out;
  169. }