style.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. }
  35. td {
  36. border: 1px solid #efefef;
  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. span.icon {
  89. font-size: 3em;
  90. }
  91. .actionFailed {
  92. animation: kfActionFailed 1s;
  93. }
  94. @keyframes kfActionFailed {
  95. 0% { background-color: black; }
  96. 20% { background-color: red; }
  97. 0% { background-color: inherit; }
  98. }
  99. .actionSuccess {
  100. animation: kfActionSuccess 1s;
  101. }
  102. @keyframes kfActionSuccess {
  103. 0% { background-color: black; }
  104. 20% { background-color: limegreen; }
  105. 0% { background-color: inherit; }
  106. }
  107. .actionNonZeroExit {
  108. animation: kfActionNonZeroExit 1s;
  109. }
  110. @keyframes kfActionNonZeroExit {
  111. 0% { background-color: black; }
  112. 20% { background-color: orange; }
  113. 0% { background-color: inherit; }
  114. }
  115. .actionTimeout {
  116. animation: kfActionTimeout 1s;
  117. }
  118. @keyframes kfActionTimeout {
  119. 0% { background-color: black; }
  120. 20% { background-color: cyan; }
  121. 0% { background-color: inherit; }
  122. }
  123. footer,
  124. footer a {
  125. color: black;
  126. }
  127. img.logo {
  128. width: 1em;
  129. height: 1em;
  130. vertical-align: middle;
  131. }
  132. @media (max-width: 320px) {
  133. fieldset {
  134. grid-template-columns: auto;
  135. grid-gap: 0;
  136. padding: 0;
  137. }
  138. }
  139. @media (prefers-color-scheme: dark) {
  140. body {
  141. background-color: #333;
  142. color: white;
  143. }
  144. button {
  145. border: 1px solid #666;
  146. background-color: #222;
  147. box-shadow: 0 0 6px 0 #444;
  148. color: white;
  149. }
  150. button:disabled {
  151. background-color: black;
  152. }
  153. }
  154. main {
  155. padding: 1em;
  156. }