market-sidebar.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // 좌측 사이드바 자리표시 (MarketSidebar) — 관심종목/즐겨찾기 본구현 전 골격 (D6 그리드 셸)
  2. .market-sidebar {
  3. display: flex;
  4. flex-direction: column;
  5. height: 100%;
  6. min-height: 0;
  7. &__header {
  8. display: flex;
  9. align-items: center;
  10. justify-content: space-between;
  11. padding: 10px 12px;
  12. border-bottom: 1px solid var(--border-light);
  13. }
  14. &__title {
  15. font-size: var(--fs-sm);
  16. font-weight: 700;
  17. color: var(--text-secondary);
  18. }
  19. &__collapse-btn {
  20. display: inline-flex;
  21. align-items: center;
  22. justify-content: center;
  23. width: 28px;
  24. height: 28px;
  25. border: none;
  26. border-radius: 4px;
  27. background: transparent;
  28. color: var(--text-muted);
  29. cursor: pointer;
  30. &:hover {
  31. background: var(--bg-subtle);
  32. color: var(--text-primary);
  33. }
  34. }
  35. &__body {
  36. flex: 1;
  37. min-height: 0;
  38. overflow-y: auto;
  39. padding: var(--sp-4);
  40. }
  41. &__empty {
  42. padding: var(--sp-5) 0;
  43. font-size: var(--fs-xs);
  44. color: var(--text-muted);
  45. text-align: center;
  46. line-height: 1.6;
  47. }
  48. &__list {
  49. list-style: none;
  50. margin: 0;
  51. padding: 0;
  52. display: flex;
  53. flex-direction: column;
  54. }
  55. &__item {
  56. display: flex;
  57. flex-direction: column;
  58. gap: 2px;
  59. padding: 8px 4px;
  60. border-bottom: 1px solid var(--border-light);
  61. color: var(--text-primary);
  62. &:hover {
  63. background: var(--bg-subtle-hover);
  64. }
  65. }
  66. &__item-name {
  67. font-size: var(--fs-sm);
  68. font-weight: 600;
  69. white-space: nowrap;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. }
  73. &__item-figures {
  74. display: flex;
  75. align-items: baseline;
  76. justify-content: space-between;
  77. gap: var(--sp-2);
  78. font-variant-numeric: tabular-nums;
  79. }
  80. &__item-close {
  81. font-size: var(--fs-sm);
  82. color: var(--text-secondary);
  83. }
  84. &__item-change {
  85. font-size: var(--fs-xs);
  86. }
  87. &__icon-placeholder {
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. height: 36px;
  92. color: var(--text-muted);
  93. }
  94. &__footer {
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. gap: var(--sp-3);
  99. padding: var(--sp-3);
  100. border-top: 1px solid var(--border-light);
  101. }
  102. &__icon-btn {
  103. display: inline-flex;
  104. align-items: center;
  105. justify-content: center;
  106. width: 32px;
  107. height: 32px;
  108. border: none;
  109. border-radius: 4px;
  110. background: transparent;
  111. color: var(--text-muted);
  112. cursor: pointer;
  113. &:hover {
  114. background: var(--bg-subtle);
  115. color: var(--text-primary);
  116. }
  117. }
  118. &--collapsed {
  119. .market-sidebar__header {
  120. justify-content: center;
  121. padding: 10px 6px;
  122. }
  123. }
  124. }