UNPKG

@front-utils/mock-json-api

Version:

Bun mock server with Elysia and Lowdb

90 lines (74 loc) 1.23 kB
:root { font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; color: #222; background-color: #ffffff; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; } * { box-sizing: border-box; } body { margin: 0; } #app { display: flex; flex-direction: column; min-height: 100vh; } header { display: flex; justify-content: flex-end; background-color: #673ab8; } header nav { display: flex; } header a { color: #fff; padding: 0.75rem; text-decoration: none; } header a.active { background-color: #0005; } header a:hover { background-color: #0008; } main { flex: auto; display: flex; flex-direction: column; max-width: 1280px; margin: 0 auto; text-align: center; min-width: 800px; } .button { all: unset; border-radius: 4px; padding: 8px; cursor: pointer; background-color: #673ab8; transition: all 0.3s; } .button:hover { opacity: 0.8; color: #fff; } @media (max-width: 639px) { main { margin: 2rem; } } @media (prefers-color-scheme: dark) { :root { color: #ccc; background-color: #1a1a1a; } }