style.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. display: grid;
  11. grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  12. grid-template-rows: auto auto auto auto;
  13. padding: 1em;
  14. grid-gap: 1em;
  15. text-align: center;
  16. border: 0;
  17. }
  18. legend {
  19. padding-top: 1em;
  20. }
  21. span[role="icon"] {
  22. display: block;
  23. }
  24. .error {
  25. background-color: salmon;
  26. padding: 1em;
  27. }
  28. .title.temporaryStatusMessage {
  29. color: gray;
  30. }
  31. div.entity {
  32. background-color: white;
  33. box-shadow: 0 0 10px 0 #444;
  34. display: grid;
  35. grid-column: auto / span 2;
  36. grid-row: auto / span 2;
  37. grid-template-rows: auto min-content;
  38. grid-template-columns: minmax(min-content, auto);
  39. }
  40. div.entity h2 {
  41. grid-column: 1 / span all;
  42. }
  43. button {
  44. padding: 1em;
  45. color: black;
  46. display: table-cell;
  47. text-align: center;
  48. border: 1px solid #999;
  49. background-color: white;
  50. box-shadow: 0 0 6px 0 #aaa;
  51. user-select: none;
  52. }
  53. button:hover {
  54. box-shadow: 0 0 10px 0 #666;
  55. cursor: pointer;
  56. }
  57. button:focus {
  58. outline: 1px solid black;
  59. }
  60. button:disabled {
  61. color: gray;
  62. background-color: #333;
  63. cursor: not-allowed;
  64. }
  65. span.icon {
  66. font-size: 3em;
  67. }
  68. .actionFailed {
  69. animation: kfActionFailed 1s;
  70. }
  71. @keyframes kfActionFailed {
  72. 0% { background-color: black; }
  73. 20% { background-color: red; }
  74. 0% { background-color: inherit; }
  75. }
  76. .actionSuccess {
  77. animation: kfActionSuccess 1s;
  78. }
  79. @keyframes kfActionSuccess {
  80. 0% { background-color: black; }
  81. 20% { background-color: limegreen; }
  82. 0% { background-color: inherit; }
  83. }
  84. .actionNonZeroExit {
  85. animation: kfActionNonZeroExit 1s;
  86. }
  87. @keyframes kfActionNonZeroExit {
  88. 0% { background-color: black; }
  89. 20% { background-color: orange; }
  90. 0% { background-color: inherit; }
  91. }
  92. .actionTimeout {
  93. animation: kfActionTimeout 1s;
  94. }
  95. @keyframes kfActionTimeout {
  96. 0% { background-color: black; }
  97. 20% { background-color: cyan; }
  98. 0% { background-color: inherit; }
  99. }
  100. footer,
  101. footer a {
  102. color: black;
  103. }
  104. img.logo {
  105. width: 1em;
  106. height: 1em;
  107. vertical-align: middle;
  108. }
  109. @media (max-width: 320px) {
  110. fieldset {
  111. grid-template-columns: auto;
  112. grid-gap: 0;
  113. padding: 0;
  114. }
  115. }
  116. @media (prefers-color-scheme: dark) {
  117. body {
  118. background-color: #333;
  119. color: white;
  120. }
  121. button {
  122. border: 1px solid #666;
  123. background-color: #222;
  124. box-shadow: 0 0 6px 0 #444;
  125. color: white;
  126. }
  127. button:disabled {
  128. background-color: black;
  129. }
  130. }