profile.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. .profile-dropdown {
  2. // ── 아바타 트리거 버튼 ─────────────────────────────
  3. &__trigger {
  4. background: none;
  5. border: none;
  6. padding: 0;
  7. cursor: pointer;
  8. flex-shrink: 0;
  9. // ── 비로그인 수정자 ──────────────────────────
  10. &--guest {
  11. background: none;
  12. font-size: 1rem;
  13. font-weight: 500;
  14. color: var(--text-head);
  15. cursor: pointer;
  16. white-space: nowrap;
  17. &:hover {
  18. background: none;
  19. text-decoration: underline;
  20. font-weight: 700;
  21. }
  22. > span {
  23. width: clamp(1.25rem, 3vw, 1.75rem);
  24. }
  25. }
  26. }
  27. &__fallback {
  28. font-size: 0.8125rem;
  29. font-weight: 700;
  30. color: var(--text-muted);
  31. background: var(--bg-elevated);
  32. &:hover {
  33. border: 1px solid var(--border-strong);
  34. }
  35. }
  36. // ── 드롭다운 컨텐츠 ──────────────────────────────
  37. &__content {
  38. width: auto;
  39. }
  40. // ── 프로필 헤더 영역 ─────────────────────────────
  41. &__header {
  42. display: flex;
  43. align-items: center;
  44. gap: 12px;
  45. padding: 12px;
  46. }
  47. &__user-info {
  48. flex: 1;
  49. min-width: 0;
  50. }
  51. &__name {
  52. font-size: 0.9375rem;
  53. font-weight: 600;
  54. color: var(--fg-default);
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. white-space: nowrap;
  58. }
  59. &__balance {
  60. display: flex;
  61. align-items: center;
  62. gap: 4px;
  63. font-size: 0.75rem;
  64. color: var(--text-muted);
  65. margin-top: 2px;
  66. &-icon {
  67. display: inline-flex;
  68. align-items: center;
  69. justify-content: center;
  70. width: 16px;
  71. height: 16px;
  72. border-radius: 50%;
  73. background: var(--color-blue);
  74. color: #fff;
  75. font-size: 0.5625rem;
  76. font-weight: 700;
  77. flex-shrink: 0;
  78. }
  79. > span:last-child {
  80. color: var(--text-primary);
  81. }
  82. }
  83. &__withdraw {
  84. display: flex;
  85. align-items: center;
  86. gap: 4px;
  87. font-size: 0.75rem;
  88. color: var(--text-muted);
  89. margin-top: 1px;
  90. &-icon {
  91. display: inline-flex;
  92. align-items: center;
  93. justify-content: center;
  94. width: 16px;
  95. height: 16px;
  96. font-size: 0.6875rem;
  97. flex-shrink: 0;
  98. }
  99. }
  100. // ── 메뉴 아이콘 ──────────────────────────────────
  101. &__menu-icon {
  102. width: 20px;
  103. text-align: center;
  104. font-size: 1rem;
  105. flex-shrink: 0;
  106. }
  107. // ── 위험 액션 (로그아웃) ──────────────────────────
  108. &__danger {
  109. color: var(--color-danger);
  110. &:focus {
  111. color: var(--color-danger);
  112. background: var(--color-danger-bg);
  113. }
  114. }
  115. // ── 비로그인 링크 ────────────────────────────────
  116. &__guest {
  117. display: flex;
  118. align-items: center;
  119. gap: 8px;
  120. white-space: nowrap;
  121. }
  122. &__guest-link {
  123. font-size: 0.875rem;
  124. font-weight: 500;
  125. color: var(--text-head);
  126. text-decoration: none;
  127. &:hover {
  128. text-decoration: underline;
  129. }
  130. }
  131. &__guest-divider {
  132. font-size: 0.75rem;
  133. color: var(--text-head);
  134. opacity: 0.5;
  135. }
  136. }