style.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. :root {
  2. --background: white;
  3. --color: black;
  4. --font: system-ui;
  5. --width: 1400px;
  6. }
  7. body {
  8. background: var(--background);
  9. color: var(--color);
  10. font-family: var(--font);
  11. display: flex;
  12. flex-direction: column;
  13. height: 100vh;
  14. margin: initial;
  15. }
  16. .wrapper {
  17. max-width: var(--width);
  18. margin: auto;
  19. padding: 1em;
  20. }
  21. .wrapper > :first-child {
  22. margin-top: 0;
  23. }
  24. .wrapper > :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 form,
  44. footer .wrapper span {
  45. flex: 1;
  46. }
  47. header .wrapper input {
  48. background: none;
  49. border: none;
  50. font-family: inherit;
  51. font-size: inherit;
  52. color: inherit;
  53. text-align: end;
  54. width: 100%;
  55. }
  56. main .wrapper .results,
  57. main .wrapper .results div {
  58. display: grid;
  59. align-items: center;
  60. gap: 1em;
  61. }
  62. main .wrapper .results {
  63. grid-template-columns: repeat(auto-fill, minmax(375px, auto));
  64. }
  65. main .wrapper .results div {
  66. grid-template-columns: 100px auto;
  67. }
  68. main .wrapper .results p {
  69. overflow: hidden;
  70. text-overflow: ellipsis;
  71. }
  72. main .wrapper .results img {
  73. width: 100px;
  74. height: 100px;
  75. object-fit: cover;
  76. border-radius: 50%;
  77. }
  78. a {
  79. color: inherit;
  80. text-decoration: initial;
  81. }
  82. ::selection {
  83. background: var(--color);
  84. color: var(--background);
  85. }
  86. @media (prefers-color-scheme: dark) {
  87. :root {
  88. --background: black;
  89. --color: white;
  90. }
  91. }