327 行
6.1 KiB
CSS
327 行
6.1 KiB
CSS
/**
|
|
* 后台 · 服务区域新增 / 编辑表单
|
|
* 仅作用于 fc/area 的 add / edit 弹窗,不影响其他后台页面。
|
|
*/
|
|
|
|
.fc-area-form {
|
|
padding: 4px 6px 0;
|
|
}
|
|
|
|
.fc-area-panel {
|
|
margin-bottom: 18px;
|
|
padding: 18px 20px;
|
|
background: #ffffff;
|
|
border: 1px solid #e6f2ec;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.fc-area-panel__head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.fc-area-panel__title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: #04301e;
|
|
}
|
|
|
|
.fc-area-panel__desc {
|
|
font-size: 12px;
|
|
color: #7f9b8f;
|
|
}
|
|
|
|
.fc-area-field {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.fc-area-field > label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #2f5a46;
|
|
}
|
|
|
|
.fc-area-field > label em {
|
|
margin-left: 4px;
|
|
font-style: normal;
|
|
color: #f5a623;
|
|
}
|
|
|
|
.fc-area-field .form-control {
|
|
height: 40px;
|
|
border-color: #d6f3e3;
|
|
border-radius: 8px;
|
|
box-shadow: none;
|
|
color: #04291c;
|
|
}
|
|
|
|
.fc-area-field .form-control:focus {
|
|
border-color: #00e070;
|
|
box-shadow: 0 0 0 3px rgba(0, 224, 112, 0.12);
|
|
}
|
|
|
|
.fc-area-field .help-block {
|
|
margin: 6px 0 0;
|
|
font-size: 12px;
|
|
color: #8fb3a3;
|
|
}
|
|
|
|
.fc-area-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin: 0 -8px;
|
|
}
|
|
|
|
.fc-area-grid > .fc-area-field {
|
|
width: 33.3333%;
|
|
padding: 0 8px;
|
|
position: relative;
|
|
}
|
|
|
|
.fc-area-field .msg-box {
|
|
display: block;
|
|
position: static !important;
|
|
margin-top: 4px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.fc-area-select-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.fc-area-select-wrap .fc-area-input {
|
|
padding-right: 48px;
|
|
}
|
|
|
|
.fc-area-select-arrow {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #64748b;
|
|
font-size: 15px;
|
|
pointer-events: none;
|
|
transition: transform 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.fc-area-select-wrap.is-open .fc-area-select-arrow {
|
|
transform: translateY(-50%) rotate(180deg);
|
|
color: #00a854;
|
|
}
|
|
|
|
.fc-area-select-clear {
|
|
position: absolute;
|
|
right: 30px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #94a3b8;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
display: none;
|
|
line-height: 1;
|
|
padding: 2px;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.fc-area-select-clear:hover {
|
|
color: #475569;
|
|
}
|
|
|
|
.fc-area-select-wrap.has-value:hover .fc-area-select-clear,
|
|
.fc-area-select-wrap.has-value.is-open .fc-area-select-clear {
|
|
display: inline-block;
|
|
}
|
|
|
|
.fc-area-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1050;
|
|
display: none;
|
|
max-height: 260px;
|
|
overflow-y: auto;
|
|
background: #ffffff;
|
|
border: 1px solid #ccebd9;
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.fc-area-select-wrap.is-open .fc-area-dropdown {
|
|
display: block;
|
|
}
|
|
|
|
.fc-area-dropdown__header {
|
|
padding: 6px 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.fc-area-dropdown__item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
color: #1e293b;
|
|
cursor: pointer;
|
|
transition: background-color 0.12s ease, color 0.12s ease;
|
|
}
|
|
|
|
.fc-area-dropdown__item:hover {
|
|
background: #f2fef7;
|
|
color: #00a854;
|
|
}
|
|
|
|
.fc-area-dropdown__item.is-active {
|
|
background: #e6f9ef;
|
|
color: #00a854;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.fc-area-dropdown__main {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.fc-area-dropdown__sub {
|
|
flex-shrink: 0;
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.fc-area-dropdown__tag {
|
|
flex-shrink: 0;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
background: #ecfdf5;
|
|
color: #059669;
|
|
border: 1px solid #a7f3d0;
|
|
}
|
|
|
|
.fc-area-dropdown__empty {
|
|
padding: 12px;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
text-align: center;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.fc-area-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 14px;
|
|
padding: 10px 14px;
|
|
background: #f2fef7;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
color: #3f6b57;
|
|
}
|
|
|
|
.fc-area-preview strong {
|
|
color: #04874a;
|
|
}
|
|
|
|
.fc-area-coord-tip {
|
|
margin-top: 12px;
|
|
font-size: 12px;
|
|
color: #8fb3a3;
|
|
}
|
|
|
|
.fc-area-coord-tip.is-set {
|
|
color: #04874a;
|
|
}
|
|
|
|
.fc-area-coord-tip.is-missing {
|
|
color: #c47b00;
|
|
}
|
|
|
|
.fc-area-map-btn {
|
|
width: 100%;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg, #00d26a, #00a854);
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
box-shadow: 0 4px 12px rgba(0, 210, 106, 0.24);
|
|
transition: filter 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.fc-area-map-btn:hover,
|
|
.fc-area-map-btn:focus {
|
|
color: #ffffff;
|
|
filter: brightness(0.96);
|
|
}
|
|
|
|
.fc-area-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding: 4px 0 8px;
|
|
}
|
|
|
|
.fc-area-actions .btn,
|
|
.fc-area-actions .fc-area-submit-btn {
|
|
min-width: 128px;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg, #00d26a, #00a854) !important;
|
|
color: #ffffff !important;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
box-shadow: 0 4px 14px rgba(0, 210, 106, 0.28);
|
|
opacity: 1 !important;
|
|
transition: filter 0.15s ease, transform 0.15s ease;
|
|
}
|
|
|
|
.fc-area-actions .btn:hover,
|
|
.fc-area-actions .btn:focus,
|
|
.fc-area-actions .fc-area-submit-btn:hover,
|
|
.fc-area-actions .fc-area-submit-btn:focus {
|
|
background: linear-gradient(135deg, #00c462, #00964b) !important;
|
|
color: #ffffff !important;
|
|
filter: brightness(0.98);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.fc-area-grid > .fc-area-field {
|
|
width: 100%;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.fc-area-panel {
|
|
padding: 14px;
|
|
}
|
|
|
|
.fc-area-panel__head {
|
|
display: block;
|
|
}
|
|
|
|
.fc-area-panel__desc {
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.fc-area-map-btn {
|
|
margin-top: 12px;
|
|
}
|
|
}
|