mobile-coin-list.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. .mobile-coin-list {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. background: var(--bg-elevated);
  6. .mcl-tabs {
  7. display: flex;
  8. border-bottom: 1px solid var(--border-default);
  9. .tab {
  10. flex: 1;
  11. padding: 10px 0;
  12. font-size: 0.813rem;
  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. .mcl-search {
  30. padding: 8px 12px;
  31. border-bottom: 1px solid var(--border-default);
  32. input {
  33. width: 100%;
  34. padding: 8px 12px;
  35. font-size: 0.875rem;
  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. .mcl-sort {
  45. display: flex;
  46. border-bottom: 1px solid var(--border-default);
  47. background: var(--bg-subtle);
  48. padding: 0 12px;
  49. button {
  50. padding: 6px 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: flex-start;
  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. .sort-name {
  74. flex: 2;
  75. }
  76. .sort-price {
  77. flex: 1.5;
  78. justify-content: flex-end;
  79. }
  80. .sort-change {
  81. flex: 1;
  82. justify-content: flex-end;
  83. }
  84. .sort-volume {
  85. flex: 1.5;
  86. justify-content: flex-end;
  87. }
  88. }
  89. .mcl-list {
  90. flex: 1;
  91. overflow-y: auto;
  92. -webkit-overflow-scrolling: touch;
  93. }
  94. .mcl-item {
  95. display: flex;
  96. align-items: center;
  97. width: 100%;
  98. padding: 10px 12px;
  99. border: 1px solid transparent;
  100. border-bottom: 1px solid var(--bg-subtle);
  101. background: transparent;
  102. cursor: pointer;
  103. text-align: left;
  104. transition: background 0.15s;
  105. &:hover {
  106. background: var(--bg-subtle);
  107. }
  108. &:active {
  109. background: #e8e8e8;
  110. }
  111. &.active {
  112. background: #fff3e0;
  113. border-left: 3px solid var(--brand-orange);
  114. }
  115. .col-name {
  116. flex: 2;
  117. display: flex;
  118. flex-direction: column;
  119. gap: 1px;
  120. min-width: 0;
  121. .name {
  122. font-weight: 600;
  123. font-size: 0.813rem;
  124. color: var(--text-primary);
  125. white-space: nowrap;
  126. overflow: hidden;
  127. text-overflow: ellipsis;
  128. }
  129. .symbol {
  130. font-size: 0.688rem;
  131. color: var(--text-muted);
  132. }
  133. }
  134. .col-price {
  135. flex: 1.5;
  136. text-align: right;
  137. font-size: 0.813rem;
  138. font-weight: 600;
  139. font-variant-numeric: tabular-nums;
  140. }
  141. .col-change {
  142. flex: 1;
  143. text-align: right;
  144. font-size: 0.75rem;
  145. font-weight: 500;
  146. font-variant-numeric: tabular-nums;
  147. }
  148. .col-volume {
  149. flex: 1.5;
  150. text-align: right;
  151. font-size: 0.688rem;
  152. color: var(--text-secondary);
  153. font-variant-numeric: tabular-nums;
  154. }
  155. .up {
  156. color: hsl(var(--crypto-up));
  157. }
  158. .down {
  159. color: hsl(var(--crypto-down));
  160. }
  161. .neutral {
  162. color: hsl(var(--crypto-neutral));
  163. }
  164. }
  165. .mcl-empty {
  166. padding: 24px;
  167. text-align: center;
  168. color: var(--text-muted);
  169. font-size: 0.875rem;
  170. }
  171. }
  172. // 시세 변동 보더 플래시 애니메이션
  173. .mcl-item.flash-up {
  174. animation: mcl-flash-up 0.6s ease-out;
  175. }
  176. .mcl-item.flash-down {
  177. animation: mcl-flash-down 0.6s ease-out;
  178. }
  179. @keyframes mcl-flash-up {
  180. 0% {
  181. border-color: hsl(var(--crypto-up));
  182. box-shadow: inset 0 0 0 1px hsl(var(--crypto-up) / 0.3);
  183. }
  184. 100% {
  185. border-color: transparent;
  186. box-shadow: none;
  187. }
  188. }
  189. @keyframes mcl-flash-down {
  190. 0% {
  191. border-color: hsl(var(--crypto-down));
  192. box-shadow: inset 0 0 0 1px hsl(var(--crypto-down) / 0.3);
  193. }
  194. 100% {
  195. border-color: transparent;
  196. box-shadow: none;
  197. }
  198. }
  199. // 모바일 뒤로가기 바
  200. .mobile-back-bar {
  201. display: flex;
  202. align-items: center;
  203. gap: 8px;
  204. padding: 10px 12px;
  205. background: var(--bg-page);
  206. border-bottom: 1px solid var(--border-default);
  207. button {
  208. display: flex;
  209. align-items: center;
  210. gap: 6px;
  211. padding: 4px 8px;
  212. font-size: 0.875rem;
  213. font-weight: 600;
  214. color: var(--text-primary);
  215. background: transparent;
  216. border: none;
  217. cursor: pointer;
  218. &:hover {
  219. color: var(--brand-orange);
  220. }
  221. svg {
  222. font-size: 0.75rem;
  223. }
  224. }
  225. }