style.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. #chargeLogs {
  2. padding: 0 32px 32px 32px;
  3. h1 {
  4. font-size: 22px;
  5. margin-bottom: 10px;
  6. }
  7. .charge-logs {
  8. &__header {
  9. display: flex;
  10. justify-content: space-between;
  11. align-items: center;
  12. margin-bottom: 10px;
  13. flex-wrap: wrap;
  14. gap: 0.5rem;
  15. }
  16. &__summary {
  17. font-size: 16px;
  18. }
  19. &__tabs {
  20. display: flex;
  21. align-items: center;
  22. gap: 0.25rem;
  23. button {
  24. padding: 0.5rem 1rem;
  25. font-size: 0.875rem;
  26. color: var(--text-secondary);
  27. border-bottom: 2px solid transparent;
  28. transition: color 0.2s, border-color 0.2s;
  29. &:hover {
  30. color: var(--text-link);
  31. border-bottom-color: var(--text-link);
  32. }
  33. &.active {
  34. color: var(--text-link);
  35. font-weight: 600;
  36. border-bottom-color: var(--text-link);
  37. }
  38. }
  39. }
  40. &__filter {
  41. margin-right: 0.5rem;
  42. padding: 0.4rem 1.75rem 0.4rem 0.75rem;
  43. font-size: 0.875rem;
  44. border: 1px solid var(--border-default);
  45. border-radius: 6px;
  46. background-color: var(--bg-default, #fff);
  47. color: var(--text-primary);
  48. cursor: pointer;
  49. appearance: none;
  50. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.5L2 4.5h8z'/%3E%3C/svg%3E");
  51. background-repeat: no-repeat;
  52. background-position: right 0.5rem center;
  53. background-size: 10px;
  54. &:focus {
  55. outline: none;
  56. border-color: var(--text-link);
  57. }
  58. }
  59. &__reason {
  60. min-width: 0;
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. white-space: nowrap;
  64. font-size: 0.8rem !important;
  65. color: var(--text-secondary);
  66. }
  67. &__list {
  68. border-top: 1px solid var(--border-default);
  69. margin: 0.75rem 0;
  70. // 헤더 행
  71. article:nth-of-type(1) {
  72. background-color: #f9fafb;
  73. border-bottom: 1px solid var(--border-default);
  74. padding: 0.5rem 0;
  75. ul {
  76. display: grid;
  77. grid-template-columns:
  78. clamp(100px, 14%, 140px)
  79. 1fr
  80. clamp(70px, 10%, 90px)
  81. clamp(70px, 10%, 90px)
  82. clamp(70px, 10%, 90px)
  83. clamp(50px, 8%, 70px);
  84. column-gap: 0.75rem;
  85. li {
  86. text-align: center;
  87. font-size: 0.875rem;
  88. color: var(--text-secondary);
  89. }
  90. }
  91. @media (max-width: 1024px) {
  92. display: none;
  93. }
  94. }
  95. // 데이터 행
  96. article:nth-of-type(2) {
  97. box-sizing: border-box;
  98. section {
  99. padding: 0.5rem 0;
  100. box-sizing: inherit;
  101. border-bottom: 1px solid var(--border-default);
  102. &:hover {
  103. background-color: #faffd1;
  104. }
  105. // PC
  106. > ol {
  107. display: grid;
  108. grid-template-columns:
  109. clamp(100px, 14%, 140px)
  110. 1fr
  111. clamp(70px, 10%, 90px)
  112. clamp(70px, 10%, 90px)
  113. clamp(70px, 10%, 90px)
  114. clamp(50px, 8%, 70px);
  115. column-gap: 0.75rem;
  116. align-items: center;
  117. > li {
  118. text-align: center;
  119. font-size: 0.875rem;
  120. }
  121. }
  122. // Mobile
  123. dl {
  124. dt {
  125. font-size: 1rem;
  126. word-break: keep-all;
  127. overflow-wrap: break-word;
  128. }
  129. dd {
  130. ul {
  131. display: flex;
  132. flex-direction: row;
  133. flex-wrap: nowrap;
  134. justify-content: start;
  135. padding-top: 0.4rem;
  136. column-gap: 1rem;
  137. li {
  138. font-size: 0.813rem;
  139. color: var(--text-muted);
  140. &:last-child {
  141. flex-grow: 1;
  142. text-align: right;
  143. }
  144. }
  145. }
  146. }
  147. }
  148. @media (max-width: 1024px) {
  149. ol {
  150. display: none;
  151. }
  152. dl {
  153. display: block;
  154. }
  155. }
  156. }
  157. > .empty {
  158. text-align: center;
  159. padding: 2.5rem;
  160. color: var(--text-muted);
  161. }
  162. }
  163. .amount-plus {
  164. font-weight: 600;
  165. color: var(--color-danger) !important;
  166. }
  167. .amount-minus {
  168. font-weight: 600;
  169. color: var(--text-link) !important;
  170. }
  171. .status--paid {
  172. color: var(--color-success);
  173. font-weight: 600;
  174. }
  175. .status--pending {
  176. color: var(--color-warning);
  177. font-weight: 600;
  178. }
  179. .status--failed {
  180. color: var(--color-danger);
  181. font-weight: 600;
  182. }
  183. .status--cancelled {
  184. color: var(--text-muted);
  185. }
  186. }
  187. &__order-id {
  188. min-width: 0;
  189. overflow: hidden;
  190. text-overflow: ellipsis;
  191. white-space: nowrap;
  192. font-family: monospace;
  193. font-size: 0.8rem !important;
  194. }
  195. }
  196. }