style.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. :root {
  2. --background: white;
  3. --color: black;
  4. }
  5. body {
  6. background: var(--background);
  7. color: var(--color);
  8. font-family: system-ui;
  9. display: flex;
  10. flex-direction: column;
  11. height: 100vh;
  12. margin: initial;
  13. }
  14. .wrapper {
  15. max-width: 1400px;
  16. margin: auto;
  17. padding: 1em;
  18. }
  19. .wrapper > :first-child,
  20. .wrapper div > :first-child,
  21. .wrapper details:first-child summary {
  22. margin-top: 0;
  23. }
  24. .wrapper > :last-child,
  25. .wrapper div > :last-child {
  26. margin-bottom: 0;
  27. }
  28. .wrapper p a,
  29. .wrapper span a {
  30. font-weight: bold;
  31. }
  32. header {
  33. border-bottom: 1px solid;
  34. }
  35. main {
  36. flex: 1;
  37. overflow: auto;
  38. }
  39. footer {
  40. border-top: 1px solid;
  41. }
  42. header .wrapper,
  43. footer .wrapper {
  44. display: flex;
  45. align-items: center;
  46. gap: 1em;
  47. }
  48. header .wrapper a {
  49. max-width: 50%;
  50. white-space: nowrap;
  51. overflow: hidden;
  52. text-overflow: ellipsis;
  53. }
  54. header .wrapper form,
  55. footer .wrapper span {
  56. flex: 1;
  57. }
  58. header .wrapper input {
  59. background: none;
  60. border: none;
  61. font-family: inherit;
  62. font-size: inherit;
  63. color: inherit;
  64. width: 100%;
  65. }
  66. main .wrapper .page,
  67. main .wrapper .subpage {
  68. display: grid;
  69. align-items: start;
  70. gap: 1em;
  71. }
  72. main .wrapper .page {
  73. grid-template-columns: auto 250px;
  74. }
  75. main .wrapper .subpage {
  76. grid-template-columns: 250px auto 250px;
  77. }
  78. main .wrapper img,
  79. main .wrapper table {
  80. width: 100%;
  81. }
  82. main .wrapper table td {
  83. vertical-align: top;
  84. }
  85. main .wrapper table td[colspan] {
  86. padding: initial !important;
  87. }
  88. main .wrapper table td[colspan] audio {
  89. width: 100%;
  90. margin-top: 4px;
  91. }
  92. main .wrapper table td:not(:nth-child(2)) {
  93. width: 0;
  94. white-space: nowrap;
  95. text-align: right;
  96. }
  97. main .wrapper table td:first-child {
  98. padding-right: 0.5em;
  99. }
  100. main .wrapper table td:last-child {
  101. padding-left: 0.5em;
  102. }
  103. main .wrapper summary {
  104. margin: 1em auto;
  105. font-weight: bold;
  106. cursor: pointer;
  107. }
  108. main .wrapper .results,
  109. main .wrapper .results a {
  110. display: grid;
  111. gap: 1em;
  112. }
  113. main .wrapper .results {
  114. grid-template-columns: repeat(auto-fill, minmax(300px, auto));
  115. }
  116. main .wrapper .results a {
  117. grid-template-columns: 100px auto;
  118. align-items: center;
  119. }
  120. main .wrapper .results img {
  121. width: 100px;
  122. height: 100px;
  123. object-fit: cover;
  124. }
  125. main .wrapper .tracks table a,
  126. main .wrapper .sidebar a {
  127. font-weight: bold;
  128. }
  129. a {
  130. color: inherit;
  131. text-decoration: initial;
  132. }
  133. #icon {
  134. height: 12px;
  135. }
  136. ::selection {
  137. background: var(--color);
  138. color: var(--background);
  139. }
  140. @media (max-width: 1000px) {
  141. main .wrapper .page,
  142. main .wrapper .subpage {
  143. grid-template-columns: auto;
  144. }
  145. }
  146. @media (prefers-color-scheme: dark) {
  147. :root {
  148. --background: black;
  149. --color: white;
  150. }
  151. #icon {
  152. filter: invert(1);
  153. }
  154. }