style.css 2.2 KB

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