nextjs-panel
Version:
Schema-based admin panel generator for Next.js using Prisma and React components.
61 lines (53 loc) • 1.22 kB
CSS
.form {
width: 100%;
max-width: 40rem; /* ~640px */
margin: 0 auto;
padding: 1.5rem;
background-color: white;
border-radius: 0.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border: 1px solid #e5e7eb;
}
.field {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.label {
font-size: 0.875rem;
font-weight: 500;
color: #374151;
}
.input,
.select {
margin-top: 0.25rem;
padding: 0.5rem;
border-radius: 0.375rem;
border: 1px solid #e5e7eb;
font-size: 0.875rem;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
outline: none;
}
.input:focus,
.select:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.button {
width: 100%;
background-color: #2563eb;
color: white;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
border: none;
cursor: pointer;
transition: background-color 0.15s ease-in-out;
}
.button:hover {
background-color: #1d4ed8;
}
.button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}