style.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. body {
  2. padding-inline: 10%;
  3. min-height: 100dvh;
  4. margin: 0;
  5. display: flex;
  6. flex-direction: column;
  7. font-size: 1.2rem;
  8. }
  9. nav {
  10. display: flex;
  11. gap: 1rem 3rem;
  12. flex-wrap: wrap;
  13. align-items: center;
  14. justify-content: space-between;
  15. margin-inline: 5%;
  16. padding: 0.5rem 3rem;
  17. }
  18. nav h2 {
  19. margin: 0 auto;
  20. }
  21. nav ul {
  22. list-style: none;
  23. display: flex;
  24. gap: 1rem;
  25. flex-wrap: wrap;
  26. align-items: center;
  27. justify-content: center;
  28. padding: 0;
  29. margin: 0 auto;
  30. }
  31. nav li {
  32. margin-inline: auto;
  33. }
  34. /* nav a {
  35. color: #eee;
  36. text-decoration: none;
  37. font-size: 1.2rem;
  38. } */
  39. header {
  40. display: flex;
  41. flex-wrap: wrap;
  42. justify-content: space-between;
  43. padding-block: 2rem;
  44. gap: 2rem;
  45. }
  46. img {
  47. object-fit: cover;
  48. width: 100%;
  49. }
  50. .stats {
  51. display: flex;
  52. flex-wrap: wrap;
  53. gap: 2rem;
  54. }
  55. .stats > div {
  56. padding: 0.5rem 2rem;
  57. background-color: lightgray;
  58. }
  59. div:has(> table) {
  60. overflow-x: auto;
  61. }
  62. table {
  63. border-collapse: collapse;
  64. width: 100%;
  65. }
  66. td, th {
  67. border: 1px solid #dddddd;
  68. text-align: left;
  69. padding: 8px;
  70. }
  71. tr:nth-child(even) {
  72. background-color: #dddddd;
  73. }
  74. span.error {
  75. color: red;
  76. }
  77. #mainStats {
  78. display: flex;
  79. flex-direction: column;
  80. gap: 0.5rem;
  81. margin: auto;
  82. justify-content: center;
  83. align-items: center;
  84. }
  85. #mainStats > .message {
  86. background-color: lightcoral;
  87. border: 2px solid red;
  88. padding: 0.5rem 2rem;
  89. width: 100%;
  90. border-radius: 1rem;
  91. }
  92. .messageTitle {
  93. font-weight: bold;
  94. font-size: 1.2rem;
  95. }
  96. #mainStats > .stats {
  97. display: flex;
  98. flex-wrap: wrap;
  99. justify-content: center;
  100. align-items: stretch;
  101. gap: 2rem;
  102. }
  103. #mainStats > .stats > div {
  104. background-color: #dddddd;
  105. padding: 0.5rem 2rem;
  106. border-radius: 1rem;
  107. }