style.css 7.7 KB

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