style.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. .rank-config {
  2. display: flex;
  3. flex-direction: column;
  4. // ── 목록 패널 ────────────────────────────────────
  5. &__list-panel {
  6. display: flex;
  7. flex-direction: column;
  8. gap: 0;
  9. }
  10. // ── 30/70 레이아웃 ────────────────────────────────
  11. &__layout {
  12. display: grid;
  13. grid-template-columns: minmax(0, 500px) auto 1fr;
  14. gap: 24px;
  15. align-items: start;
  16. }
  17. // ── 좌측 패널 (미리보기) ─────────────────────────
  18. &__preview-panel {
  19. position: sticky;
  20. top: 16px;
  21. display: flex;
  22. flex-direction: column;
  23. gap: 16px;
  24. max-height: calc(100vh - 48px);
  25. overflow-y: auto;
  26. }
  27. // ── 우측 패널 (폼) ───────────────────────────────
  28. &__form-panel {
  29. display: flex;
  30. flex-direction: column;
  31. gap: 0;
  32. }
  33. // ── 섹션 ─────────────────────────────────────────
  34. &__section {
  35. display: grid;
  36. grid-template-columns: 140px 1fr;
  37. gap: 24px;
  38. padding: 24px 0;
  39. border-bottom: 1px solid hsl(var(--border));
  40. &:first-of-type {
  41. padding-top: 0;
  42. }
  43. }
  44. &__section-title {
  45. font-size: 0.875rem;
  46. font-weight: 600;
  47. color: hsl(var(--foreground));
  48. padding-top: 2px;
  49. margin: 0;
  50. }
  51. &__section-body {
  52. display: flex;
  53. flex-direction: column;
  54. gap: 17px;
  55. max-width: 520px;
  56. }
  57. // ── 위젯 미리보기 ────────────────────────────────
  58. &__widget {
  59. border: 1px solid hsl(var(--border));
  60. border-radius: var(--radius);
  61. overflow: hidden;
  62. }
  63. &__widget-label {
  64. padding: 8px 14px;
  65. font-size: 0.8125rem;
  66. font-weight: 500;
  67. color: hsl(var(--muted));
  68. background: #0e0e1a;
  69. }
  70. &__widget-body {
  71. padding: 16px;
  72. &--basic {
  73. background: #1a1a2e;
  74. }
  75. &--dark {
  76. background: #0a0a14;
  77. }
  78. &--minimal {
  79. background: #222;
  80. }
  81. }
  82. // ── 툴바 ─────────────────────────────────────────
  83. &__toolbar {
  84. display: flex;
  85. align-items: center;
  86. justify-content: space-between;
  87. gap: 8px;
  88. margin-bottom: 12px;
  89. flex-wrap: wrap;
  90. }
  91. &__toolbar-left {
  92. display: flex;
  93. align-items: baseline;
  94. gap: 6px;
  95. }
  96. &__toolbar-right {
  97. display: flex;
  98. align-items: center;
  99. gap: 6px;
  100. flex-wrap: wrap;
  101. }
  102. &__count {
  103. font-size: 0.8125rem;
  104. color: hsl(var(--muted-foreground));
  105. }
  106. &__per-page {
  107. padding: 9px 10px;
  108. border: 1px solid hsl(var(--border));
  109. border-radius: calc(var(--radius) - 2px);
  110. background: hsl(var(--background));
  111. color: hsl(var(--foreground));
  112. font-size: 0.875rem;
  113. cursor: pointer;
  114. }
  115. // ── 버튼 ─────────────────────────────────────────
  116. &__btn {
  117. display: inline-flex;
  118. align-items: center;
  119. gap: 6px;
  120. padding: 8px 16px;
  121. border: 1px solid hsl(var(--border));
  122. border-radius: calc(var(--radius) - 2px);
  123. background: hsl(var(--background));
  124. color: hsl(var(--foreground));
  125. font-size: 0.875rem;
  126. font-weight: 500;
  127. cursor: pointer;
  128. white-space: nowrap;
  129. transition: background-color 0.15s, color 0.15s;
  130. justify-content: center;
  131. &:not([class*="--"]):hover:not(:disabled) {
  132. background: hsl(var(--accent));
  133. color: hsl(var(--accent-foreground));
  134. }
  135. &:disabled {
  136. opacity: 0.5;
  137. cursor: not-allowed;
  138. }
  139. &--sm {
  140. padding: 4px 10px;
  141. font-size: 0.75rem;
  142. }
  143. &--primary {
  144. background: hsl(var(--primary));
  145. color: hsl(var(--primary-foreground));
  146. border-color: hsl(var(--primary));
  147. &:hover:not(:disabled) {
  148. background: hsl(var(--primary) / 0.9);
  149. color: hsl(var(--primary-foreground));
  150. }
  151. }
  152. &--danger {
  153. color: hsl(var(--destructive));
  154. border-color: hsl(var(--destructive) / 0.5);
  155. &:hover:not(:disabled) {
  156. background: hsl(var(--destructive) / 0.1);
  157. }
  158. }
  159. }
  160. // ── 테이블 ───────────────────────────────────────
  161. &__table-wrap {
  162. border: 1px solid hsl(var(--border));
  163. border-radius: var(--radius);
  164. overflow: hidden;
  165. }
  166. &__table {
  167. width: 100%;
  168. border-collapse: collapse;
  169. font-size: 0.8125rem;
  170. th, td {
  171. padding: 10px 12px;
  172. text-align: left;
  173. border-bottom: 1px solid hsl(var(--border));
  174. }
  175. th {
  176. font-weight: 500;
  177. color: hsl(var(--muted-foreground));
  178. font-size: 0.75rem;
  179. background: hsl(var(--muted) / 0.4);
  180. }
  181. tbody tr:last-child td {
  182. border-bottom: none;
  183. }
  184. tbody tr {
  185. transition: background 0.15s;
  186. }
  187. tbody tr:hover {
  188. background: hsl(var(--muted) / 0.5);
  189. }
  190. }
  191. &__th--check,
  192. &__td--check {
  193. width: 40px;
  194. text-align: center;
  195. }
  196. &__row--checked {
  197. opacity: 0.5;
  198. td {
  199. text-decoration: line-through;
  200. }
  201. }
  202. &__status-badge {
  203. display: inline-flex;
  204. align-items: center;
  205. padding: 2px 8px;
  206. border-radius: calc(var(--radius) - 2px);
  207. font-size: 0.6875rem;
  208. font-weight: 500;
  209. white-space: nowrap;
  210. &--active {
  211. background: hsl(142 71% 45% / 0.1);
  212. color: hsl(142 71% 45%);
  213. }
  214. &--inactive {
  215. background: hsl(var(--muted));
  216. color: hsl(var(--muted-foreground));
  217. }
  218. }
  219. &__empty {
  220. padding: 48px 16px;
  221. text-align: center;
  222. color: hsl(var(--muted-foreground));
  223. font-size: 0.875rem;
  224. }
  225. &__loading {
  226. padding: 48px 16px;
  227. text-align: center;
  228. color: hsl(var(--muted-foreground));
  229. font-size: 0.875rem;
  230. }
  231. // ── 페이징 ───────────────────────────────────────
  232. &__pagination {
  233. display: flex;
  234. align-items: center;
  235. justify-content: center;
  236. gap: 4px;
  237. margin-top: 12px;
  238. }
  239. &__page-btn {
  240. min-width: 28px;
  241. height: 28px;
  242. display: inline-flex;
  243. align-items: center;
  244. justify-content: center;
  245. border: 1px solid hsl(var(--border));
  246. border-radius: calc(var(--radius) - 2px);
  247. background: hsl(var(--background));
  248. color: hsl(var(--foreground));
  249. font-size: 0.75rem;
  250. cursor: pointer;
  251. transition: background-color 0.15s;
  252. &:hover:not(:disabled) {
  253. background: hsl(var(--accent));
  254. }
  255. &:disabled {
  256. opacity: 0.5;
  257. cursor: not-allowed;
  258. }
  259. &--active {
  260. background: hsl(var(--primary));
  261. color: hsl(var(--primary-foreground));
  262. border-color: hsl(var(--primary));
  263. }
  264. }
  265. // ── 폼 필드 ──────────────────────────────────────
  266. &__field {
  267. display: flex;
  268. flex-direction: column;
  269. gap: 6px;
  270. }
  271. &__field-label {
  272. font-size: 0.875rem;
  273. font-weight: 500;
  274. color: hsl(var(--foreground));
  275. }
  276. &__field-row {
  277. display: grid;
  278. grid-template-columns: 1fr 1fr;
  279. gap: 10px;
  280. }
  281. &__input {
  282. padding: 8px 12px;
  283. border: 1px solid hsl(var(--border));
  284. border-radius: calc(var(--radius) - 2px);
  285. background: hsl(var(--background));
  286. color: hsl(var(--foreground));
  287. font-size: 0.875rem;
  288. width: 100%;
  289. &::placeholder {
  290. color: hsl(var(--muted-foreground));
  291. }
  292. &--color-text {
  293. flex: 1;
  294. min-width: 0;
  295. font-family: monospace;
  296. }
  297. }
  298. &__select {
  299. padding: 8px 12px;
  300. border: 1px solid hsl(var(--border));
  301. border-radius: calc(var(--radius) - 2px);
  302. background: hsl(var(--background));
  303. color: hsl(var(--foreground));
  304. font-size: 0.875rem;
  305. width: 100%;
  306. cursor: pointer;
  307. }
  308. &__checkbox-label {
  309. display: inline-flex;
  310. align-items: center;
  311. gap: 8px;
  312. font-size: 0.875rem;
  313. color: hsl(var(--foreground));
  314. cursor: pointer;
  315. }
  316. // ── details 접이식 ──────────────────────────────
  317. &__details {
  318. border: 1px solid hsl(var(--border));
  319. border-radius: calc(var(--radius) - 2px);
  320. overflow: hidden;
  321. &[open] > .rank-config__details-summary {
  322. border-bottom: 1px solid hsl(var(--border));
  323. }
  324. }
  325. &__details-summary {
  326. padding: 10px 14px;
  327. font-size: 0.8125rem;
  328. font-weight: 500;
  329. color: hsl(var(--foreground));
  330. cursor: pointer;
  331. user-select: none;
  332. list-style: none;
  333. display: flex;
  334. align-items: center;
  335. gap: 6px;
  336. transition: background-color 0.15s;
  337. &:hover {
  338. background: hsl(var(--accent) / 0.5);
  339. }
  340. &::before {
  341. content: '▸';
  342. font-size: 0.75rem;
  343. transition: transform 0.15s;
  344. }
  345. &::-webkit-details-marker {
  346. display: none;
  347. }
  348. }
  349. &__details[open] > .rank-config__details-summary::before {
  350. transform: rotate(90deg);
  351. }
  352. &__details-body {
  353. display: flex;
  354. flex-direction: column;
  355. gap: 14px;
  356. padding: 14px;
  357. }
  358. // ── 색상 선택 필드 ───────────────────────────────
  359. &__color-field {
  360. display: flex;
  361. align-items: center;
  362. gap: 8px;
  363. }
  364. &__color-picker {
  365. width: 36px;
  366. height: 36px;
  367. border: 1px solid hsl(var(--border));
  368. border-radius: calc(var(--radius) - 2px);
  369. background: none;
  370. cursor: pointer;
  371. padding: 2px;
  372. flex-shrink: 0;
  373. &::-webkit-color-swatch-wrapper {
  374. padding: 0;
  375. }
  376. &::-webkit-color-swatch {
  377. border: none;
  378. border-radius: 2px;
  379. }
  380. &::-moz-color-swatch {
  381. border: none;
  382. border-radius: 2px;
  383. }
  384. }
  385. // ── 폼 하단 ──────────────────────────────────────
  386. &__form-footer {
  387. display: flex;
  388. justify-content: center;
  389. gap: 8px;
  390. padding-top: 20px;
  391. margin-top: 4px;
  392. }
  393. }
  394. // ── 순위 미리보기 ────────────────────────────────────
  395. .rank-preview {
  396. &__title {
  397. text-align: center;
  398. font-weight: 700;
  399. font-size: 18px;
  400. margin-bottom: 12px;
  401. color: #fff;
  402. text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  403. }
  404. &__list {
  405. display: flex;
  406. flex-direction: column;
  407. gap: 6px;
  408. }
  409. &__item {
  410. display: flex;
  411. align-items: center;
  412. gap: 10px;
  413. padding: 8px 12px;
  414. border-radius: 8px;
  415. background: rgba(255, 255, 255, 0.08);
  416. &--1 { background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05)); }
  417. &--2 { background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05)); }
  418. &--3 { background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05)); }
  419. }
  420. &__member-icon {
  421. width: 28px;
  422. height: 28px;
  423. border-radius: 50%;
  424. background: #444;
  425. flex-shrink: 0;
  426. border: 1px solid rgba(255, 255, 255, 0.15);
  427. }
  428. &__badge {
  429. width: 28px;
  430. height: 28px;
  431. border-radius: 50%;
  432. display: flex;
  433. align-items: center;
  434. justify-content: center;
  435. font-weight: 800;
  436. font-size: 14px;
  437. flex-shrink: 0;
  438. &--1 { background: #FFD700; color: #000; }
  439. &--2 { background: #C0C0C0; color: #000; }
  440. &--3 { background: #CD7F32; color: #fff; }
  441. &--default { background: #555; color: #fff; }
  442. }
  443. &__grade-icon {
  444. width: 18px;
  445. height: 18px;
  446. border-radius: 3px;
  447. background: linear-gradient(135deg, #6366f1, #8b5cf6);
  448. flex-shrink: 0;
  449. }
  450. &__name {
  451. flex: 1;
  452. font-weight: 600;
  453. color: #fff;
  454. font-size: 15px;
  455. overflow: hidden;
  456. text-overflow: ellipsis;
  457. white-space: nowrap;
  458. }
  459. &__meta {
  460. display: flex;
  461. align-items: center;
  462. gap: 8px;
  463. flex-shrink: 0;
  464. }
  465. &__amount {
  466. font-weight: 700;
  467. color: #FF6B35;
  468. font-size: 15px;
  469. white-space: nowrap;
  470. }
  471. &__count {
  472. font-weight: 500;
  473. color: #aaa;
  474. font-size: 13px;
  475. white-space: nowrap;
  476. }
  477. &__empty {
  478. text-align: center;
  479. color: #666;
  480. padding: 20px;
  481. }
  482. }
  483. // ── 반응형 ────────────────────────────────────────────
  484. @media (max-width: 1380px) {
  485. .rank-config {
  486. &__layout {
  487. grid-template-columns: minmax(0, 500px) auto 1fr;
  488. gap: 24px;
  489. align-items: start;
  490. }
  491. &__section {
  492. grid-template-columns: 1fr;
  493. gap: 5px;
  494. }
  495. &__section-title {
  496. margin-bottom: 9px;
  497. }
  498. }
  499. }
  500. @media (max-width: 1120px) {
  501. .rank-config {
  502. &__layout {
  503. grid-template-columns: 2fr auto 3fr;
  504. }
  505. }
  506. }
  507. @media (max-width: 768px) {
  508. .rank-config {
  509. &__layout {
  510. grid-template-columns: 1fr;
  511. }
  512. &__preview-panel {
  513. position: static;
  514. max-height: none;
  515. }
  516. &__section {
  517. grid-template-columns: 1fr;
  518. gap: 8px;
  519. }
  520. &__section-title {
  521. margin-bottom: 12px;
  522. }
  523. &__section-body {
  524. max-width: none;
  525. }
  526. &__field-row {
  527. grid-template-columns: 1fr;
  528. }
  529. &__toolbar {
  530. flex-direction: column;
  531. align-items: flex-start;
  532. }
  533. &__table-wrap {
  534. overflow-x: auto;
  535. }
  536. &__table {
  537. min-width: 700px;
  538. }
  539. }
  540. }