index.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. @import url("../static/css/bootstrap.min.css");
  2. .wrapper {
  3. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  4. }
  5. .panel-heading h3 {
  6. font-weight: 600;
  7. }
  8. .panel-body {
  9. padding-top: 20px;
  10. }
  11. .row {
  12. margin-bottom: 15px;
  13. }
  14. .input-group {
  15. display: flex;
  16. align-items: center;
  17. margin-top: 10px;
  18. }
  19. .row.x-tips {
  20. font-size: 13px;
  21. color: #6c757d;
  22. font-style: normal;
  23. background-color: #f8f9fa;
  24. padding: 10px 15px;
  25. border-radius: 4px;
  26. line-height: 1.6;
  27. margin-bottom: 20px;
  28. max-width: 800px;
  29. margin-left: auto;
  30. margin-right: auto;
  31. }
  32. .row h4 {
  33. font-size: 18px;
  34. border-bottom: 1px solid #e9ecef;
  35. padding-bottom: 8px;
  36. margin: 25px 0 0;
  37. font-weight: 500;
  38. width: 100%;
  39. }
  40. .col-input {
  41. flex: 1;
  42. max-width: 250px;
  43. margin-right: 10px;
  44. border-radius: 4px;
  45. border: 1px solid #ced4da;
  46. padding: 8px 12px;
  47. transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  48. }
  49. .col-input:focus {
  50. border-color: #80bdff;
  51. outline: 0;
  52. box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  53. }
  54. .input-group label {
  55. margin-right: 8px;
  56. font-weight: 500;
  57. width: 40px;
  58. text-align: right;
  59. color: #495057;
  60. flex-shrink: 0;
  61. }
  62. .input-group label[for^="from"] {
  63. /* Style for primary input labels if needed */
  64. }
  65. .input-group label:not([for]) {
  66. width: auto;
  67. margin-left: 5px;
  68. margin-right: 5px;
  69. text-align: left;
  70. font-weight: normal;
  71. }
  72. .input-group label[for$="_placeholder"],
  73. .input-group span.col-input,
  74. .input-group .transparent-bg {
  75. visibility: hidden;
  76. }
  77. .input-group .transparent-bg {
  78. background: repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 50% / 10px 10px;
  79. visibility: visible;
  80. opacity: 0.5;
  81. }
  82. .demo-color {
  83. display: inline-block;
  84. width: 30px;
  85. height: 30px;
  86. border: 1px solid #adb5bd;
  87. border-radius: 4px;
  88. vertical-align: middle;
  89. flex-shrink: 0;
  90. margin-left: 5px;
  91. }
  92. .x-xlabel {
  93. margin-left: 10px;
  94. width: auto;
  95. text-align: left;
  96. }
  97. .spacer {
  98. width: 20px;
  99. flex-shrink: 0;
  100. }
  101. .btn-copy {
  102. padding: 4px 8px;
  103. font-size: 12px;
  104. margin-left: 5px;
  105. cursor: pointer;
  106. background-color: #f8f9fa;
  107. border: 1px solid #ced4da;
  108. border-radius: 4px;
  109. color: #495057;
  110. line-height: 1;
  111. height: 30px;
  112. flex-shrink: 0;
  113. }
  114. .btn-copy:hover {
  115. background-color: #e2e6ea;
  116. border-color: #adb5bd;
  117. }
  118. .btn-copy:active {
  119. background-color: #d6dade;
  120. }
  121. .alpha-slider-row {
  122. display: flex;
  123. align-items: center;
  124. margin-top: 25px;
  125. }
  126. .alpha-slider-row label {
  127. width: auto;
  128. margin-right: 15px;
  129. flex-shrink: 0;
  130. text-align: left;
  131. }
  132. .alpha-slider {
  133. flex-grow: 1;
  134. cursor: pointer;
  135. height: 8px;
  136. background: linear-gradient(to right, transparent, #6c757d);
  137. border-radius: 4px;
  138. outline: none;
  139. -webkit-appearance: none;
  140. appearance: none;
  141. border: 1px solid #ced4da;
  142. }
  143. .alpha-slider::-webkit-slider-thumb {
  144. -webkit-appearance: none;
  145. appearance: none;
  146. width: 16px;
  147. height: 16px;
  148. background: #007bff;
  149. border-radius: 50%;
  150. cursor: pointer;
  151. border: 2px solid #fff;
  152. box-shadow: 0 0 2px rgba(0,0,0,0.5);
  153. }
  154. .alpha-slider::-moz-range-thumb {
  155. width: 14px;
  156. height: 14px;
  157. background: #007bff;
  158. border-radius: 50%;
  159. cursor: pointer;
  160. border: 2px solid #fff;
  161. box-shadow: 0 0 2px rgba(0,0,0,0.5);
  162. }
  163. .alpha-value {
  164. margin-left: 15px;
  165. font-weight: 500;
  166. color: #495057;
  167. min-width: 40px;
  168. text-align: right;
  169. }
  170. .ui-mt-20 h4 {
  171. margin-top: 40px;
  172. }
  173. input[readonly] {
  174. background-color: #e9ecef;
  175. cursor: default;
  176. }
  177. ::placeholder {
  178. color: #adb5bd;
  179. opacity: 1;
  180. }
  181. :-ms-input-placeholder {
  182. color: #adb5bd;
  183. }
  184. ::-ms-input-placeholder {
  185. color: #adb5bd;
  186. }
  187. /* Global Alpha Slider Styles (at the top) */
  188. .global-alpha-slider {
  189. display: flex;
  190. align-items: center;
  191. margin-bottom: 25px;
  192. padding: 10px 15px;
  193. background-color: #f8f9fa;
  194. border-radius: 4px;
  195. max-width: 800px;
  196. margin-left: auto;
  197. margin-right: auto;
  198. }
  199. .global-alpha-slider label {
  200. width: auto;
  201. margin-right: 15px;
  202. flex-shrink: 0;
  203. text-align: left;
  204. }
  205. .global-alpha-slider input {
  206. flex-grow: 1;
  207. cursor: pointer;
  208. height: 8px;
  209. background: linear-gradient(to right, transparent, #6c757d);
  210. border-radius: 4px;
  211. outline: none;
  212. -webkit-appearance: none;
  213. appearance: none;
  214. border: 1px solid #ced4da;
  215. }
  216. .global-alpha-slider input::-webkit-slider-thumb {
  217. -webkit-appearance: none;
  218. appearance: none;
  219. width: 16px;
  220. height: 16px;
  221. background: #007bff;
  222. border-radius: 50%;
  223. cursor: pointer;
  224. border: 2px solid #fff;
  225. box-shadow: 0 0 2px rgba(0,0,0,0.5);
  226. }
  227. .global-alpha-slider input::-moz-range-thumb {
  228. width: 14px;
  229. height: 14px;
  230. background: #007bff;
  231. border-radius: 50%;
  232. cursor: pointer;
  233. border: 2px solid #fff;
  234. box-shadow: 0 0 2px rgba(0,0,0,0.5);
  235. }
  236. .global-alpha-slider .alpha-value {
  237. margin-left: 15px;
  238. font-weight: 500;
  239. color: #495057;
  240. min-width: 40px;
  241. text-align: right;
  242. }
  243. /* Modules Grid Layout */
  244. .modules-grid {
  245. display: grid;
  246. grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive: 1 or 2 columns */
  247. gap: 25px; /* Increased gap */
  248. }
  249. .color-module {
  250. border: 1px solid #dee2e6; /* Slightly darker border */
  251. border-radius: 8px; /* More rounded corners */
  252. padding: 20px; /* Increased padding */
  253. background-color: #ffffff; /* Ensure white background */
  254. box-shadow: 0 4px 8px rgba(0,0,0,0.06); /* Enhanced shadow */
  255. transition: box-shadow 0.2s ease-in-out;
  256. }
  257. .color-module:hover {
  258. box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  259. }
  260. .color-module h4 {
  261. font-size: 15px; /* Slightly smaller */
  262. font-weight: 600;
  263. margin-top: 0;
  264. margin-bottom: 18px; /* Increased margin */
  265. padding-bottom: 10px; /* Increased padding */
  266. border-bottom: 1px solid #e9ecef;
  267. color: #343a40;
  268. }
  269. .color-module h5 {
  270. font-size: 13px; /* Slightly smaller */
  271. font-weight: 500;
  272. margin-top: 25px; /* Increased margin */
  273. margin-bottom: 12px; /* Increased margin */
  274. color: #495057;
  275. text-transform: uppercase;
  276. letter-spacing: 0.5px;
  277. }
  278. /* Input/Output group styling within modules */
  279. .color-module .input-group,
  280. .color-module .output-group {
  281. display: flex;
  282. align-items: center;
  283. margin-bottom: 12px; /* Increased margin */
  284. margin-top: 0;
  285. }
  286. .color-module .primary-input {
  287. margin-bottom: 15px; /* More space after primary input */
  288. }
  289. .color-module .output-group:last-child {
  290. margin-bottom: 0;
  291. }
  292. .color-module label {
  293. width: 40px; /* Adjusted width */
  294. margin-right: 8px; /* Adjusted margin */
  295. font-size: 13px;
  296. color: #6c757d;
  297. text-align: right;
  298. flex-shrink: 0;
  299. }
  300. .color-module .primary-input label[for] {
  301. font-weight: 600;
  302. color: #343a40;
  303. }
  304. /* Special label for preview in primary input */
  305. .color-module .primary-input label:not([for]) {
  306. width: auto;
  307. margin-left: 8px; /* Adjusted margin */
  308. margin-right: 8px; /* Adjusted margin */
  309. text-align: left;
  310. font-weight: normal;
  311. color: #6c757d;
  312. }
  313. .color-module .col-input, /* Primary input */
  314. .color-module .col-output /* Output inputs */
  315. {
  316. flex-grow: 1;
  317. margin-right: 8px; /* Adjusted margin */
  318. font-size: 13px;
  319. padding: 8px 12px; /* Adjusted padding */
  320. border-radius: 4px;
  321. border: 1px solid #ced4da;
  322. }
  323. /* Style Primary Input */
  324. .color-module .col-input {
  325. transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  326. }
  327. .color-module .col-input:focus {
  328. border-color: #80bdff;
  329. outline: 0;
  330. box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  331. }
  332. /* Style Output Inputs */
  333. .color-module .col-output {
  334. background-color: #f1f3f5; /* Lighter gray for output */
  335. cursor: text; /* Allow text selection */
  336. font-family: Consolas, Monaco, monospace;
  337. }
  338. .color-module .demo-color {
  339. width: 30px;
  340. height: 30px;
  341. margin-left: 0; /* Remove margin, handled by label */
  342. flex-shrink: 0;
  343. border-radius: 4px;
  344. border: 1px solid #adb5bd;
  345. display: inline-block;
  346. }
  347. .color-module .btn-copy {
  348. height: 30px; /* Match input height */
  349. padding: 6px 10px;
  350. margin-left: 0;
  351. flex-shrink: 0;
  352. font-size: 12px;
  353. cursor: pointer;
  354. background-color: #e9ecef; /* Button color */
  355. border: 1px solid #ced4da;
  356. border-radius: 4px;
  357. color: #495057;
  358. line-height: 1;
  359. }
  360. .color-module .btn-copy:hover {
  361. background-color: #dee2e6;
  362. border-color: #adb5bd;
  363. }
  364. .color-module .btn-copy:active {
  365. background-color: #ced4da;
  366. }