|
|
|
|
|
|
|
#layer-editor-modal { |
|
display: none; |
|
position: fixed; |
|
z-index: 9999; |
|
left: 0; |
|
top: 0; |
|
width: 100%; |
|
height: 100%; |
|
overflow: auto; |
|
background-color: rgba(0, 0, 0, 0.5); |
|
opacity: 0; |
|
transition: opacity 0.3s ease; |
|
} |
|
|
|
#layer-editor-modal.active { |
|
opacity: 1; |
|
} |
|
|
|
#layer-editor-modal .modal-content { |
|
background-color: #fff; |
|
margin: 10% auto; |
|
padding: 25px; |
|
border-radius: 8px; |
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); |
|
width: 80%; |
|
max-width: 600px; |
|
position: relative; |
|
transform: translateY(-20px); |
|
transition: transform 0.3s ease; |
|
overflow: hidden; |
|
} |
|
|
|
#layer-editor-modal.active .modal-content { |
|
transform: translateY(0); |
|
} |
|
|
|
|
|
#layer-editor-modal[data-visible="true"] { |
|
|
|
|
|
} |
|
|
|
.modal-title { |
|
color: #2c3e50; |
|
margin-top: 0; |
|
margin-bottom: 20px; |
|
padding-bottom: 10px; |
|
border-bottom: 1px solid #eee; |
|
} |
|
|
|
|
|
.close-modal { |
|
position: absolute; |
|
right: 20px; |
|
top: 15px; |
|
font-size: 24px; |
|
font-weight: bold; |
|
cursor: pointer; |
|
color: #aaa; |
|
transition: color 0.2s ease; |
|
z-index: 10; |
|
} |
|
|
|
.close-modal:hover { |
|
color: #333; |
|
} |
|
|
|
|
|
.layer-form { |
|
margin-bottom: 20px; |
|
overflow: auto; |
|
max-height: 60vh; |
|
} |
|
|
|
.form-field { |
|
margin-bottom: 15px; |
|
} |
|
|
|
.form-field label { |
|
display: block; |
|
font-weight: 600; |
|
margin-bottom: 5px; |
|
color: #2c3e50; |
|
} |
|
|
|
.form-field input, |
|
.form-field select { |
|
width: 100%; |
|
padding: 8px 12px; |
|
border: 1px solid #ddd; |
|
border-radius: 4px; |
|
font-size: 14px; |
|
transition: border-color 0.2s ease, box-shadow 0.2s ease; |
|
} |
|
|
|
.form-field input:focus, |
|
.form-field select:focus { |
|
border-color: #3498db; |
|
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2); |
|
outline: none; |
|
} |
|
|
|
.help-text { |
|
display: block; |
|
margin-top: 5px; |
|
color: #7f8c8d; |
|
font-size: 12px; |
|
} |
|
|
|
|
|
.modal-footer { |
|
display: flex; |
|
justify-content: flex-end; |
|
padding-top: 15px; |
|
border-top: 1px solid #eee; |
|
background-color: #fff; |
|
position: relative; |
|
z-index: 5; |
|
} |
|
|
|
.modal-footer button { |
|
padding: 8px 16px; |
|
margin-left: 10px; |
|
border: none; |
|
border-radius: 4px; |
|
font-weight: 600; |
|
cursor: pointer; |
|
|
|
|
|
position: relative; |
|
z-index: 2; |
|
text-rendering: optimizeLegibility; |
|
-webkit-font-smoothing: antialiased; |
|
} |
|
|
|
.save-layer-btn { |
|
background-color: #3498db; |
|
color: white; |
|
|
|
transform: translateZ(0); |
|
} |
|
|
|
.save-layer-btn:hover { |
|
background-color: #2980b9; |
|
} |
|
|
|
|
|
.modal-footer .close-modal { |
|
position: static; |
|
background-color: #e0e0e0; |
|
color: #333; |
|
font-size: 14px; |
|
transform: translateZ(0); |
|
} |
|
|
|
.modal-footer .close-modal:hover { |
|
background-color: #ccc; |
|
} |
|
|
|
|
|
input[type="number"] { |
|
-moz-appearance: textfield; |
|
} |
|
|
|
input[type="number"]::-webkit-outer-spin-button, |
|
input[type="number"]::-webkit-inner-spin-button { |
|
-webkit-appearance: none; |
|
margin: 0; |
|
} |
|
|
|
|
|
.form-field.error input, |
|
.form-field.error select { |
|
border-color: #e74c3c; |
|
} |
|
|
|
.error-message { |
|
color: #e74c3c; |
|
font-size: 12px; |
|
margin-top: 5px; |
|
} |
|
|
|
|
|
@media (max-width: 768px) { |
|
#layer-editor-modal .modal-content { |
|
width: 90%; |
|
margin: 15% auto; |
|
padding: 15px; |
|
} |
|
|
|
.modal-footer { |
|
flex-direction: column; |
|
} |
|
|
|
.modal-footer button { |
|
margin-left: 0; |
|
margin-top: 10px; |
|
} |
|
} |