style.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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#rootGroup {
  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. button.activeSection {
  39. font-weight: bold;
  40. }
  41. legend {
  42. padding-top: 1em;
  43. }
  44. span[role="icon"] {
  45. display: block;
  46. }
  47. .error {
  48. background-color: salmon;
  49. padding: 1em;
  50. }
  51. .title.temporaryStatusMessage {
  52. color: gray;
  53. }
  54. div.entity {
  55. background-color: white;
  56. box-shadow: 0 0 10px 0 #444;
  57. display: grid;
  58. grid-column: auto / span 2;
  59. grid-row: auto / span 2;
  60. grid-template-rows: auto min-content;
  61. grid-template-columns: minmax(min-content, auto);
  62. }
  63. div.entity h2 {
  64. grid-column: 1 / span all;
  65. }
  66. button {
  67. padding: 1em;
  68. color: black;
  69. display: table-cell;
  70. text-align: center;
  71. border: 1px solid #999;
  72. background-color: white;
  73. box-shadow: 0 0 6px 0 #aaa;
  74. user-select: none;
  75. }
  76. button:hover {
  77. box-shadow: 0 0 10px 0 #666;
  78. cursor: pointer;
  79. }
  80. button:focus {
  81. outline: 1px solid black;
  82. }
  83. button:disabled {
  84. color: gray;
  85. background-color: #333;
  86. cursor: not-allowed;
  87. }
  88. fieldset#switcher {
  89. border: 0;
  90. text-align: right;
  91. margin-bottom: 1em;
  92. }
  93. fieldset#switcher button:first-child {
  94. border-radius: 1em 0 0 1em;
  95. }
  96. fieldset#switcher button:last-child {
  97. border-radius: 0 1em 1em 0;
  98. }
  99. span.icon {
  100. font-size: 3em;
  101. }
  102. .actionFailed {
  103. animation: kfActionFailed 1s;
  104. }
  105. @keyframes kfActionFailed {
  106. 0% { background-color: black; }
  107. 20% { background-color: red; }
  108. 0% { background-color: inherit; }
  109. }
  110. .actionSuccess {
  111. animation: kfActionSuccess 1s;
  112. }
  113. @keyframes kfActionSuccess {
  114. 0% { background-color: black; }
  115. 20% { background-color: limegreen; }
  116. 0% { background-color: inherit; }
  117. }
  118. .actionNonZeroExit {
  119. animation: kfActionNonZeroExit 1s;
  120. }
  121. @keyframes kfActionNonZeroExit {
  122. 0% { background-color: black; }
  123. 20% { background-color: orange; }
  124. 0% { background-color: inherit; }
  125. }
  126. .actionTimeout {
  127. animation: kfActionTimeout 1s;
  128. }
  129. @keyframes kfActionTimeout {
  130. 0% { background-color: black; }
  131. 20% { background-color: cyan; }
  132. 0% { background-color: inherit; }
  133. }
  134. footer,
  135. footer a {
  136. color: black;
  137. }
  138. img.logo {
  139. width: 1em;
  140. height: 1em;
  141. vertical-align: middle;
  142. }
  143. @media (max-width: 320px) {
  144. fieldset {
  145. grid-template-columns: auto;
  146. grid-gap: 0;
  147. padding: 0;
  148. }
  149. }
  150. @media (prefers-color-scheme: dark) {
  151. body {
  152. background-color: #333;
  153. color: white;
  154. }
  155. button {
  156. border: 1px solid #666;
  157. background-color: #222;
  158. box-shadow: 0 0 6px 0 #444;
  159. color: white;
  160. }
  161. button:disabled {
  162. background-color: black;
  163. }
  164. table,
  165. td,
  166. th {
  167. border: 1px solid gray;
  168. }
  169. td,
  170. tr {
  171. background-color: #222;
  172. color: white;
  173. }
  174. tr:hover td {
  175. background-color: #666;
  176. }
  177. footer,
  178. footer a {
  179. color: gray;
  180. }
  181. }
  182. main {
  183. padding: 1em;
  184. }
  185. summary {
  186. cursor: pointer;
  187. }
  188. details {
  189. display: inline-block;
  190. }
  191. details[open] {
  192. margin-top: 1em;
  193. display: block;
  194. }
  195. form.actionArguments {
  196. position: absolute;
  197. top: 0;
  198. bottom: 0;
  199. left: 0;
  200. right: 0;
  201. padding: 1em;
  202. box-shadow: 0 0 6px 0 #aaa;
  203. background-color: #dee3e7;
  204. }
  205. h2 {
  206. font-size: 1em;
  207. }
  208. h2 span.icon {
  209. vertical-align: middle;
  210. padding-right: .2em;
  211. }
  212. form div.wrapper {
  213. border-radius: 1em;
  214. box-shadow: 0 0 10px 0 #444;
  215. background-color: white;
  216. border: 1px solid #999;
  217. text-align: left;
  218. padding: 1em;
  219. }
  220. label {
  221. width: 30%;
  222. text-align: right;
  223. display: inline-block;
  224. padding-right: 1em;
  225. }
  226. input {
  227. padding: .6em;
  228. }
  229. form.actionArguments {
  230. position: absolute;
  231. top: 0;
  232. bottom: 0;
  233. left: 0;
  234. right: 0;
  235. padding: 1em;
  236. box-shadow: 0 0 6px 0 #aaa;
  237. background-color: #dee3e7;
  238. }
  239. h2 {
  240. font-size: 1em;
  241. }
  242. h2 span.icon {
  243. vertical-align: middle;
  244. padding-right: .2em;
  245. }
  246. form div.wrapper {
  247. border-radius: 1em;
  248. box-shadow: 0 0 10px 0 #444;
  249. background-color: white;
  250. border: 1px solid #999;
  251. text-align: left;
  252. padding: 1em;
  253. }
  254. label {
  255. width: 30%;
  256. text-align: right;
  257. display: inline-block;
  258. padding-right: 1em;
  259. }
  260. input {
  261. padding: .6em;
  262. }