style.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. #studioTitlesPage {
  2. max-width: 900px;
  3. margin: 0 auto;
  4. padding: 1.5rem;
  5. }
  6. .studio-titles {
  7. &__header {
  8. display: flex;
  9. align-items: center;
  10. justify-content: space-between;
  11. padding-bottom: 1rem;
  12. border-bottom: 1px solid hsl(var(--border));
  13. h1 {
  14. font-size: 1.5rem;
  15. font-weight: 700;
  16. margin: 0;
  17. }
  18. }
  19. &__add-btn {
  20. display: inline-flex;
  21. align-items: center;
  22. gap: 0.4rem;
  23. padding: 0.5rem 1rem;
  24. background: hsl(var(--primary));
  25. color: hsl(var(--primary-foreground));
  26. border-radius: 6px;
  27. font-weight: 600;
  28. &:hover {
  29. opacity: 0.9;
  30. }
  31. }
  32. &__hint {
  33. margin: 1rem 0;
  34. padding: 0.75rem 1rem;
  35. background: hsl(var(--muted) / 0.5);
  36. border-radius: 6px;
  37. font-size: 0.88rem;
  38. color: hsl(var(--muted-foreground));
  39. }
  40. &__list {
  41. display: flex;
  42. flex-direction: column;
  43. gap: 0.75rem;
  44. }
  45. &__empty {
  46. padding: 3rem 1rem;
  47. text-align: center;
  48. color: hsl(var(--muted-foreground));
  49. }
  50. &__card {
  51. display: grid;
  52. grid-template-columns: auto 1fr auto;
  53. gap: 1rem;
  54. align-items: center;
  55. padding: 1rem;
  56. background: hsl(var(--background));
  57. border: 1px solid hsl(var(--border));
  58. border-radius: 8px;
  59. &--inactive {
  60. opacity: 0.5;
  61. }
  62. &-badge {
  63. display: inline-flex;
  64. align-items: center;
  65. gap: 0.35rem;
  66. padding: 0.35rem 0.7rem;
  67. font-weight: 600;
  68. color: #fff;
  69. border-radius: 9999px;
  70. white-space: nowrap;
  71. background-color: var(--badge-color, transparent);
  72. &-icon {
  73. width: 20px;
  74. height: 20px;
  75. border-radius: 50%;
  76. object-fit: cover;
  77. }
  78. }
  79. &-info {
  80. display: flex;
  81. flex-direction: column;
  82. gap: 0.25rem;
  83. strong {
  84. font-size: 1rem;
  85. }
  86. span {
  87. font-size: 0.85rem;
  88. color: hsl(var(--muted-foreground));
  89. }
  90. em {
  91. font-size: 0.82rem;
  92. color: hsl(var(--muted-foreground));
  93. font-style: normal;
  94. }
  95. }
  96. &-actions {
  97. display: flex;
  98. gap: 0.25rem;
  99. }
  100. }
  101. &__icon-btn {
  102. display: inline-flex;
  103. align-items: center;
  104. justify-content: center;
  105. width: 32px;
  106. height: 32px;
  107. background: transparent;
  108. color: hsl(var(--muted-foreground));
  109. border-radius: 6px;
  110. &:hover {
  111. background: hsl(var(--muted));
  112. color: hsl(var(--foreground));
  113. }
  114. &--danger:hover {
  115. color: #dc2626;
  116. }
  117. }
  118. &__form-overlay {
  119. position: fixed;
  120. inset: 0;
  121. background: rgba(0, 0, 0, 0.5);
  122. display: flex;
  123. align-items: center;
  124. justify-content: center;
  125. padding: 1rem;
  126. z-index: 100;
  127. }
  128. &__form {
  129. max-width: 480px;
  130. width: 100%;
  131. max-height: 90vh;
  132. overflow-y: auto;
  133. padding: 1.5rem;
  134. background: hsl(var(--background));
  135. border-radius: 12px;
  136. box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  137. display: flex;
  138. flex-direction: column;
  139. gap: 0.75rem;
  140. h2 {
  141. font-size: 1.2rem;
  142. font-weight: 700;
  143. margin: 0 0 0.5rem;
  144. }
  145. label {
  146. display: flex;
  147. flex-direction: column;
  148. gap: 0.25rem;
  149. font-size: 0.88rem;
  150. font-weight: 500;
  151. input[type="text"],
  152. input[type="number"] {
  153. padding: 0.55rem 0.75rem;
  154. border: 1px solid hsl(var(--border));
  155. border-radius: 6px;
  156. background: hsl(var(--background));
  157. font-size: 0.95rem;
  158. }
  159. input[type="color"] {
  160. width: 60px;
  161. height: 36px;
  162. padding: 0;
  163. border: 1px solid hsl(var(--border));
  164. border-radius: 6px;
  165. cursor: pointer;
  166. }
  167. }
  168. &-checkbox {
  169. flex-direction: row !important;
  170. align-items: center;
  171. gap: 0.5rem !important;
  172. }
  173. &-icon {
  174. display: flex;
  175. flex-direction: column;
  176. gap: 0.4rem;
  177. font-size: 0.88rem;
  178. font-weight: 500;
  179. &-label {
  180. color: hsl(var(--foreground));
  181. }
  182. &-row {
  183. display: flex;
  184. align-items: center;
  185. gap: 0.5rem;
  186. }
  187. &-input {
  188. display: none;
  189. }
  190. &-btn {
  191. display: inline-flex;
  192. align-items: center;
  193. gap: 0.35rem;
  194. padding: 0.5rem 0.85rem;
  195. background: hsl(var(--muted));
  196. color: hsl(var(--foreground));
  197. border: 1px solid hsl(var(--border));
  198. border-radius: 6px;
  199. font-size: 0.85rem;
  200. font-weight: 500;
  201. cursor: pointer;
  202. &:hover:not(:disabled) {
  203. background: hsl(var(--muted) / 0.7);
  204. }
  205. &:disabled {
  206. opacity: 0.5;
  207. cursor: not-allowed;
  208. }
  209. }
  210. &-remove {
  211. display: inline-flex;
  212. align-items: center;
  213. gap: 0.25rem;
  214. padding: 0.5rem 0.7rem;
  215. background: transparent;
  216. color: #dc2626;
  217. border: 1px solid #dc2626;
  218. border-radius: 6px;
  219. font-size: 0.82rem;
  220. font-weight: 500;
  221. cursor: pointer;
  222. &:hover:not(:disabled) {
  223. background: rgba(220, 38, 38, 0.1);
  224. }
  225. &:disabled {
  226. opacity: 0.5;
  227. cursor: not-allowed;
  228. }
  229. }
  230. &-preview {
  231. display: flex;
  232. align-items: center;
  233. gap: 0.6rem;
  234. padding: 0.6rem;
  235. background: hsl(var(--muted) / 0.4);
  236. border: 1px dashed hsl(var(--border));
  237. border-radius: 6px;
  238. img {
  239. width: 64px;
  240. height: 64px;
  241. object-fit: contain;
  242. background: rgba(0, 0, 0, 0.05);
  243. border-radius: 6px;
  244. }
  245. small {
  246. font-size: 0.78rem;
  247. color: hsl(var(--muted-foreground));
  248. word-break: break-all;
  249. }
  250. }
  251. }
  252. &-preview {
  253. margin: 0.5rem 0;
  254. padding: 0.75rem;
  255. background: hsl(var(--muted) / 0.5);
  256. border-radius: 6px;
  257. font-size: 0.9rem;
  258. span {
  259. display: inline-flex;
  260. align-items: center;
  261. gap: 0.3rem;
  262. padding: 0.2rem 0.6rem;
  263. margin-right: 0.4rem;
  264. color: #fff;
  265. border-radius: 9999px;
  266. font-weight: 600;
  267. font-size: 0.82rem;
  268. background-color: var(--badge-color, transparent);
  269. }
  270. &-icon {
  271. width: 16px;
  272. height: 16px;
  273. border-radius: 50%;
  274. object-fit: cover;
  275. }
  276. }
  277. &-actions {
  278. display: flex;
  279. justify-content: flex-end;
  280. gap: 0.5rem;
  281. margin-top: 0.5rem;
  282. button {
  283. padding: 0.55rem 1.25rem;
  284. border: 1px solid hsl(var(--border));
  285. border-radius: 6px;
  286. background: hsl(var(--background));
  287. font-weight: 500;
  288. &:hover:not(:disabled) {
  289. background: hsl(var(--muted));
  290. }
  291. }
  292. .studio-titles__form-save {
  293. background: hsl(var(--primary));
  294. color: hsl(var(--primary-foreground));
  295. border-color: hsl(var(--primary));
  296. &:hover:not(:disabled) {
  297. opacity: 0.9;
  298. background: hsl(var(--primary));
  299. }
  300. }
  301. }
  302. }
  303. }