4
0

style.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  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. border-radius: .7em;
  215. }
  216. action-button details {
  217. flex-grow: 1;
  218. }
  219. action-button details[open] {
  220. margin-top: 0;
  221. }
  222. action-button details summary div {
  223. display: inline-flex;
  224. }
  225. action-button details summary div span:first-child {
  226. flex-grow: 1;
  227. }
  228. .action-button-footer {
  229. text-align: left;
  230. font-size: smaller;
  231. overflow: auto;
  232. }
  233. execution-button {
  234. display: inline-block;
  235. margin-right: .2em;
  236. margin-left: .2em;
  237. margin-top: .2em;
  238. }
  239. execution-button button {
  240. margin-top: 0.2em;
  241. margin-bottom: 0.2em;
  242. }
  243. /* Button states */
  244. button:hover,
  245. input[type="submit"]:hover {
  246. box-shadow: 0 0 10px 0 #666;
  247. cursor: pointer;
  248. }
  249. button:focus,
  250. input[type="submit"]:focus {
  251. outline: 1px solid black;
  252. }
  253. button:disabled,
  254. input[type="submit"]:disabled {
  255. color: gray;
  256. background-color: #333;
  257. cursor: not-allowed;
  258. }
  259. /* Button animations */
  260. .action-failed {
  261. transition: 1s;
  262. background-color: red;
  263. }
  264. .action-success {
  265. transition: 1s;
  266. background-color: limegreen;
  267. }
  268. .action-nonzero-exit {
  269. animation: kf-action-nonzero-exit 1s;
  270. transition: 1s;
  271. background-color: orange;
  272. }
  273. .action-timeout {
  274. transition: 1s;
  275. background-color: cyan;
  276. }
  277. .action-blocked {
  278. transition: 1s;
  279. background-color: purple;
  280. color: white;
  281. }
  282. img.logo {
  283. width: 1em;
  284. height: 1em;
  285. vertical-align: middle;
  286. }
  287. main {
  288. padding: 1em;
  289. }
  290. body.has-sidebar main {
  291. padding-top: 3em;
  292. }
  293. summary {
  294. cursor: pointer;
  295. }
  296. form div.wrapper {
  297. background-color: white;
  298. text-align: left;
  299. }
  300. label {
  301. min-width: 20%;
  302. text-align: right;
  303. display: inline-block;
  304. padding-right: 1em;
  305. }
  306. #perma-widget {
  307. position: absolute;
  308. top: 1em;
  309. left: 1em;
  310. z-index: 9;
  311. }
  312. #perma-widget label {
  313. display: inline;
  314. }
  315. input {
  316. padding: 0.6em;
  317. }
  318. input:invalid {
  319. outline: 2px solid red;
  320. }
  321. form .wrapper span.icon {
  322. display: inline-block;
  323. vertical-align: middle;
  324. }
  325. form input[type="submit"]:first-child {
  326. margin-right: 1em;
  327. }
  328. button[name="cancel"]:hover {
  329. background-color: salmon;
  330. color: black;
  331. }
  332. input[name="start"]:hover {
  333. background-color: #aceaac;
  334. color: black;
  335. }
  336. span.argument-description {
  337. margin-left: 1em;
  338. }
  339. p.argument-wrapper {
  340. display: flex;
  341. }
  342. form div.buttons {
  343. text-align: right;
  344. }
  345. pre {
  346. border: 1px solid gray;
  347. padding: 1em;
  348. min-height: 1em;
  349. overflow: auto;
  350. text-align: left;
  351. }
  352. td.exit-code {
  353. text-align: center;
  354. }
  355. input.invalid {
  356. background-color: salmon;
  357. }
  358. #available-version {
  359. background-color: #aceaac;
  360. padding: 0.2em;
  361. border-radius: 1em;
  362. }
  363. span.tag {
  364. background-color: lightgray;
  365. border-radius: 0.6em;
  366. padding: 0.2em;
  367. }
  368. div.toolbar {
  369. padding: .4em;
  370. text-align: left;
  371. background-color: #efefef;
  372. border: 1px solid #999;
  373. border-bottom: 0;
  374. display: flex;
  375. flex-direction: row;
  376. }
  377. div.toolbar * {
  378. margin-right: 1em;
  379. }
  380. @media screen and (width <= 600px) {
  381. fieldset {
  382. grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  383. }
  384. label {
  385. text-align: left;
  386. margin-bottom: .6em;
  387. font-weight: bold;
  388. min-width: auto;
  389. }
  390. p.argument-wrapper {
  391. flex-direction: column;
  392. }
  393. span.argument-description {
  394. margin-left: 0;
  395. margin-top: .6em;
  396. }
  397. dialog {
  398. border-left: 0;
  399. border-right: 0;
  400. width: 100%;
  401. }
  402. }
  403. @media (prefers-color-scheme: dark) {
  404. body {
  405. background-color: #333;
  406. color: white;
  407. }
  408. dialog {
  409. background-color: #222;
  410. color: white;
  411. }
  412. form div.wrapper {
  413. background-color: #222;
  414. }
  415. button,
  416. input[type="submit"],
  417. #sidebar-toggler-button {
  418. border: 1px solid #666;
  419. background-color: #222;
  420. box-shadow: 0 0 6px 0 #444;
  421. color: white;
  422. }
  423. #sidebar-toggler-button:focus,
  424. #sidebar-toggler-button:hover
  425. {
  426. color: white;
  427. }
  428. footer,
  429. footer a {
  430. color: gray;
  431. }
  432. h1 a, h1 a:visited {
  433. color: white;
  434. }
  435. nav {
  436. background-color: #111;
  437. color: white;
  438. }
  439. nav ul li a:hover {
  440. background-color: #666;
  441. color: white;
  442. }
  443. button:disabled {
  444. background-color: black;
  445. }
  446. table,
  447. td,
  448. th {
  449. border: 1px solid gray;
  450. }
  451. td,
  452. tr {
  453. background-color: #222;
  454. color: white;
  455. }
  456. tr:hover td {
  457. background-color: #666;
  458. }
  459. div.toolbar {
  460. background-color: black;
  461. }
  462. }