style.css 8.4 KB

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