Geizkragen/assets/css/productAdder.css

148 lines
3.2 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ==========================================================
PRODUCT ADDER Dropdown & Form Styles
========================================================== */
/* ─── Select Wrapper ─── */
.auth__select__wrap {
width: min(520px, 100%);
display: grid;
gap: 0.4rem;
justify-self: center;
margin-top: 0.75rem;
}
.auth__select__label {
font-size: 0.88rem;
font-weight: 500;
color: var(--text-secondary);
}
.auth__select {
width: 100%;
box-sizing: border-box;
padding: 0.75rem 2.5rem 0.75rem 0.9rem;
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
background-color: var(--bg-input);
color: var(--text-primary);
font-family: var(--font-family);
font-size: 0.92rem;
outline: none;
appearance: none;
cursor: pointer;
transition: border-color var(--transition-fast),
box-shadow var(--transition-fast);
background-image:
linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
background-position:
calc(100% - 18px) calc(50% + 1px),
calc(100% - 13px) calc(50% + 1px);
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
}
.auth__select:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.auth__select option {
background: var(--bg-input);
color: var(--text-primary);
}
/* ─── Product Adder Layout ─── */
.auth {
min-height: 100vh;
display: grid;
place-items: start center;
padding: 2rem 1rem;
gap: 1rem;
}
.auth__grid {
width: min(700px, 100%);
display: grid;
grid-template-columns: 1fr;
gap: 1.25rem;
}
.auth__card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 1.5rem;
box-shadow: var(--shadow-md);
}
.auth__header {
margin-bottom: 0.75rem;
}
.auth__title {
margin: 0;
font-size: 1.15rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.2px;
}
.auth__form {
display: grid;
gap: 0.65rem;
margin-bottom: 0.75rem;
}
.auth__form label {
font-size: 0.88rem;
font-weight: 500;
color: var(--text-secondary);
margin-top: 0.5rem;
}
.auth__input {
width: 100%;
box-sizing: border-box;
padding: 0.7rem 0.9rem;
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
background: var(--bg-input);
color: var(--text-primary);
font-family: var(--font-family);
font-size: 0.92rem;
outline: none;
transition: border-color var(--transition-fast),
box-shadow var(--transition-fast);
}
.auth__input:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.auth__input::placeholder {
color: var(--text-muted);
}
textarea.auth__input {
min-height: 80px;
resize: vertical;
line-height: 1.5;
}
.auth__card .auth__form:last-child {
margin-bottom: 0;
}
/* ─── Responsive ─── */
@media (max-width: 720px) {
.auth {
padding: 1.5rem 0.75rem;
}
.auth__card {
padding: 1.25rem;
}
}