style.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. body {
  2. background-color: #efefef;
  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. div.entity {
  22. background-color: #222;
  23. box-shadow: 0 0 10px 0 #444;
  24. display: grid;
  25. grid-column: auto / span 2;
  26. grid-row: auto / span 2;
  27. grid-template-rows: auto min-content;
  28. grid-template-columns: minmax(min-content, auto);
  29. }
  30. div.entity h2 {
  31. grid-column: 1 / span all;
  32. }
  33. button {
  34. padding: 1em;
  35. color: black;
  36. display: table-cell;
  37. text-align: center;
  38. border: 1px solid #999;
  39. background-color: #dee3e7;
  40. box-shadow: 0 0 6px 0 #aaa;
  41. user-select: none;
  42. }
  43. button.good {
  44. background-color: limegreen;
  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: black;
  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: green; }
  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: blue; }
  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. background-color: red;
  102. grid-gap: 0;
  103. padding: 0;
  104. }
  105. }
  106. @media (prefers-color-scheme: dark) {
  107. body {
  108. background-color: #333;
  109. color: white;
  110. }
  111. button {
  112. border: 1px solid #666;
  113. background-color: #222;
  114. box-shadow: 0 0 6px 0 #444;
  115. color: white;
  116. }
  117. }