123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- :root {
- --background: white;
- --color: black;
- --font: system-ui;
- --width: 1400px;
- }
- body {
- background: var(--background);
- color: var(--color);
- font-family: var(--font);
- display: flex;
- flex-direction: column;
- height: 100vh;
- margin: initial;
- }
- .wrapper {
- max-width: var(--width);
- margin: auto;
- padding: 1em;
- }
- .wrapper > :first-child {
- margin-top: 0;
- }
- .wrapper > :last-child {
- margin-bottom: 0;
- }
- header {
- border-bottom: 1px solid;
- }
- main {
- flex: 1;
- overflow: auto;
- }
- footer {
- border-top: 1px solid;
- }
- header .wrapper,
- footer .wrapper {
- display: flex;
- align-items: center;
- gap: 1em;
- }
- header .wrapper form,
- footer .wrapper span {
- flex: 1;
- }
- header .wrapper input {
- background: none;
- border: none;
- font-family: inherit;
- font-size: inherit;
- color: inherit;
- text-align: end;
- width: 100%;
- }
- main .wrapper .results,
- main .wrapper .results div {
- display: grid;
- align-items: center;
- gap: 1em;
- }
- main .wrapper .results {
- grid-template-columns: repeat(auto-fill, minmax(375px, auto));
- }
- main .wrapper .results div {
- grid-template-columns: 100px auto;
- }
- main .wrapper .results p {
- overflow: hidden;
- text-overflow: ellipsis;
- }
- main .wrapper .results img {
- width: 100px;
- height: 100px;
- object-fit: cover;
- border-radius: 50%;
- }
- a {
- color: inherit;
- text-decoration: initial;
- }
- ::selection {
- background: var(--color);
- color: var(--background);
- }
- @media (prefers-color-scheme: dark) {
- :root {
- --background: black;
- --color: white;
- }
- }
|