feat(image-annotate): 选区编辑 + 便利版 UI + 单张输出预设(1.1.0)
This commit is contained in:
1 parent
b9ace636ef
commit
662d7eae77
22 files changed
+3795
-343
No files matched your search
@@ -1338,3 +1338,141 @@
|
||||
.iwb-editor-layer-panel .iwb-layer-vis,
|
||||
.iwb-editor-layer-panel .iwb-layer-lock,
|
||||
.iwb-editor-layer-panel .iwb-layer-del { width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
|
||||
|
||||
/* ================================================================
|
||||
v1.1 便利版 UI(单张处理)
|
||||
只追加、不重写历史样式:旧规则里的魔数定位在这里统一覆盖。
|
||||
分区:顶栏 / 就地选项栏 / 竖工具栏 / 画布浮层 / 状态栏 / toast
|
||||
================================================================ */
|
||||
|
||||
/* ---- 顶栏:精简、一步可达 ---- */
|
||||
.iwb-editor-header { min-height: 44px; padding: 6px 12px; gap: 8px; }
|
||||
.iwb-editor-title em.iwb-editor-doc-size { font-style: normal; font-weight: 400; font-size: 11px; color: #7f849c; margin-left: 6px; }
|
||||
.iwb-editor-optionbar {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
height: 36px; min-height: 36px; padding: 0 12px;
|
||||
background: #202033; border-bottom: 1px solid #313244;
|
||||
color: #a6adc8; font-size: 12px;
|
||||
}
|
||||
.iwb-editor-optionbar-label { color: #7f849c; font-weight: 600; white-space: nowrap; }
|
||||
.iwb-editor-optionbar-body { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
|
||||
.iwb-opt-label { color: #a6adc8; white-space: nowrap; }
|
||||
.iwb-opt-btn {
|
||||
background: #313244; color: #cdd6f4; border: 1px solid transparent; border-radius: 5px;
|
||||
padding: 3px 9px; font-size: 12px; cursor: pointer;
|
||||
}
|
||||
.iwb-opt-btn:hover { background: #45475a; }
|
||||
.iwb-opt-btn.active { background: #4488ff; color: #fff; }
|
||||
.iwb-opt-num {
|
||||
width: 46px; padding: 2px 4px; background: #313244; color: #e8a735;
|
||||
border: 1px solid #45475a; border-radius: 5px; text-align: center; font-size: 12px;
|
||||
}
|
||||
.iwb-opt-current { color: #e8a735; font-weight: 600; white-space: nowrap; }
|
||||
.iwb-opt-hint { color: #7f849c; font-size: 11px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
.iwb-editor-more-wrap, .iwb-editor-export-settings-wrap { position: relative; flex: 0 0 auto; z-index: 45; }
|
||||
.iwb-editor-more-btn, .iwb-editor-panel-toggle, .iwb-editor-export-settings-btn {
|
||||
background: #313244; color: #cdd6f4; border: 1px solid #45475a; border-radius: 6px;
|
||||
padding: 5px 10px; font-size: 12px; cursor: pointer; white-space: nowrap;
|
||||
}
|
||||
.iwb-editor-more-btn:hover, .iwb-editor-panel-toggle:hover, .iwb-editor-export-settings-btn:hover { background: #45475a; }
|
||||
.iwb-editor-panel-toggle { padding: 5px 8px; }
|
||||
.iwb-editor-export-summary { color: #e8a735; margin: 0 2px; }
|
||||
|
||||
.iwb-editor-more-menu, .iwb-editor-export-settings {
|
||||
display: none; position: absolute; top: 34px; z-index: 60;
|
||||
background: #252537; border: 1px solid #45475a; border-radius: 8px;
|
||||
padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.45);
|
||||
}
|
||||
.iwb-editor-more-menu { left: 0; width: 206px; flex-direction: column; gap: 2px; }
|
||||
.iwb-editor-more-menu.open, .iwb-editor-export-settings.open { display: flex; flex-direction: column; gap: 4px; }
|
||||
.iwb-editor-export-settings { right: 0; width: 268px; }
|
||||
.iwb-editor-more-menu button, .iwb-editor-export-row button {
|
||||
background: transparent; color: #cdd6f4; border: 0; border-radius: 5px;
|
||||
padding: 6px 8px; font-size: 12px; text-align: left; cursor: pointer; white-space: nowrap;
|
||||
}
|
||||
.iwb-editor-more-menu button:hover, .iwb-editor-export-row button:hover { background: #3b3d52; }
|
||||
.iwb-editor-more-menu kbd { float: right; color: #7f849c; font-size: 10px; }
|
||||
.iwb-editor-more-sep { height: 1px; background: #45475a; margin: 4px 0; }
|
||||
.iwb-editor-export-row { display: flex; align-items: center; gap: 4px; }
|
||||
.iwb-editor-export-row > span { width: 34px; flex: 0 0 34px; color: #7f849c; font-size: 11px; }
|
||||
.iwb-editor-export-row button { flex: 1 1 auto; text-align: center; background: #313244; }
|
||||
.iwb-editor-export-row button.active { background: #4488ff; color: #fff; }
|
||||
.iwb-editor-export-note { color: #7f849c; font-size: 11px; border-top: 1px solid #313244; padding-top: 6px; }
|
||||
.iwb-editor-btn-download { background: #1a7f37 !important; color: #fff !important; }
|
||||
.iwb-editor-btn-download:hover { background: #15803d !important; }
|
||||
|
||||
/* ---- 竖工具栏:真正固定在左侧,给 main 留出 56px ---- */
|
||||
.iwb-editor-header > .iwb-editor-tools {
|
||||
position: fixed !important; left: 8px !important; top: 112px !important;
|
||||
width: 40px !important; max-height: calc(100vh - 128px);
|
||||
flex-direction: column; padding: 5px !important; border-radius: 10px;
|
||||
overflow-y: auto; overflow-x: hidden; scrollbar-width: none; z-index: 50;
|
||||
}
|
||||
.iwb-editor-header > .iwb-editor-tools::-webkit-scrollbar { display: none; }
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-tool,
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-action { width: 30px !important; height: 30px !important; min-width: 30px; flex: 0 0 auto; }
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-divider { width: 22px; height: 1px; margin: 3px 0; flex: 0 0 auto; }
|
||||
.iwb-editor-header > .iwb-editor-tools .iwb-editor-fill-btn { width: 30px !important; padding: 3px 0 !important; font-size: 10px; writing-mode: vertical-rl; }
|
||||
.iwb-editor-main { padding-left: 56px; }
|
||||
.iwb-editor-main > .iwb-editor-layer-panel { flex: 0 0 260px !important; min-width: 260px !important; width: 260px !important; }
|
||||
.iwb-editor-left { flex: 0 0 220px !important; min-width: 220px !important; width: 220px !important; }
|
||||
.iwb-editor-overlay.panels-collapsed .iwb-editor-layer-panel,
|
||||
.iwb-editor-overlay.panels-collapsed .iwb-editor-left { display: none !important; }
|
||||
.iwb-editor-zoom-hint { display: none !important; }
|
||||
|
||||
/* ---- 交互层:蚂蚁线 / 笔刷环各自独立,互不擦除 ---- */
|
||||
.iwb-editor-selection-overlay, .iwb-editor-cursor-overlay {
|
||||
position: absolute; top: 0; left: 0; display: block; pointer-events: none;
|
||||
background: transparent !important;
|
||||
}
|
||||
.iwb-editor-selection-overlay { z-index: 11; }
|
||||
.iwb-editor-cursor-overlay { z-index: 12; }
|
||||
|
||||
/* ---- 选区浮动操作条(体验后再定去留;纯视图,可随时替换) ---- */
|
||||
.iwb-editor-sel-bar {
|
||||
display: none; position: absolute; z-index: 30; align-items: center; gap: 4px;
|
||||
padding: 5px 6px; background: rgba(24,24,37,0.96);
|
||||
border: 1px solid #45475a; border-radius: 8px;
|
||||
box-shadow: 0 8px 26px rgba(0,0,0,0.45); white-space: nowrap;
|
||||
}
|
||||
.iwb-editor-sel-bar.as-menu { border-color: #4488ff; }
|
||||
.iwb-editor-sel-bar .iwb-editor-sel-info {
|
||||
color: #7f849c; font-size: 11px; padding: 0 6px;
|
||||
border-right: 1px solid #45475a; margin-right: 2px; font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.iwb-editor-sel-bar button {
|
||||
background: #313244; color: #cdd6f4; border: 1px solid transparent; border-radius: 5px;
|
||||
padding: 4px 8px; font-size: 12px; cursor: pointer;
|
||||
}
|
||||
.iwb-editor-sel-bar button:hover:not(:disabled) { background: #4488ff; color: #fff; }
|
||||
.iwb-editor-sel-bar button[data-sel-cmd="sel.delete"]:hover:not(:disabled) { background: #cf222e; }
|
||||
.iwb-editor-sel-bar button:disabled { opacity: 0.35; cursor: not-allowed; }
|
||||
|
||||
/* ---- 状态栏 / toast ---- */
|
||||
.iwb-editor-statusbar {
|
||||
display: flex; align-items: center; gap: 14px;
|
||||
height: 26px; min-height: 26px; padding: 0 12px;
|
||||
background: #181825; border-top: 1px solid #313244;
|
||||
color: #a6adc8; font-size: 11px; font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.iwb-editor-statusbar span + span { border-left: 1px solid #313244; padding-left: 14px; }
|
||||
.iwb-editor-status-tool { margin-left: auto; color: #e8a735; }
|
||||
.iwb-editor-toast {
|
||||
position: fixed; left: 50%; bottom: 46px; z-index: 1000000;
|
||||
transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
|
||||
transition: opacity 0.2s, transform 0.2s;
|
||||
background: #313244; color: #cdd6f4; padding: 8px 14px; border-radius: 8px;
|
||||
font-size: 12px; max-width: 80vw; box-shadow: 0 8px 26px rgba(0,0,0,0.45);
|
||||
}
|
||||
.iwb-editor-toast.show { opacity: 1; transform: translate(-50%, 0); }
|
||||
.iwb-editor-toast-success { background: #1a7f37; color: #fff; }
|
||||
.iwb-editor-toast-error { background: #cf222e; color: #fff; }
|
||||
.iwb-editor-toast-warn { background: #b06a00; color: #fff; }
|
||||
.iwb-editor-toast-info { background: #2f6fed; color: #fff; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.iwb-opt-hint, .iwb-editor-optionbar-tip { display: none; }
|
||||
.iwb-editor-export-actions .iwb-editor-btn-cancel { display: none; }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user