290 lines
4.8 KiB
CSS
290 lines
4.8 KiB
CSS
/* 템플릿 작성/수정 폼 스타일 */
|
|
|
|
.template-form-container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.form-header {
|
|
background: linear-gradient(135deg, #AA20FF 0%, #8A1ACC 100%);
|
|
color: white;
|
|
padding: 30px;
|
|
border-radius: 8px 8px 0 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.form-content {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 0 0 8px 8px;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.form-section {
|
|
margin-bottom: 40px;
|
|
padding-bottom: 30px;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.form-section:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.3em;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.section-title i {
|
|
margin-right: 10px;
|
|
color: #AA20FF;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.form-label.required::after {
|
|
content: ' *';
|
|
color: #dc3545;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 12px 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 1em;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #AA20FF;
|
|
box-shadow: 0 0 0 3px rgba(170, 32, 255, 0.1);
|
|
}
|
|
|
|
.form-select {
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
|
|
background-position: right 12px center;
|
|
background-repeat: no-repeat;
|
|
background-size: 16px 12px;
|
|
padding-right: 40px;
|
|
height: 43px !important;
|
|
line-height: 41px !important;
|
|
}
|
|
|
|
.questions-container {
|
|
border: 2px dashed #ddd;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
min-height: 200px;
|
|
}
|
|
|
|
.question-item {
|
|
background: #fff;
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.question-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.question-number {
|
|
background: #AA20FF;
|
|
color: white;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
margin-right: 15px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.question-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 0.85em;
|
|
border-radius: 4px;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #c82333;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #545b62;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: end;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
flex: 1;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.options-container {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.option-item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.option-input {
|
|
flex: 1;
|
|
}
|
|
|
|
.btn-add-option {
|
|
background: #28a745;
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 15px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.btn-add-option:hover {
|
|
background: #218838;
|
|
}
|
|
|
|
.btn-add-question {
|
|
width: 100%;
|
|
padding: 15px;
|
|
background: #AA20FF;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 1em;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.btn-add-question:hover {
|
|
background: #8A1ACC;
|
|
}
|
|
|
|
.form-actions {
|
|
text-align: center;
|
|
padding-top: 30px;
|
|
border-top: 1px solid #e9ecef;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #AA20FF;
|
|
color: white;
|
|
padding: 12px 30px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 1em;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
margin: 0 10px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #8A1ACC;
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: #6c757d;
|
|
border: 1px solid #6c757d;
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
background: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.empty-questions {
|
|
text-align: center;
|
|
color: #666;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.empty-questions i {
|
|
font-size: 3em;
|
|
margin-bottom: 15px;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
/* 반응형 */
|
|
@media (max-width: 768px) {
|
|
.template-form-container {
|
|
margin: 10px;
|
|
}
|
|
|
|
.form-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.form-row {
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.question-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.question-actions {
|
|
margin-left: 0;
|
|
}
|
|
} |