style.css 6.0 KB

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