index.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. @import url("../static/css/bootstrap.min.css");
  2. .row .x-sizes {
  3. margin-right: 20px;
  4. }
  5. .row .x-colors {
  6. margin-right: 20px;
  7. }
  8. #codeSource {
  9. height: 100px;
  10. }
  11. canvas {
  12. border: 1px solid #ddd;
  13. padding: 10px;
  14. }
  15. .x-logo {
  16. position: absolute;
  17. left: -10000px;
  18. top:-10000px;
  19. }
  20. hr.x-hr {
  21. margin: 2px 0;
  22. }
  23. #preview {
  24. padding: 5px;
  25. text-align: center;
  26. }
  27. .panel-heading .x-tips {
  28. font-size:12px;
  29. float: right;
  30. padding-bottom: 2px;
  31. border-bottom: 1px solid #ccc;
  32. cursor: default;
  33. }
  34. .panel-heading .x-tips:hover {
  35. border-bottom-color: #f00;
  36. }
  37. .panel-heading .x-tips i {
  38. color: #f00;
  39. }
  40. #_creset {
  41. font-size:12px;
  42. }
  43. .tips{
  44. color: #666;
  45. margin: 10px 0;
  46. font-size: 13px;
  47. line-height: 1.6;
  48. }
  49. table {
  50. width:100%;
  51. table-layout: fixed;
  52. }
  53. td {
  54. width:50%;
  55. vertical-align: top;
  56. }
  57. /* 现代化的内容区域样式 */
  58. .panel-body.mod-json {
  59. padding: 30px;
  60. background-color: #ffffff;
  61. }
  62. /* 输入区域样式 */
  63. .mod-textarea, #codeSource {
  64. width: 100%;
  65. border: 1px solid #e0e0e0;
  66. border-radius: 8px;
  67. padding: 15px;
  68. font-size: 14px;
  69. line-height: 1.6;
  70. background: #fafafa;
  71. transition: all 0.3s ease;
  72. box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  73. }
  74. .mod-textarea:focus, #codeSource:focus {
  75. background: #ffffff;
  76. border-color: #4a90e2;
  77. box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
  78. outline: none;
  79. }
  80. /* 操作区域样式 */
  81. .row.ui-mt-10 {
  82. background: #f8f9fa;
  83. padding: 20px;
  84. border-radius: 8px;
  85. margin-top: 20px !important;
  86. display: flex;
  87. align-items: center;
  88. flex-wrap: wrap;
  89. gap: 15px;
  90. }
  91. /* 输入框样式 */
  92. #opt_width, #opt_fc {
  93. border: 1px solid #e0e0e0;
  94. border-radius: 6px;
  95. padding: 8px 12px;
  96. font-size: 14px;
  97. background: #ffffff;
  98. transition: all 0.3s ease;
  99. }
  100. #opt_width:focus, #opt_fc:focus {
  101. border-color: #4a90e2;
  102. box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
  103. outline: none;
  104. }
  105. /* 单选框组样式 */
  106. .radio label {
  107. display: inline-flex;
  108. align-items: center;
  109. margin-right: 15px;
  110. font-size: 14px;
  111. color: #333;
  112. cursor: pointer;
  113. }
  114. .radio input[type="radio"] {
  115. margin-right: 4px;
  116. position: relative;
  117. top: -2px;
  118. }
  119. /* Style for the hint text to ensure its alignment */
  120. .hint-text {
  121. font-size: 12px;
  122. color: #666;
  123. display: inline-flex;
  124. align-items: center;
  125. margin-left: 5px;
  126. }
  127. /* If the '图标:' text is outside the label, ensure it's also aligned */
  128. .x-icons {
  129. display: inline-flex;
  130. align-items: center;
  131. }
  132. /* 生成按钮样式 */
  133. .btn-success {
  134. background: #4a90e2;
  135. border: none;
  136. border-radius: 6px;
  137. padding: 10px 20px;
  138. font-size: 14px;
  139. font-weight: 500;
  140. color: #fff;
  141. transition: all 0.3s ease;
  142. box-shadow: 0 2px 4px rgba(74,144,226,0.2);
  143. }
  144. .btn-success:hover {
  145. background: #357abd;
  146. box-shadow: 0 4px 8px rgba(74,144,226,0.3);
  147. transform: translateY(-1px);
  148. }
  149. /* 结果预览区域 */
  150. #preview {
  151. margin-top: 25px;
  152. padding: 25px;
  153. background: #ffffff;
  154. border-radius: 8px;
  155. box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  156. }
  157. /* 解码模式样式 */
  158. td .x-panel {
  159. height: 460px;
  160. background: #ffffff;
  161. border: 2px dashed #e0e0e0;
  162. border-radius: 8px;
  163. padding: 20px;
  164. margin-right: 15px;
  165. transition: all 0.3s ease;
  166. display: flex;
  167. flex-direction: column;
  168. justify-content: center;
  169. align-items: center;
  170. }
  171. td .x-panel:hover {
  172. border-color: #4a90e2;
  173. background: #f8f9fa;
  174. }
  175. td .x-panel .x-tips {
  176. margin-top: 20px;
  177. color: #666;
  178. font-size: 14px;
  179. line-height: 1.6;
  180. }
  181. #upload {
  182. background: #4a90e2;
  183. border-radius: 6px;
  184. padding: 12px 24px;
  185. font-size: 15px;
  186. color: #fff;
  187. text-decoration: none;
  188. transition: all 0.3s ease;
  189. box-shadow: 0 2px 4px rgba(74,144,226,0.2);
  190. }
  191. #upload:hover {
  192. background: #357abd;
  193. box-shadow: 0 4px 8px rgba(74,144,226,0.3);
  194. transform: translateY(-1px);
  195. }
  196. #decodePreview {
  197. max-width: 100%;
  198. max-height: 300px;
  199. margin: 15px 0;
  200. border-radius: 4px;
  201. object-fit: contain;
  202. }
  203. #decodeResult {
  204. height: 460px;
  205. padding: 15px;
  206. background: #fafafa;
  207. border: 1px solid #e0e0e0;
  208. border-radius: 8px;
  209. font-size: 14px;
  210. line-height: 1.6;
  211. resize: none;
  212. transition: all 0.3s ease;
  213. }
  214. #decodeResult:focus {
  215. background: #ffffff;
  216. border-color: #4a90e2;
  217. box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
  218. outline: none;
  219. }
  220. /* 保持原有的顶部导航样式 */
  221. .x-switch {
  222. font-size: 14px;
  223. font-weight: 500;
  224. color: #2563eb;
  225. cursor: pointer;
  226. text-decoration: none;
  227. border: none;
  228. margin-left: 70px;
  229. white-space: nowrap;
  230. margin-right: auto;
  231. padding: 8px 16px;
  232. border-radius: 20px;
  233. background-color: #eff6ff;
  234. transition: all 0.2s ease;
  235. position: relative;
  236. display: inline-flex;
  237. align-items: center;
  238. box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
  239. }
  240. .x-switch::before {
  241. content: '';
  242. display: inline-block;
  243. width: 18px;
  244. height: 18px;
  245. margin-right: 6px;
  246. background: url('../static/img/switch-mode.svg') no-repeat center center;
  247. background-size: contain;
  248. opacity: 0.8;
  249. transition: transform 0.3s ease;
  250. }
  251. .x-switch:hover {
  252. background-color: #dbeafe;
  253. color: #1d4ed8;
  254. text-decoration: none;
  255. box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
  256. transform: translateY(-1px);
  257. }
  258. .x-switch:hover::before {
  259. transform: rotate(180deg);
  260. opacity: 1;
  261. }
  262. form {
  263. display: none;
  264. }
  265. /* 三栏布局样式 */
  266. .qr-layout {
  267. display: flex;
  268. gap: 20px;
  269. padding: 20px;
  270. min-height: 500px;
  271. }
  272. .qr-left, .qr-center, .qr-right {
  273. background: #fff;
  274. border-radius: 8px;
  275. padding: 20px;
  276. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  277. }
  278. .qr-left {
  279. flex: 1.5;
  280. display: flex;
  281. flex-direction: column;
  282. background-color: #f8f9fa;
  283. }
  284. .qr-center {
  285. flex: 1;
  286. }
  287. .qr-right {
  288. flex: 1.5;
  289. background-color: #f8f9fa;
  290. }
  291. .section-title {
  292. font-size: 16px;
  293. font-weight: 500;
  294. color: #333;
  295. margin-bottom: 15px;
  296. padding-bottom: 10px;
  297. border-bottom: 1px solid #eee;
  298. display: flex;
  299. justify-content: space-between;
  300. align-items: center;
  301. }
  302. .action-buttons {
  303. display: flex;
  304. gap: 8px;
  305. }
  306. .btn-action {
  307. background-color: #e9ecef;
  308. border: none;
  309. border-radius: 4px;
  310. padding: 4px 10px;
  311. font-size: 12px;
  312. color: #495057;
  313. cursor: pointer;
  314. transition: background-color 0.2s ease;
  315. }
  316. .btn-action:hover {
  317. background-color: #ced4da;
  318. color: #212529;
  319. }
  320. /* Style for successful copy */
  321. .btn-action-success {
  322. background-color: #28a745 !important; /* Green background */
  323. color: #fff !important; /* White text */
  324. }
  325. /* 控制面板样式 */
  326. .control-panel {
  327. display: flex;
  328. flex-direction: column;
  329. gap: 20px;
  330. }
  331. .control-item {
  332. display: flex;
  333. align-items: center;
  334. gap: 10px;
  335. }
  336. .control-item label {
  337. min-width: 50px;
  338. color: #666;
  339. }
  340. /* 输入框样式优化 */
  341. .mod-textarea {
  342. flex: 1;
  343. min-height: 200px;
  344. margin: 0;
  345. resize: none;
  346. }
  347. /* 输入框样式 */
  348. #opt_width, #opt_fc {
  349. flex: 1;
  350. max-width: 120px;
  351. height: 36px;
  352. border: 1px solid #e0e0e0;
  353. border-radius: 6px;
  354. padding: 8px 12px;
  355. font-size: 14px;
  356. background: #ffffff;
  357. transition: all 0.3s ease;
  358. }
  359. /* 按钮容器样式 */
  360. .control-item:last-child {
  361. margin-top: 20px;
  362. justify-content: center;
  363. }
  364. /* 预览区域样式 */
  365. #preview {
  366. display: flex;
  367. justify-content: center;
  368. align-items: center;
  369. min-height: 260px;
  370. background: #fafafa;
  371. border-radius: 6px;
  372. padding: 20px;
  373. }
  374. /* 确保图标选择区域样式正确 */
  375. .x-icons {
  376. display: flex;
  377. align-items: center;
  378. gap: 10px;
  379. flex-wrap: wrap;
  380. }
  381. .radio label {
  382. display: inline-flex;
  383. align-items: center;
  384. gap: 4px;
  385. }
  386. .hint-text {
  387. color: #666;
  388. font-size: 12px;
  389. margin-left: 8px;
  390. }
  391. /* 解码器布局样式 */
  392. .qr-decoder-layout {
  393. display: flex;
  394. gap: 20px;
  395. padding: 20px;
  396. min-height: 500px;
  397. }
  398. .decoder-left, .decoder-right {
  399. flex: 1;
  400. background: #f8f9fa; /* Consistent background */
  401. border-radius: 8px;
  402. padding: 20px;
  403. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  404. display: flex;
  405. flex-direction: column;
  406. }
  407. .decoder-right {
  408. background: #fff; /* Keep right panel white or match left */
  409. }
  410. /* 上传面板样式 */
  411. .upload-panel {
  412. flex: 1;
  413. min-height: 300px;
  414. background: #fff;
  415. border: 2px dashed #e0e0e0;
  416. border-radius: 8px;
  417. padding: 20px;
  418. transition: all 0.3s ease;
  419. display: flex;
  420. flex-direction: column;
  421. justify-content: center;
  422. align-items: center;
  423. text-align: center;
  424. }
  425. .upload-panel:hover {
  426. border-color: #4a90e2;
  427. background: #fdfdfd;
  428. }
  429. .upload-instructions {
  430. margin-top: 20px;
  431. }
  432. .drag-drop-text {
  433. display: block;
  434. margin-top: 10px;
  435. color: #666;
  436. font-size: 14px;
  437. }
  438. /* 上传按钮 (#upload) 使用之前的现代样式 */
  439. #upload {
  440. background: #4a90e2;
  441. border-radius: 6px;
  442. padding: 12px 24px;
  443. font-size: 15px;
  444. color: #fff;
  445. text-decoration: none;
  446. transition: all 0.3s ease;
  447. box-shadow: 0 2px 4px rgba(74,144,226,0.2);
  448. border: none;
  449. display: inline-block;
  450. cursor: pointer;
  451. }
  452. #upload:hover {
  453. background: #357abd;
  454. box-shadow: 0 4px 8px rgba(74,144,226,0.3);
  455. transform: translateY(-1px);
  456. }
  457. /* 预览图片样式 */
  458. #decodePreview {
  459. max-width: 100%;
  460. max-height: 250px;
  461. margin-bottom: 15px;
  462. border-radius: 4px;
  463. object-fit: contain;
  464. }
  465. /* 解码结果文本域 (#decodeResult) 使用之前的 .mod-textarea 样式 */
  466. #decodeResult {
  467. flex: 1;
  468. /* Inherits styles from .mod-textarea */
  469. min-height: 300px; /* Ensure it takes available space */
  470. margin: 0; /* Reset margin */
  471. }
  472. /* 解码提示文字样式 */
  473. .decoder-tips {
  474. margin-top: 15px;
  475. font-size: 13px;
  476. color: #666;
  477. line-height: 1.6;
  478. }
  479. .decoder-tips i {
  480. font-style: normal;
  481. color: #333;
  482. font-weight: 500;
  483. }
  484. /* --- Top Navigation Bar --- */
  485. .panel-heading {
  486. padding: 10px 20px; /* Increased padding for more space */
  487. background-color: #ffffff; /* Keep white or use a very light grey like #f8f9fa */
  488. border-bottom: 1px solid #dee2e6; /* Lighter, softer border color */
  489. }
  490. .panel-title {
  491. font-size: 16px;
  492. font-weight: 600; /* Slightly bolder title */
  493. display: flex;
  494. align-items: center;
  495. color: #212529; /* Darker text color */
  496. }
  497. .title-text-wrapper {
  498. display: inline-block;
  499. white-space: nowrap;
  500. }
  501. .panel-title .x-a-high {
  502. color: #212529; /* Match title color */
  503. text-decoration: none;
  504. display: inline-flex;
  505. align-items: center;
  506. font-weight: 600; /* Match title weight */
  507. }
  508. .panel-title .x-a-high img {
  509. vertical-align: middle;
  510. margin-right: 6px; /* Slightly more space */
  511. height: 18px;
  512. }
  513. /* Style for the mode switch button */
  514. .x-switch {
  515. font-size: 13px;
  516. color: #007bff; /* Standard blue */
  517. cursor: pointer;
  518. text-decoration: none;
  519. border-bottom: none;
  520. font-weight: 500;
  521. margin-left: 70px;
  522. white-space: nowrap;
  523. margin-right: auto;
  524. padding: 4px 8px; /* Add some padding */
  525. border-radius: 4px; /* Rounded corners */
  526. transition: background-color 0.2s ease, color 0.2s ease; /* Smooth transition */
  527. }
  528. .x-switch:hover {
  529. background-color: #e9ecef; /* Subtle background on hover */
  530. color: #0056b3; /* Darker blue on hover */
  531. text-decoration: none; /* Remove underline on hover */
  532. }
  533. /* Style for the "Explore More Tools" button */
  534. .panel-title>a.x-other-tools {
  535. margin: 0; /* Reset margin */
  536. font-size: 12px; /* Slightly smaller */
  537. cursor: pointer;
  538. text-decoration: none;
  539. -webkit-user-select: none;
  540. user-select: none;
  541. color: #495057; /* Grey text */
  542. background-color: #f8f9fa; /* Light grey background */
  543. padding: 6px 12px; /* Adjusted padding */
  544. border-radius: 6px; /* Standard rounded corners */
  545. border: 1px solid #dee2e6; /* Match border color */
  546. transition: all 0.2s ease;
  547. display: inline-flex;
  548. align-items: center;
  549. white-space: nowrap;
  550. }
  551. .panel-title>a.x-other-tools .icon-plus-circle {
  552. display: inline-block;
  553. width: 14px; /* Slightly smaller icon */
  554. height: 14px;
  555. background: url(../static/img/plus-circle.svg) no-repeat center center;
  556. background-size: contain;
  557. margin-right: 4px;
  558. }
  559. .panel-title>a.x-other-tools .tool-market-badge {
  560. display: inline-block;
  561. background-color: #007bff; /* Match theme blue */
  562. color: white;
  563. padding: 2px 7px;
  564. border-radius: 4px; /* Slightly less round */
  565. margin-left: 6px;
  566. font-size: 11px; /* Smaller badge text */
  567. font-weight: 500;
  568. }
  569. .panel-title>a.x-other-tools:hover {
  570. color: #212529;
  571. background-color: #e9ecef;
  572. border-color: #ced4da;
  573. box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  574. transform: none; /* Remove translateY */
  575. }
  576. .title-text-wrapper-text {
  577. margin-left: 10px;
  578. position: relative;
  579. top: -4px;
  580. font-weight: normal;
  581. }