style.css 5.2 KB

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