169 lines
2.7 KiB
CSS
169 lines
2.7 KiB
CSS
:root {
|
|
--primary-color: #2563eb;
|
|
--error-color: #dc2626;
|
|
--background-color: #f8fafc;
|
|
--border-color: #e2e8f0;
|
|
--text-color: #1e293b;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--text-color);
|
|
background: var(--background-color);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
min-height: 100vh;
|
|
padding: 2rem;
|
|
}
|
|
|
|
main {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
padding: 2rem;
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
flex: 1 1 200px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
h1 {
|
|
margin-bottom: 2rem;
|
|
color: var(--text-color);
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
input, select {
|
|
padding: 0.5rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
input:focus, select:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
#choices-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.choice-input {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.choice-input input {
|
|
flex: 1;
|
|
}
|
|
|
|
.error-text {
|
|
color: red;
|
|
font-size: 12px;
|
|
}
|
|
|
|
button {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #1d4ed8;
|
|
}
|
|
|
|
#add-choice {
|
|
background: transparent;
|
|
color: var(--primary-color);
|
|
border: 1px solid var(--primary-color);
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
#add-choice:hover {
|
|
background: rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
.remove-choice {
|
|
padding: 0.5rem 1rem;
|
|
background: transparent;
|
|
color: var(--error-color);
|
|
border: 1px solid var(--error-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.remove-choice:hover {
|
|
background: rgba(220, 38, 38, 0.1);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.container {
|
|
padding: 0;
|
|
}
|
|
|
|
main {
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.form-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
button {
|
|
width: 100%;
|
|
}
|
|
}
|