add.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. header {
  2. font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
  3. font-size: 13px;
  4. color: white;
  5. height: 30px;
  6. }
  7. .header-top {
  8. color: white;
  9. }
  10. .dashboard #content {
  11. width: 100%;
  12. margin-right: 0px;
  13. margin-left: 0px;
  14. }
  15. #submit {
  16. border: 1px solid rgba(0, 0, 0, 0.2);
  17. padding: 10px;
  18. border-radius: 4px;
  19. background-color: #f5dd5d;
  20. color: #333;
  21. font-size: 18px;
  22. font-weight: 800;
  23. }
  24. #add-form button[role="submit"]:hover {
  25. background-color: #e5cd4d;
  26. }
  27. #add-form label {
  28. display: block;
  29. font-size: 16px;
  30. }
  31. #add-form textarea {
  32. width: 100%;
  33. min-height: 300px;
  34. }
  35. #delay-warning div {
  36. border: 1px solid red;
  37. border-radius: 4px;
  38. margin: 10px;
  39. padding: 10px;
  40. font-size: 15px;
  41. background-color: #8bc34a;
  42. }
  43. #stdout {
  44. background-color: #fbfbfb;
  45. padding: 10px 10px;
  46. border-radius: 4px;
  47. white-space: normal;
  48. }
  49. ul#id_depth {
  50. list-style-type: none;
  51. padding: 0;
  52. }
  53. @keyframes spin {
  54. 0% {
  55. transform: rotate(0deg);
  56. }
  57. 100% {
  58. transform: rotate(360deg);
  59. }
  60. }
  61. .loader {
  62. border: 16px solid #f3f3f3; /* Light grey */
  63. border-top: 16px solid #3498db; /* Blue */
  64. border-radius: 50%;
  65. width: 30px;
  66. height: 30px;
  67. box-sizing: border-box;
  68. animation: spin 2s linear infinite;
  69. }
  70. textarea, select, input[type="text"] {
  71. border-radius: 4px;
  72. border: 2px solid #004882;
  73. box-shadow: 4px 4px 4px rgba(0,0,0,0.02);
  74. width: 100%;
  75. padding: 8px 12px;
  76. font-size: 14px;
  77. }
  78. textarea {
  79. min-height: 300px;
  80. }
  81. textarea[rows="3"] {
  82. min-height: 80px;
  83. }
  84. select {
  85. min-height: 40px;
  86. }
  87. /* Crawl explanation box */
  88. .crawl-explanation {
  89. background-color: #e8f4f8;
  90. border-left: 4px solid #004882;
  91. padding: 15px 20px;
  92. margin-bottom: 20px;
  93. border-radius: 4px;
  94. }
  95. .crawl-explanation p {
  96. margin: 0;
  97. line-height: 1.6;
  98. color: #333;
  99. }
  100. /* Form sections */
  101. .form-section {
  102. margin-bottom: 30px;
  103. padding: 20px;
  104. background-color: #f9f9f9;
  105. border-radius: 8px;
  106. }
  107. .form-section h3 {
  108. margin-top: 0;
  109. margin-bottom: 15px;
  110. color: #004882;
  111. font-size: 18px;
  112. }
  113. .section-description {
  114. margin: 0 0 15px 0;
  115. color: #666;
  116. font-size: 14px;
  117. line-height: 1.5;
  118. }
  119. .section-description a {
  120. color: #004882;
  121. text-decoration: none;
  122. font-weight: 500;
  123. }
  124. .section-description a:hover {
  125. text-decoration: underline;
  126. }
  127. .help-text code {
  128. background-color: #f5f5f5;
  129. padding: 2px 6px;
  130. border-radius: 3px;
  131. font-family: monospace;
  132. font-size: 12px;
  133. color: #333;
  134. }
  135. .form-field {
  136. margin-bottom: 20px;
  137. }
  138. .form-field label {
  139. display: block;
  140. font-size: 16px;
  141. font-weight: 600;
  142. margin-bottom: 8px;
  143. }
  144. .form-field .help-text {
  145. font-size: 12px;
  146. color: #666;
  147. margin-top: 4px;
  148. font-style: italic;
  149. }
  150. .form-field .error {
  151. color: #ba2121;
  152. font-size: 13px;
  153. margin-top: 4px;
  154. }
  155. /* Checkbox fields (for overwrite, update, index_only) */
  156. .checkbox-field {
  157. display: flex;
  158. align-items: center;
  159. gap: 10px;
  160. }
  161. .checkbox-field input[type="checkbox"] {
  162. width: auto;
  163. margin: 0;
  164. }
  165. .checkbox-field label {
  166. margin: 0;
  167. font-weight: normal;
  168. }
  169. /* URL Counter */
  170. .url-counter {
  171. display: inline-block;
  172. margin-top: 8px;
  173. padding: 4px 10px;
  174. font-size: 13px;
  175. font-weight: 600;
  176. color: #666;
  177. background-color: #f5f5f5;
  178. border-radius: 4px;
  179. border: 1px solid #ddd;
  180. }
  181. .url-counter-positive {
  182. color: #155724;
  183. background-color: #d4edda;
  184. border-color: #c3e6cb;
  185. }
  186. /* Plugin Presets */
  187. .plugin-presets {
  188. display: flex;
  189. flex-wrap: wrap;
  190. align-items: center;
  191. gap: 8px;
  192. margin-bottom: 20px;
  193. padding: 15px;
  194. background-color: #f8f9fa;
  195. border: 1px solid #dee2e6;
  196. border-radius: 6px;
  197. }
  198. .preset-label {
  199. font-weight: 600;
  200. color: #495057;
  201. margin-right: 8px;
  202. }
  203. .preset-btn {
  204. padding: 6px 14px;
  205. font-size: 13px;
  206. font-weight: 500;
  207. background-color: white;
  208. border: 1px solid #ced4da;
  209. border-radius: 4px;
  210. cursor: pointer;
  211. transition: all 0.2s;
  212. white-space: nowrap;
  213. }
  214. .preset-btn:hover {
  215. background-color: #e9ecef;
  216. border-color: #adb5bd;
  217. transform: translateY(-1px);
  218. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  219. }
  220. .preset-btn:active {
  221. transform: translateY(0);
  222. box-shadow: none;
  223. }
  224. /* Plugin groups */
  225. .plugin-group {
  226. margin-bottom: 20px;
  227. padding: 15px;
  228. background-color: white;
  229. border: 1px solid #ddd;
  230. border-radius: 6px;
  231. }
  232. .plugin-group-header {
  233. display: flex;
  234. justify-content: space-between;
  235. align-items: center;
  236. margin-bottom: 12px;
  237. padding-bottom: 8px;
  238. border-bottom: 2px solid #004882;
  239. }
  240. .plugin-group-header label {
  241. font-size: 15px;
  242. font-weight: 700;
  243. color: #004882;
  244. margin: 0;
  245. }
  246. .select-all-btn {
  247. padding: 4px 12px;
  248. font-size: 12px;
  249. background-color: #f0f0f0;
  250. border: 1px solid #ccc;
  251. border-radius: 4px;
  252. cursor: pointer;
  253. transition: background-color 0.2s;
  254. }
  255. .select-all-btn:hover {
  256. background-color: #e0e0e0;
  257. }
  258. .plugin-checkboxes {
  259. display: grid;
  260. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  261. gap: 8px;
  262. }
  263. .plugin-checkboxes ul {
  264. list-style-type: none;
  265. padding: 0;
  266. margin: 0;
  267. display: contents;
  268. }
  269. .plugin-checkboxes li {
  270. display: flex;
  271. align-items: center;
  272. gap: 8px;
  273. padding: 6px;
  274. border-radius: 4px;
  275. transition: background-color 0.2s;
  276. }
  277. .plugin-checkboxes li:hover {
  278. background-color: #f5f5f5;
  279. }
  280. .plugin-checkboxes input[type="checkbox"] {
  281. margin: 0;
  282. width: auto;
  283. }
  284. .plugin-checkboxes label {
  285. margin: 0;
  286. font-size: 14px;
  287. font-weight: normal;
  288. cursor: pointer;
  289. }
  290. /* Advanced section (collapsible) */
  291. .advanced-section {
  292. background-color: white;
  293. border: 1px solid #ddd;
  294. border-radius: 6px;
  295. padding: 15px;
  296. }
  297. .advanced-section summary {
  298. cursor: pointer;
  299. user-select: none;
  300. list-style: none;
  301. }
  302. .advanced-section summary::-webkit-details-marker {
  303. display: none;
  304. }
  305. .advanced-section summary h3 {
  306. display: inline-block;
  307. margin: 0;
  308. color: #004882;
  309. }
  310. .advanced-section summary h3:before {
  311. content: '▶ ';
  312. display: inline-block;
  313. transition: transform 0.2s;
  314. }
  315. .advanced-section[open] summary h3:before {
  316. transform: rotate(90deg);
  317. }
  318. .advanced-section summary:hover {
  319. color: #003060;
  320. }
  321. .advanced-section[open] .form-field {
  322. margin-top: 20px;
  323. }
  324. /* Depth radio buttons */
  325. ul#id_depth li {
  326. margin-bottom: 8px;
  327. }
  328. /* Focus indicators for accessibility */
  329. input:focus, select:focus, textarea:focus, button:focus {
  330. outline: 3px solid #4A90E2;
  331. outline-offset: 2px;
  332. }
  333. /* Responsive layout */
  334. @media (max-width: 768px) {
  335. .plugin-checkboxes {
  336. grid-template-columns: 1fr;
  337. }
  338. .plugin-group-header {
  339. flex-direction: column;
  340. align-items: flex-start;
  341. gap: 10px;
  342. }
  343. .plugin-presets {
  344. flex-direction: column;
  345. align-items: stretch;
  346. }
  347. .preset-label {
  348. margin-bottom: 4px;
  349. }
  350. .preset-btn {
  351. width: 100%;
  352. text-align: center;
  353. }
  354. }