style.css 3.0 KB

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