style.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. body {
  2. background-color: #dee3e7;
  3. color: black;
  4. text-align: center;
  5. font-family: sans-serif;
  6. padding: 0;
  7. margin: 0;
  8. }
  9. dialog {
  10. box-shadow: 0 0 6px 0 #444;
  11. max-width: 600px;
  12. text-align: left;
  13. padding: 1em;
  14. }
  15. fieldset {
  16. padding: 0;
  17. }
  18. fieldset#root-group {
  19. display: grid;
  20. grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  21. grid-template-rows: auto auto auto auto;
  22. grid-gap: 1em;
  23. text-align: center;
  24. border: 0;
  25. }
  26. #sidebar-toggle-wrapper {
  27. display: inline;
  28. }
  29. h1 {
  30. display: inline;
  31. font-size: small;
  32. padding-left: .5em;
  33. }
  34. #sidebar-toggler-button {
  35. top: 1em;
  36. left: 0.5em;
  37. height: 2em;
  38. width: 2em;
  39. background-color: white;
  40. text-align: center;
  41. display: inline-grid;
  42. place-items: center;
  43. padding: .2em;
  44. box-shadow: 0 0 5px 0 #444;
  45. color: #666;
  46. }
  47. #sidebar-toggler-button:hover,
  48. #sidebar-toggler-button:focus {
  49. color: black;
  50. cursor: pointer;
  51. }
  52. footer,
  53. footer a {
  54. color: black;
  55. }
  56. aside {
  57. position: absolute;
  58. width: 180px;
  59. height: 100%;
  60. left: 0;
  61. top: 0;
  62. padding-top: 4em;
  63. transition: 0.5s ease;
  64. background-color: white;
  65. border: 0 0 10px 0;
  66. box-shadow: 0 0 10px 0 #444;
  67. z-index: 3;
  68. }
  69. input:checked ~ aside {
  70. left: -250px;
  71. }
  72. aside ul {
  73. margin: 0;
  74. padding: 0;
  75. }
  76. aside ul li {
  77. list-style: none;
  78. text-align: left;
  79. border-bottom: 1px inset black;
  80. }
  81. aside ul li a {
  82. display: block;
  83. padding-left: 1em;
  84. padding-top: 0.5em;
  85. padding-bottom: 0.5em;
  86. }
  87. aside ul li a:hover {
  88. color: black;
  89. background-color: #efefef;
  90. cursor: pointer;
  91. }
  92. table {
  93. background-color: white;
  94. border-collapse: collapse;
  95. width: 100%;
  96. box-shadow: 0 0 5px 0 #444;
  97. }
  98. th,
  99. td {
  100. border: 1px solid #efefef;
  101. text-align: left;
  102. padding: 0.6em;
  103. }
  104. th:first-child {
  105. width: 5%;
  106. }
  107. tr:hover td {
  108. background-color: beige;
  109. }
  110. legend {
  111. padding-top: 1em;
  112. }
  113. span[role="icon"] {
  114. display: block;
  115. font-size: 3em;
  116. vertical-align: middle;
  117. }
  118. .action-header span[role="icon"],
  119. tr.log-row span[role="icon"] {
  120. display: inline-block;
  121. padding-right: 0.2em;
  122. }
  123. .error {
  124. background-color: salmon;
  125. }
  126. div.error {
  127. padding: 1em;
  128. }
  129. .title.temporary-status-message {
  130. color: gray;
  131. }
  132. div.entity {
  133. background-color: white;
  134. box-shadow: 0 0 10px 0 #444;
  135. display: grid;
  136. grid-column: auto / span 2;
  137. grid-row: auto / span 2;
  138. grid-template-rows: auto min-content;
  139. grid-template-columns: minmax(min-content, auto);
  140. }
  141. h2 {
  142. margin-top: 0;
  143. font-size: 1em;
  144. display: inline-block;
  145. }
  146. div.entity h2 {
  147. grid-column: 1 / span all;
  148. }
  149. details {
  150. display: inline-block;
  151. }
  152. details[open] {
  153. margin-top: 1em;
  154. display: block;
  155. }
  156. /* General Buttons */
  157. button,
  158. input[type="submit"]
  159. {
  160. padding: 1em;
  161. color: black;
  162. text-align: center;
  163. border: 1px solid #999;
  164. background-color: white;
  165. box-shadow: 0 0 6px 0 #aaa;
  166. user-select: none;
  167. }
  168. /* Action Buttons */
  169. action-button {
  170. display: flex;
  171. flex-direction: column;
  172. }
  173. action-button button {
  174. width: 100%;
  175. flex-grow: 1;
  176. z-index: 2;
  177. }
  178. action-button details {
  179. flex-grow: 1;
  180. }
  181. action-button details[open] {
  182. margin-top: 0;
  183. }
  184. action-button details summary div {
  185. display: inline-flex;
  186. }
  187. action-button details summary div span:first-child {
  188. flex-grow: 1;
  189. }
  190. .action-button-footer {
  191. display: flex;
  192. text-align: left;
  193. font-size: smaller;
  194. background-color: #efefef;
  195. border-top: 0;
  196. border-left: 1px solid #666;
  197. border-right: 1px solid #666;
  198. border-bottom: 1px solid #666;
  199. overflow: scroll;
  200. }
  201. execution-button {
  202. display: inline-block;
  203. margin-right: .2em;
  204. margin-left: .2em;
  205. margin-top: .2em;
  206. }
  207. execution-button button {
  208. margin-top: 0.2em;
  209. margin-bottom: 0.2em;
  210. }
  211. /* Button states */
  212. button:hover,
  213. input[type="submit"]:hover {
  214. box-shadow: 0 0 10px 0 #666;
  215. cursor: pointer;
  216. }
  217. button:focus,
  218. input[type="submit"]:focus {
  219. outline: 1px solid black;
  220. }
  221. button:disabled,
  222. input[type="submit"]:disabled {
  223. color: gray;
  224. background-color: #333;
  225. cursor: not-allowed;
  226. }
  227. /* Button animations */
  228. .action-failed {
  229. transition: 1s;
  230. background-color: red;
  231. }
  232. .action-success {
  233. transition: 1s;
  234. background-color: limegreen;
  235. }
  236. .action-nonzero-exit {
  237. animation: kf-action-nonzero-exit 1s;
  238. transition: 1s;
  239. background-color: orange;
  240. }
  241. .action-timeout {
  242. transition: 1s;
  243. background-color: cyan;
  244. }
  245. .action-blocked {
  246. transition: 1s;
  247. background-color: purple;
  248. }
  249. img.logo {
  250. width: 1em;
  251. height: 1em;
  252. vertical-align: middle;
  253. }
  254. main {
  255. padding: 1em;
  256. padding-top: 3em;
  257. }
  258. summary {
  259. cursor: pointer;
  260. }
  261. form div.wrapper {
  262. background-color: white;
  263. text-align: left;
  264. }
  265. label {
  266. min-width: 20%;
  267. text-align: right;
  268. display: inline-block;
  269. padding-right: 1em;
  270. }
  271. #perma-widget {
  272. position: absolute;
  273. top: 1em;
  274. left: 1em;
  275. z-index: 9;
  276. }
  277. #perma-widget label {
  278. display: inline;
  279. }
  280. input {
  281. padding: 0.6em;
  282. }
  283. input:invalid {
  284. outline: 2px solid red;
  285. }
  286. form .wrapper span.icon {
  287. display: inline-block;
  288. vertical-align: middle;
  289. }
  290. form input[type="submit"]:first-child {
  291. margin-right: 1em;
  292. }
  293. button[name="cancel"]:hover {
  294. background-color: salmon;
  295. color: black;
  296. }
  297. input[name="start"]:hover {
  298. background-color: #aceaac;
  299. color: black;
  300. }
  301. span.argument-description {
  302. margin-left: 1em;
  303. }
  304. p.argument-wrapper {
  305. display: flex;
  306. }
  307. form div.buttons {
  308. text-align: right;
  309. }
  310. pre {
  311. border: 1px solid gray;
  312. padding: 1em;
  313. min-height: 1em;
  314. }
  315. td.exit-code {
  316. text-align: center;
  317. }
  318. input.invalid {
  319. background-color: salmon;
  320. }
  321. #available-version {
  322. background-color: #aceaac;
  323. padding: 0.2em;
  324. border-radius: 1em;
  325. }
  326. span.tag {
  327. background-color: lightgray;
  328. border-radius: 0.6em;
  329. padding: 0.2em;
  330. }
  331. div.toolbar {
  332. padding: .4em;
  333. text-align: left;
  334. background-color: #efefef;
  335. border: 1px solid #999;
  336. border-bottom: 0;
  337. display: flex;
  338. flex-direction: row;
  339. }
  340. div.toolbar * {
  341. margin-right: 1em;
  342. }
  343. @media screen and (width <= 600px) {
  344. label {
  345. text-align: left;
  346. margin-bottom: .6em;
  347. font-weight: bold;
  348. min-width: auto;
  349. }
  350. p.argument-wrapper {
  351. flex-direction: column;
  352. }
  353. span.argument-description {
  354. margin-left: 0;
  355. margin-top: .6em;
  356. }
  357. }
  358. @media (prefers-color-scheme: dark) {
  359. body {
  360. background-color: #333;
  361. color: white;
  362. }
  363. dialog {
  364. background-color: #222;
  365. color: white;
  366. }
  367. form div.wrapper {
  368. background-color: #222;
  369. }
  370. button,
  371. input[type="submit"],
  372. #sidebar-toggler-button {
  373. border: 1px solid #666;
  374. background-color: #222;
  375. box-shadow: 0 0 6px 0 #444;
  376. color: white;
  377. }
  378. #sidebar-toggler-button:focus,
  379. #sidebar-toggler-button:hover
  380. {
  381. color: white;
  382. }
  383. aside {
  384. background-color: #111;
  385. color: white;
  386. }
  387. footer,
  388. footer a {
  389. color: gray;
  390. }
  391. aside ul li a:hover {
  392. background-color: #666;
  393. color: white;
  394. }
  395. .action-button-footer {
  396. background-color: #111;
  397. }
  398. button:disabled {
  399. background-color: black;
  400. }
  401. table,
  402. td,
  403. th {
  404. border: 1px solid gray;
  405. }
  406. td,
  407. tr {
  408. background-color: #222;
  409. color: white;
  410. }
  411. tr:hover td {
  412. background-color: #666;
  413. }
  414. div.toolbar {
  415. background-color: black;
  416. }
  417. }