style.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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. 0% { background-color: black; }
  194. 20% { background-color: red; }
  195. 0% { background-color: inherit; }
  196. }
  197. .action-success {
  198. animation: kf-action-success 1s;
  199. }
  200. @keyframes kf-action-success {
  201. 0% { background-color: black; }
  202. 20% { background-color: limegreen; }
  203. 0% { background-color: inherit; }
  204. }
  205. .action-nonzero-exit {
  206. animation: kf-action-nonzero-exit 1s;
  207. }
  208. @keyframes kf-action-nonzero-exit {
  209. 0% { background-color: black; }
  210. 20% { background-color: orange; }
  211. 0% { background-color: inherit; }
  212. }
  213. .action-timeout {
  214. animation: kf-action-timeout 1s;
  215. }
  216. @keyframes kf-action-timeout {
  217. 0% { background-color: black; }
  218. 20% { background-color: cyan; }
  219. 0% { background-color: inherit; }
  220. }
  221. footer,
  222. footer a {
  223. color: black;
  224. }
  225. img.logo {
  226. width: 1em;
  227. height: 1em;
  228. vertical-align: middle;
  229. }
  230. @media (max-width: 320px) {
  231. fieldset {
  232. grid-template-columns: auto;
  233. grid-gap: 0;
  234. padding: 0;
  235. }
  236. }
  237. main {
  238. padding: 1em;
  239. }
  240. summary {
  241. cursor: pointer;
  242. }
  243. details {
  244. display: inline-block;
  245. }
  246. details[open] {
  247. margin-top: 1em;
  248. display: block;
  249. }
  250. form.action-arguments {
  251. position: absolute;
  252. top: 0;
  253. bottom: 0;
  254. left: 0;
  255. right: 0;
  256. padding: 1em;
  257. box-shadow: 0 0 6px 0 #aaa;
  258. background-color: #dee3e7;
  259. }
  260. form div.wrapper {
  261. border-radius: 1em;
  262. box-shadow: 0 0 10px 0 #444;
  263. background-color: white;
  264. border: 1px solid #999;
  265. text-align: left;
  266. padding: 1em;
  267. }
  268. label {
  269. width: 20%;
  270. text-align: right;
  271. display: inline-block;
  272. padding-right: 1em;
  273. }
  274. #perma-widget {
  275. position: absolute;
  276. z-index: 2;
  277. }
  278. #perma-widget label {
  279. display: inline;
  280. }
  281. input {
  282. padding: 0.6em;
  283. }
  284. input:invalid {
  285. outline: 2px solid red;
  286. }
  287. form .wrapper span.icon {
  288. display: inline-block;
  289. vertical-align: middle;
  290. }
  291. form input[type="submit"]:first-child {
  292. margin-right: 1em;
  293. }
  294. button[name="cancel"]:hover {
  295. background-color: salmon;
  296. }
  297. input[name="start"]:hover {
  298. background-color: #aceaac;
  299. }
  300. span.argument-description {
  301. margin-left: 1em;
  302. }
  303. form div.buttons {
  304. text-align: right;
  305. }
  306. pre {
  307. border: 1px solid gray;
  308. padding: 1em;
  309. min-height: 1em;
  310. }
  311. td.exit-code {
  312. text-align: center;
  313. }
  314. input.invalid {
  315. background-color: salmon;
  316. }
  317. #available-version {
  318. background-color: #aceaac;
  319. padding: 0.2em;
  320. border-radius: 1em;
  321. }
  322. span.tag {
  323. background-color: lightgray;
  324. border-radius: 0.6em;
  325. padding: 0.2em;
  326. }
  327. @media (prefers-color-scheme: dark) {
  328. body {
  329. background-color: #333;
  330. color: white;
  331. }
  332. form.action-arguments {
  333. background-color: #333;
  334. }
  335. form div.wrapper {
  336. background-color: #222;
  337. }
  338. button,
  339. input[type="submit"] {
  340. border: 1px solid #666;
  341. background-color: #222;
  342. box-shadow: 0 0 6px 0 #444;
  343. color: white;
  344. }
  345. button:disabled {
  346. background-color: black;
  347. }
  348. table,
  349. td,
  350. th {
  351. border: 1px solid gray;
  352. }
  353. td,
  354. tr {
  355. background-color: #222;
  356. color: white;
  357. }
  358. tr:hover td {
  359. background-color: #666;
  360. }
  361. footer,
  362. footer a {
  363. color: gray;
  364. }
  365. }