style.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. fieldset#switcher {
  21. border: 0;
  22. text-align: right;
  23. margin-bottom: 1em;
  24. }
  25. fieldset#switcher button:first-child{
  26. border-radius: 1em 0em 0em 1em;
  27. }
  28. fieldset#switcher button:last-child{
  29. border-radius: 0 1em 1em 0;
  30. }
  31. table {
  32. background-color: white;
  33. border-collapse: collapse;
  34. width: 100%;
  35. box-shadow: 0 0 10px 0 #444;
  36. }
  37. th, td {
  38. border: 1px solid #efefef;
  39. text-align: left;
  40. padding: .6em;
  41. }
  42. th:first-child {
  43. width: 5%;
  44. }
  45. tr:hover td {
  46. background-color: beige;
  47. }
  48. button.activeSection {
  49. font-weight: bold;
  50. }
  51. legend {
  52. padding-top: 1em;
  53. }
  54. span[role="icon"] {
  55. display: block;
  56. }
  57. .error {
  58. background-color: salmon;
  59. padding: 1em;
  60. }
  61. .title.temporaryStatusMessage {
  62. color: gray;
  63. }
  64. div.entity {
  65. background-color: white;
  66. box-shadow: 0 0 10px 0 #444;
  67. display: grid;
  68. grid-column: auto / span 2;
  69. grid-row: auto / span 2;
  70. grid-template-rows: auto min-content;
  71. grid-template-columns: minmax(min-content, auto);
  72. }
  73. div.entity h2 {
  74. grid-column: 1 / span all;
  75. }
  76. button {
  77. padding: 1em;
  78. color: black;
  79. display: table-cell;
  80. text-align: center;
  81. border: 1px solid #999;
  82. background-color: white;
  83. box-shadow: 0 0 6px 0 #aaa;
  84. user-select: none;
  85. }
  86. button:hover {
  87. box-shadow: 0 0 10px 0 #666;
  88. cursor: pointer;
  89. }
  90. button:focus {
  91. outline: 1px solid black;
  92. }
  93. button:disabled {
  94. color: gray;
  95. background-color: #333;
  96. cursor: not-allowed;
  97. }
  98. span.icon {
  99. font-size: 3em;
  100. }
  101. .actionFailed {
  102. animation: kfActionFailed 1s;
  103. }
  104. @keyframes kfActionFailed {
  105. 0% { background-color: black; }
  106. 20% { background-color: red; }
  107. 0% { background-color: inherit; }
  108. }
  109. .actionSuccess {
  110. animation: kfActionSuccess 1s;
  111. }
  112. @keyframes kfActionSuccess {
  113. 0% { background-color: black; }
  114. 20% { background-color: limegreen; }
  115. 0% { background-color: inherit; }
  116. }
  117. .actionNonZeroExit {
  118. animation: kfActionNonZeroExit 1s;
  119. }
  120. @keyframes kfActionNonZeroExit {
  121. 0% { background-color: black; }
  122. 20% { background-color: orange; }
  123. 0% { background-color: inherit; }
  124. }
  125. .actionTimeout {
  126. animation: kfActionTimeout 1s;
  127. }
  128. @keyframes kfActionTimeout {
  129. 0% { background-color: black; }
  130. 20% { background-color: cyan; }
  131. 0% { background-color: inherit; }
  132. }
  133. footer,
  134. footer a {
  135. color: black;
  136. }
  137. img.logo {
  138. width: 1em;
  139. height: 1em;
  140. vertical-align: middle;
  141. }
  142. @media (max-width: 320px) {
  143. fieldset {
  144. grid-template-columns: auto;
  145. grid-gap: 0;
  146. padding: 0;
  147. }
  148. }
  149. @media (prefers-color-scheme: dark) {
  150. body {
  151. background-color: #333;
  152. color: white;
  153. }
  154. button {
  155. border: 1px solid #666;
  156. background-color: #222;
  157. box-shadow: 0 0 6px 0 #444;
  158. color: white;
  159. }
  160. button:disabled {
  161. background-color: black;
  162. }
  163. table, td, th {
  164. border: 1px solid gray;
  165. }
  166. td, tr {
  167. background-color: #222;
  168. color: white;
  169. }
  170. tr:hover td {
  171. background-color: #666;
  172. }
  173. footer, footer a {
  174. color: gray;
  175. }
  176. }
  177. main {
  178. padding: 1em;
  179. }
  180. summary {
  181. cursor: pointer;
  182. }
  183. details {
  184. display: inline-block;
  185. }
  186. details[open] {
  187. margin-top: 1em;
  188. display: block;
  189. }
  190. main {
  191. padding: 1em;
  192. }
  193. summary {
  194. cursor: pointer;
  195. }
  196. details {
  197. display: inline-block;
  198. }
  199. details[open] {
  200. margin-top: 1em;
  201. display: block;
  202. }