- 在 Cargo.toml 中为 Windows 平台添加 windows-sys 依赖,版本为 0.52,包含 Win32_Foundation 和 Win32_System_Registry 特性。 - 更新相关 CSS 文件以改善界面样式,确保在不同主题下的视觉一致性。 - 在 JavaScript 文件中实现围栏标记的绘制和管理功能,增强地图交互体验。
5 lines
5.5 KiB
CSS
5 lines
5.5 KiB
CSS
#geofence-view{background:#020b18;backdrop-filter:none;overflow:hidden}[hidden]{display:none!important}.gf-stage{position:relative;height:100%;min-height:480px}.gf-stage #geofence-map{position:absolute;inset:0}.gf-heading{position:absolute;left:24px;top:22px;right:405px;pointer-events:none}.gf-heading{padding:14px 16px;border-radius:12px;max-width:600px;background:linear-gradient(90deg,#061221ed,#061221bb)}.gf-heading h1{font-size:23px;margin:0 0 8px}.gf-heading p{font-size:12px;color:#b5c6d9;line-height:1.7}.gf-tools{display:flex;flex-wrap:wrap;gap:7px;pointer-events:auto;margin-top:16px}.gf-tools button{background:rgba(6,18,33,.85);font-size:12px}.gf-drawer{position:absolute;right:20px;top:20px;bottom:45px;width:350px;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(179,213,255,.32);border-radius:14px;background:rgba(6,18,33,.40);backdrop-filter:blur(7px) brightness(.55);box-shadow:0 16px 45px #0005}.gf-drawer-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #b3d5ff32}.gf-drawer h2{font-size:17px;margin:0}.gf-scroll{padding:0 18px 18px;overflow:auto;flex:1;min-height:0;scrollbar-width:thin}.gf-section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px;color:#b5c6d9;font-size:12px}.gf-section-title button{padding:5px 9px;font-size:11px}.gf-section-title h3{font-size:13px;margin:0}.gf-entry{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;gap:12px;margin:8px 0;padding:13px;background:rgba(2,11,24,.6);font-size:13px}.gf-entry small{font-size:10px;color:#b5c6d9;white-space:nowrap}.gf-entry[aria-pressed=true]{border-color:#94caff;background:#245d9d40}.gf-entry span{overflow-wrap:anywhere}#gf-list{max-height:220px;overflow:auto}.gf-drawer label{display:block;font-size:12px;color:#b5c6d9;margin:14px 0 7px}.gf-drawer :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;padding:10px;background:rgba(2,11,24,.72);border:1px solid #b3d5ff45;border-radius:7px;color:#e9f0fa;font:inherit;font-size:12px;box-sizing:border-box}.gf-drawer input[type=checkbox]{width:auto;margin-right:8px}.gf-drawer select option{background:#061221}.gf-drawer textarea{resize:vertical}.gf-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gf-field-row input{margin-top:7px}.gf-explain,#gf-vertices-help{font-size:11px;line-height:1.8;color:#b5c6d9}.gf-editor-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;margin-top:16px;padding:12px 0 2px;position:static;background:transparent;border:0;border-top:1px solid #b3d5ff2e}.gf-editor-actions button{width:auto;height:auto;min-height:36px;font-size:12px;padding:8px 14px;box-shadow:none;white-space:nowrap}.gf-editor-actions .primary{width:100%;min-width:0;background:#245d9d}.gf-editor-actions .primary:hover:not(:disabled){transform:none}body.b .gf-drawer .gf-editor-actions{background:transparent;border-color:transparent;border-top:1px solid #b3d5ff2e;box-shadow:none;color:inherit}.gf-footer{padding:10px 18px;background:#061221d9;border-top:1px solid #b3d5ff32}.gf-footer p{margin:0;line-height:1.8;font-size:12px;color:#b5c6d9}.gf-footer p[data-error=true]{color:#ffb8b1}#gf-events{padding:0;list-style:none;margin:0}#gf-events li{padding:12px 0;border-bottom:1px solid #b3d5ff25;font-size:12px;line-height:1.8;overflow-wrap:anywhere}#gf-events time{display:block;color:#b5c6d9;font-size:10px}.gf-map-status{position:absolute;bottom:8px;left:16px;right:16px;margin:0;pointer-events:none;font-size:11px;color:#b5c6d9;background:#061221c9;padding:7px 12px;border-radius:7px;width:fit-content;max-width:calc(100% - 32px)}.gf-stage .maplibregl-ctrl-group{background:#061221d9;border:1px solid #b3d5ff52}.gf-stage .maplibregl-ctrl-icon{filter:invert(1)}.gf-stage .maplibregl-ctrl-attrib{background:#061221d9;color:#b5c6d9}.gf-stage .maplibregl-ctrl-attrib a{color:#b5c6d9}.gf-handle{width:14px;height:14px;border-radius:50%;border:2px solid #e9f0fa;background:#245d9d;cursor:grab}.gf-stage button:focus-visible,.gf-stage input:focus-visible,.gf-stage textarea:focus-visible,.gf-stage select:focus-visible{outline:2px solid #9cceff;outline-offset:3px}.gf-stage button:disabled{opacity:.45;cursor:not-allowed}@supports not (backdrop-filter:blur(7px)){.gf-drawer{background:#061221f5}}@media(max-width:1000px){.gf-drawer{width:320px;right:14px}.gf-heading{right:355px;left:18px}.gf-heading h1{font-size:20px}}@media(max-width:767px),(max-height:570px){#geofence-view{overflow:auto}.gf-stage{height:auto;min-height:100%;padding-top:390px}.gf-stage #geofence-map{height:390px;bottom:auto}.gf-heading{top:18px;left:16px;right:16px}.gf-heading h1{font-size:19px}.gf-heading>p{max-width:100%;font-size:11px}.gf-tools{gap:5px;margin-top:12px}.gf-tools button{font-size:11px;padding:7px 9px}.gf-drawer{position:relative;inset:auto;width:auto;margin:14px;max-height:none;background:rgba(6,18,33,.7)}.gf-scroll{overflow:visible}.gf-map-status{position:relative;bottom:auto;left:auto;margin:14px;width:auto;max-width:none}.gf-editor-actions{position:static;background:none}.gf-stage .maplibregl-ctrl-bottom-right{bottom:auto;top:355px}.gf-field-row{gap:10px}}
|
|
.gf-stage .maplibregl-popup-content{background:#061221;color:#e9f0fa;border:1px solid #b3d5ff52;padding:16px 28px 16px 16px;line-height:1.8;max-width:280px}.gf-stage .maplibregl-popup-close-button{color:#e9f0fa}.gf-stage .maplibregl-popup-tip{border-top-color:#061221}
|
|
|
|
.gf-drawer .gf-switch{display:flex;align-items:center;gap:8px}.gf-drawer .gf-switch input{margin:0;flex:0 0 auto}
|