admin-comments.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. /* Admin Comments Interface Styles */
  2. .comments-admin-list {
  3. margin-top: 1rem;
  4. }
  5. .comment-admin-item {
  6. background: white;
  7. border: 1px solid #e9ecef;
  8. border-radius: 8px;
  9. margin-bottom: 1.5rem;
  10. overflow: hidden;
  11. transition: box-shadow 0.2s ease;
  12. }
  13. .comment-admin-item:hover {
  14. box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  15. }
  16. .comment-admin-item.pending {
  17. border-left: 4px solid #ffc107;
  18. }
  19. .comment-admin-item.approved {
  20. border-left: 4px solid #28a745;
  21. }
  22. .comment-admin-item.rejected {
  23. border-left: 4px solid #dc3545;
  24. }
  25. .comment-header {
  26. display: flex;
  27. justify-content: space-between;
  28. align-items: flex-start;
  29. padding: 1rem 1.5rem;
  30. background: #f8f9fa;
  31. border-bottom: 1px solid #e9ecef;
  32. flex-wrap: wrap;
  33. gap: 1rem;
  34. }
  35. .comment-meta {
  36. flex: 1;
  37. min-width: 250px;
  38. }
  39. .comment-author {
  40. display: block;
  41. font-weight: 600;
  42. color: #2c3e50;
  43. margin-bottom: 0.25rem;
  44. }
  45. .comment-author strong {
  46. color: #2c3e50;
  47. }
  48. .comment-author small {
  49. color: #6c757d;
  50. font-weight: normal;
  51. }
  52. .comment-date {
  53. color: #6c757d;
  54. font-size: 0.875rem;
  55. display: block;
  56. margin-bottom: 0.25rem;
  57. }
  58. .comment-status {
  59. display: inline-block;
  60. padding: 0.25rem 0.75rem;
  61. border-radius: 12px;
  62. font-size: 0.75rem;
  63. font-weight: 600;
  64. text-transform: uppercase;
  65. }
  66. .status-pending {
  67. background: #fff3cd;
  68. color: #856404;
  69. }
  70. .status-approved {
  71. background: #d4edda;
  72. color: #155724;
  73. }
  74. .status-rejected {
  75. background: #f8d7da;
  76. color: #721c24;
  77. }
  78. .comment-actions {
  79. display: flex;
  80. gap: 0.5rem;
  81. flex-wrap: wrap;
  82. align-items: center;
  83. }
  84. .comment-actions .btn {
  85. padding: 0.375rem 0.75rem;
  86. font-size: 0.875rem;
  87. border: none;
  88. border-radius: 4px;
  89. cursor: pointer;
  90. transition: background-color 0.2s ease, transform 0.1s ease;
  91. text-decoration: none;
  92. display: inline-block;
  93. }
  94. .comment-actions .btn:hover {
  95. transform: translateY(-1px);
  96. }
  97. .btn-success {
  98. background: #28a745;
  99. color: white;
  100. }
  101. .btn-success:hover {
  102. background: #218838;
  103. }
  104. .btn-warning {
  105. background: #ffc107;
  106. color: #212529;
  107. }
  108. .btn-warning:hover {
  109. background: #e0a800;
  110. }
  111. .btn-primary {
  112. background: #007bff;
  113. color: white;
  114. }
  115. .btn-primary:hover {
  116. background: #0069d9;
  117. }
  118. .btn-danger {
  119. background: #dc3545;
  120. color: white;
  121. }
  122. .btn-danger:hover {
  123. background: #c82333;
  124. }
  125. .btn-secondary {
  126. background: #6c757d;
  127. color: white;
  128. }
  129. .btn-secondary:hover {
  130. background: #5a6268;
  131. }
  132. .comment-content {
  133. padding: 1.5rem;
  134. color: #495057;
  135. line-height: 1.6;
  136. }
  137. .comment-content p {
  138. margin: 0;
  139. }
  140. .comment-publication {
  141. padding: 0 1.5rem 1rem;
  142. background: #f8f9fa;
  143. border-top: 1px solid #e9ecef;
  144. }
  145. .comment-publication small {
  146. color: #6c757d;
  147. }
  148. .comment-publication a {
  149. color: #007bff;
  150. text-decoration: none;
  151. }
  152. .comment-publication a:hover {
  153. text-decoration: underline;
  154. }
  155. /* Reply Form Styles */
  156. .reply-form-container {
  157. background: #e3f2fd;
  158. border-top: 1px solid #bbdefb;
  159. padding: 1.5rem;
  160. }
  161. .reply-form .form-group {
  162. margin-bottom: 1rem;
  163. }
  164. .reply-form label {
  165. display: block;
  166. margin-bottom: 0.5rem;
  167. font-weight: 600;
  168. color: #495057;
  169. }
  170. .reply-form textarea {
  171. width: 100%;
  172. padding: 0.75rem;
  173. border: 1px solid #ced4da;
  174. border-radius: 4px;
  175. font-size: 0.875rem;
  176. resize: vertical;
  177. min-height: 80px;
  178. font-family: inherit;
  179. }
  180. .reply-form textarea:focus {
  181. outline: none;
  182. border-color: #007bff;
  183. box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  184. }
  185. .reply-form .form-actions {
  186. display: flex;
  187. gap: 0.75rem;
  188. align-items: center;
  189. }
  190. .reply-indicator {
  191. padding: 0.5rem 1.5rem;
  192. background: #f8f9fa;
  193. border-top: 1px solid #e9ecef;
  194. font-style: italic;
  195. color: #6c757d;
  196. }
  197. /* Filter Section */
  198. .filter-section {
  199. background: white;
  200. border: 1px solid #e9ecef;
  201. border-radius: 8px;
  202. padding: 1rem 1.5rem;
  203. margin-bottom: 1.5rem;
  204. }
  205. .filter-form {
  206. display: flex;
  207. align-items: center;
  208. gap: 1rem;
  209. flex-wrap: wrap;
  210. }
  211. .filter-form label {
  212. font-weight: 600;
  213. color: #495057;
  214. margin: 0;
  215. }
  216. .filter-form select {
  217. padding: 0.5rem;
  218. border: 1px solid #ced4da;
  219. border-radius: 4px;
  220. font-size: 0.875rem;
  221. background: white;
  222. cursor: pointer;
  223. }
  224. .filter-form select:focus {
  225. outline: none;
  226. border-color: #007bff;
  227. box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  228. }
  229. /* Header Stats */
  230. .header-stats {
  231. display: flex;
  232. gap: 2rem;
  233. align-items: center;
  234. flex-wrap: wrap;
  235. }
  236. .stat-item {
  237. font-size: 0.875rem;
  238. color: #6c757d;
  239. }
  240. .stat-item strong {
  241. color: #2c3e50;
  242. font-weight: 600;
  243. }
  244. /* Pagination */
  245. .pagination {
  246. display: flex;
  247. justify-content: space-between;
  248. align-items: center;
  249. padding: 1.5rem 0;
  250. border-top: 1px solid #e9ecef;
  251. margin-top: 2rem;
  252. }
  253. .page-info {
  254. color: #6c757d;
  255. font-size: 0.875rem;
  256. }
  257. /* No Comments State */
  258. .no-comments {
  259. text-align: center;
  260. padding: 3rem;
  261. color: #6c757d;
  262. font-style: italic;
  263. background: #f8f9fa;
  264. border-radius: 8px;
  265. border: 1px solid #e9ecef;
  266. }
  267. /* Responsive Design */
  268. @media (max-width: 768px) {
  269. .comment-header {
  270. flex-direction: column;
  271. align-items: flex-start;
  272. }
  273. .comment-actions {
  274. width: 100%;
  275. justify-content: flex-start;
  276. }
  277. .header-stats {
  278. flex-direction: column;
  279. gap: 0.5rem;
  280. align-items: flex-start;
  281. }
  282. .filter-form {
  283. flex-direction: column;
  284. align-items: flex-start;
  285. }
  286. .pagination {
  287. flex-direction: column;
  288. gap: 1rem;
  289. text-align: center;
  290. }
  291. .reply-form .form-actions {
  292. flex-direction: column;
  293. align-items: stretch;
  294. }
  295. }
  296. /* Button Loading States */
  297. .btn.loading {
  298. position: relative;
  299. pointer-events: none;
  300. opacity: 0.7;
  301. }
  302. .btn.loading::after {
  303. content: '';
  304. position: absolute;
  305. top: 50%;
  306. left: 50%;
  307. width: 12px;
  308. height: 12px;
  309. margin: -6px 0 0 -6px;
  310. border: 2px solid transparent;
  311. border-top: 2px solid currentColor;
  312. border-radius: 50%;
  313. animation: spin 1s linear infinite;
  314. }
  315. @keyframes spin {
  316. 0% { transform: rotate(0deg); }
  317. 100% { transform: rotate(360deg); }
  318. }
  319. /* Success/Error States */
  320. .comment-admin-item.success {
  321. border-left-color: #28a745;
  322. background: #f8fff8;
  323. }
  324. .comment-admin-item.error {
  325. border-left-color: #dc3545;
  326. background: #fff8f8;
  327. }
  328. /* Bulk Actions */
  329. .bulk-actions {
  330. background: white;
  331. border: 1px solid #e9ecef;
  332. border-radius: 8px;
  333. padding: 1rem 1.5rem;
  334. margin-bottom: 1.5rem;
  335. display: flex;
  336. justify-content: space-between;
  337. align-items: center;
  338. flex-wrap: wrap;
  339. gap: 1rem;
  340. }
  341. .bulk-actions .form-group {
  342. display: flex;
  343. align-items: center;
  344. gap: 0.5rem;
  345. }
  346. .bulk-actions select {
  347. padding: 0.5rem;
  348. border: 1px solid #ced4da;
  349. border-radius: 4px;
  350. font-size: 0.875rem;
  351. }
  352. /* Comment Count Badge */
  353. .comment-count-badge {
  354. background: #007bff;
  355. color: white;
  356. padding: 0.25rem 0.5rem;
  357. border-radius: 12px;
  358. font-size: 0.75rem;
  359. font-weight: 600;
  360. margin-left: 0.5rem;
  361. }
  362. /* Search Box */
  363. .search-box {
  364. background: white;
  365. border: 1px solid #e9ecef;
  366. border-radius: 8px;
  367. padding: 1rem 1.5rem;
  368. margin-bottom: 1.5rem;
  369. }
  370. .search-box form {
  371. display: flex;
  372. gap: 1rem;
  373. align-items: center;
  374. flex-wrap: wrap;
  375. }
  376. .search-box input[type="text"] {
  377. flex: 1;
  378. min-width: 200px;
  379. padding: 0.5rem;
  380. border: 1px solid #ced4da;
  381. border-radius: 4px;
  382. font-size: 0.875rem;
  383. }
  384. .search-box input[type="text"]:focus {
  385. outline: none;
  386. border-color: #007bff;
  387. box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  388. }