4
0

style.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  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. dialog h1 {
  126. padding-left: 0;
  127. }
  128. nav ul {
  129. margin: 0;
  130. padding: 0;
  131. }
  132. nav.topbar ul {
  133. display: inline-block;
  134. }
  135. nav.topbar ul li {
  136. display: inline-block;
  137. font-size: small;
  138. }
  139. nav.topbar ul li a {
  140. border-radius: .5em;
  141. }
  142. nav.sidebar ul li {
  143. list-style: none;
  144. text-align: left;
  145. border-bottom: 1px inset black;
  146. }
  147. table {
  148. background-color: white;
  149. border-collapse: collapse;
  150. width: 100%;
  151. box-shadow: 0 0 5px 0 #444;
  152. }
  153. th,
  154. td {
  155. border: 1px solid #efefef;
  156. text-align: left;
  157. padding: 0.6em;
  158. }
  159. th:first-child {
  160. width: 5%;
  161. }
  162. tr:hover td {
  163. background-color: beige;
  164. }
  165. legend {
  166. padding-top: 1em;
  167. text-align: center;
  168. width: 100%;
  169. padding-bottom: 1em;
  170. font-weight: bold;
  171. }
  172. span.icon {
  173. display: block;
  174. font-size: 3em;
  175. }
  176. .action-header {
  177. display: flex;
  178. align-items: center;
  179. }
  180. .action-header span.icon,
  181. tr.log-row span.icon {
  182. display: inline-block;
  183. padding-right: 0.2em;
  184. vertical-align: middle;
  185. }
  186. .error {
  187. background-color: salmon;
  188. color: black;
  189. }
  190. .title.temporary-status-message {
  191. color: gray;
  192. }
  193. h2 {
  194. display: inline-block;
  195. font-size: 1em;
  196. margin-top: 0;
  197. flex-grow: 1;
  198. }
  199. div.entity h2 {
  200. grid-column: 1 / span all;
  201. }
  202. details {
  203. display: inline-block;
  204. flex-grow: 1;
  205. }
  206. /* General Buttons */
  207. button,
  208. input[type="submit"]
  209. {
  210. padding: 1em;
  211. color: black;
  212. text-align: center;
  213. border: 1px solid #999;
  214. background-color: white;
  215. box-shadow: 0 0 6px 0 #aaa;
  216. user-select: none;
  217. transition: background-color 1s ease, color .3s ease;
  218. }
  219. input[type="checkbox"] {
  220. justify-self: baseline;
  221. }
  222. fieldset button {
  223. border-radius: .7em;
  224. }
  225. /* Action Buttons */
  226. action-button {
  227. display: flex;
  228. flex-direction: column;
  229. }
  230. action-button button {
  231. flex-grow: 1;
  232. width: 100%;
  233. z-index: 1;
  234. }
  235. span.title {
  236. display: inline;
  237. }
  238. action-button details {
  239. flex-grow: 1;
  240. }
  241. action-button details[open] {
  242. margin-top: 0;
  243. }
  244. action-button details summary div {
  245. display: inline-flex;
  246. }
  247. action-button details summary div span:first-child {
  248. flex-grow: 1;
  249. }
  250. .action-button-footer {
  251. text-align: left;
  252. font-size: smaller;
  253. overflow: auto;
  254. }
  255. execution-button {
  256. display: inline-block;
  257. margin-right: .2em;
  258. margin-left: .2em;
  259. margin-top: .2em;
  260. }
  261. execution-button button {
  262. margin-top: 0.2em;
  263. margin-bottom: 0.2em;
  264. }
  265. /* Button states */
  266. button:hover,
  267. input[type="submit"]:hover {
  268. box-shadow: 0 0 10px 0 #666;
  269. cursor: pointer;
  270. }
  271. button:focus,
  272. input[type="submit"]:focus {
  273. outline: 1px solid black;
  274. }
  275. button:disabled,
  276. input[type="submit"]:disabled {
  277. color: #3c3c3c;
  278. background-color: #cecece;
  279. cursor: not-allowed;
  280. }
  281. .action-status {
  282. padding: .4em;
  283. border-radius: .4em;
  284. }
  285. .action-failed {
  286. background-color: #e78284;
  287. }
  288. .action-success {
  289. background-color: #a6d189;
  290. color: black;
  291. }
  292. .action-nonzero-exit {
  293. background-color: #ef9f76;
  294. color: black;
  295. }
  296. .action-timeout {
  297. background-color: #99d1db;
  298. color: black;
  299. }
  300. .action-blocked {
  301. background-color: #ca9ee6;
  302. color: black;
  303. }
  304. img.logo {
  305. width: 1em;
  306. height: 1em;
  307. vertical-align: middle;
  308. }
  309. main {
  310. padding: 1em;
  311. padding-top: 3.5em;
  312. flex-grow: 1;
  313. }
  314. summary {
  315. cursor: pointer;
  316. }
  317. form div.wrapper {
  318. background-color: white;
  319. text-align: left;
  320. }
  321. label {
  322. text-align: right;
  323. display: inline-block;
  324. }
  325. header {
  326. text-align: left;
  327. display: flex;
  328. flex-direction: row;
  329. z-index: 3;
  330. align-items: center;
  331. padding-bottom: .2em;
  332. padding-top: 1em;
  333. position: fixed;
  334. background-color: #dee3e7;
  335. width: 100vw;
  336. }
  337. input {
  338. padding: 0.6em;
  339. }
  340. input:invalid {
  341. outline: 2px solid red;
  342. }
  343. form .wrapper span.icon {
  344. display: inline-block;
  345. vertical-align: middle;
  346. }
  347. button[name="cancel"]:hover {
  348. background-color: salmon;
  349. color: black;
  350. }
  351. input[name="start"]:hover {
  352. background-color: #aceaac;
  353. color: black;
  354. }
  355. div.arguments {
  356. display: grid;
  357. 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 */
  358. grid-template-rows: auto;
  359. grid-gap: 1em;
  360. align-items: center;
  361. }
  362. p.argument-wrapper {
  363. display: flex;
  364. }
  365. div.buttons {
  366. display: flex;
  367. justify-content: end;
  368. gap: 1em;
  369. }
  370. input.invalid {
  371. background-color: salmon;
  372. }
  373. #available-version {
  374. background-color: #aceaac;
  375. padding: 0.2em;
  376. border-radius: 1em;
  377. }
  378. span.tag {
  379. background-color: lightgray;
  380. border-radius: 0.4em;
  381. padding: 0.4em;
  382. margin-top: .2em;
  383. margin-right: .2em;
  384. display: inline-block;
  385. color: black;
  386. }
  387. div.toolbar {
  388. padding: .4em;
  389. text-align: left;
  390. background-color: #efefef;
  391. border: 1px solid #999;
  392. border-bottom: 0;
  393. display: flex;
  394. flex-direction: row;
  395. }
  396. div.toolbar * {
  397. margin-right: 1em;
  398. }
  399. div.display {
  400. border: 1px solid #666;
  401. box-shadow: 0 0 6px 0 #aaa;
  402. border-radius: .7em;
  403. display: flex;
  404. align-items: center;
  405. place-content: center center;
  406. flex-direction: column;
  407. font-size: small;
  408. }
  409. #execution-dialog-xterm {
  410. flex-grow: 1;
  411. }
  412. .padded-content {
  413. padding: 1em;
  414. }
  415. .padded-content-sides {
  416. padding-left: 1em;
  417. padding-right: 1em;
  418. }
  419. .ta-left {
  420. text-align: left;
  421. }
  422. .xterm {
  423. padding: 1em;
  424. }
  425. @media screen and (width <= 600px) {
  426. fieldset {
  427. grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  428. }
  429. label {
  430. text-align: left;
  431. margin-bottom: .6em;
  432. font-weight: bold;
  433. }
  434. p.argument-wrapper {
  435. flex-direction: column;
  436. }
  437. div.arguments {
  438. grid-template-columns: auto;
  439. }
  440. dialog {
  441. border-left: 0;
  442. border-right: 0;
  443. margin-left: 0;
  444. margin-right: 0;
  445. width: 100vw;
  446. max-width: 100vw;
  447. }
  448. .xterm {
  449. margin-left: 0;
  450. margin-right: 0;
  451. width: fit-content;
  452. }
  453. }
  454. @media (prefers-color-scheme: dark) {
  455. body, header {
  456. background-color: #333;
  457. color: white;
  458. }
  459. dialog {
  460. background-color: #222;
  461. color: white;
  462. }
  463. form div.wrapper {
  464. background-color: #222;
  465. }
  466. button,
  467. input[type="submit"] {
  468. border: 1px solid #666;
  469. background-color: #222;
  470. box-shadow: 0 0 6px 0 #444;
  471. color: white;
  472. }
  473. button:focus,
  474. input[type="submit"]:focus {
  475. outline: 2px solid #72B7F4;
  476. }
  477. footer {
  478. color: #bbb;
  479. }
  480. a, a:visited {
  481. color: #bbb;
  482. }
  483. a:focus {
  484. background-color: #72B7F4;
  485. color: black;
  486. outline: 1px solid #72B7F4;
  487. }
  488. nav.sidebar {
  489. background-color: #111;
  490. color: white;
  491. }
  492. nav ul li a:hover {
  493. background-color: #666;
  494. color: white;
  495. }
  496. button:disabled {
  497. background-color: black;
  498. }
  499. table,
  500. td,
  501. th {
  502. border: 1px solid gray;
  503. }
  504. td,
  505. tr {
  506. background-color: #222;
  507. color: white;
  508. }
  509. tr:hover td {
  510. background-color: #666;
  511. }
  512. div.toolbar {
  513. background-color: black;
  514. }
  515. div.display {
  516. box-shadow: 0 0 6px 0 #444;
  517. }
  518. }