style.css 2.5 KB

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