diff --git a/src/assets/css/style.css b/src/assets/css/style.css index ac0dcd0..a697b4c 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -96,3 +96,10 @@ body, --el-color-primary-dark-2: #565656; /* 深灰色(加深20%) */ } +.mini-scrollbar::-webkit-scrollbar { + width: 0.4rem; +} +.mini-scrollbar::-webkit-scrollbar-thumb { + border-radius: 0.4rem; + background: rgba(0, 0, 0, 0.2); +} diff --git a/src/assets/css/style.less b/src/assets/css/style.less index fd26490..cece99a 100644 --- a/src/assets/css/style.less +++ b/src/assets/css/style.less @@ -105,3 +105,15 @@ body, --el-color-primary-light-9: #e3e3e3; /* 极浅的灰色(混合60%白) */ --el-color-primary-dark-2: #565656; /* 深灰色(加深20%) */ } + + +// 迷你滚动条 +.mini-scrollbar { + &::-webkit-scrollbar { + width: 0.4rem; + } + &::-webkit-scrollbar-thumb { + border-radius: 0.4rem; + background: rgba(0, 0, 0, 0.2); + } +} diff --git a/src/components/Canvas/DepthCanvas/components/details-panel/index.vue b/src/components/Canvas/DepthCanvas/components/details-panel/index.vue index b8d6506..d7b189b 100644 --- a/src/components/Canvas/DepthCanvas/components/details-panel/index.vue +++ b/src/components/Canvas/DepthCanvas/components/details-panel/index.vue @@ -7,7 +7,7 @@ -
+
@@ -51,7 +51,7 @@ top: 2.2rem; right: 3rem; width: 28.8rem; - max-height: 80%; + max-height: 90%; display: flex; flex-direction: column; gap: 1.6rem; diff --git a/src/components/Canvas/DepthCanvas/components/layer-panel/index.vue b/src/components/Canvas/DepthCanvas/components/layer-panel/index.vue index 01e0b4c..20c8423 100644 --- a/src/components/Canvas/DepthCanvas/components/layer-panel/index.vue +++ b/src/components/Canvas/DepthCanvas/components/layer-panel/index.vue @@ -20,7 +20,7 @@ width: 0; top: 2.2rem; left: 3rem; - max-height: 80%; + max-height: 90%; display: flex; flex-direction: column; gap: 1.6rem; diff --git a/src/components/Canvas/DepthCanvas/components/layer-panel/layer-list.vue b/src/components/Canvas/DepthCanvas/components/layer-panel/layer-list.vue index e0339fd..fa94ce1 100644 --- a/src/components/Canvas/DepthCanvas/components/layer-panel/layer-list.vue +++ b/src/components/Canvas/DepthCanvas/components/layer-panel/layer-list.vue @@ -9,7 +9,7 @@
-
+
- + {{ before }} .decorate { - width: 2px; + width: 0.2rem; background-color: var(--depth-input-decorate-color, rgba(230, 230, 231, 1)); - border-radius: 2px; + border-radius: 0.2rem; height: 75%; - margin-right: var(--depth-input-decorate-margin-right, 4px); + margin-right: var(--depth-input-decorate-margin-right, 0.4rem); } > .iconfont { - font-size: 12px; + font-size: 1.2rem; color: #000; - margin-right: 4px; + margin-right: 0.4rem; } > .before { - font-size: 12px; + font-size: 1.2rem; color: #000; - margin-right: 4px; + margin-right: 0.4rem; } > .after { - font-size: 12px; + font-size: 1.2rem; color: var(--depth-input-after-color, #000); - margin-left: 2px; + margin-left: 0.2rem; } > input { - font-size: 12px; + font-size: 1.2rem; width: 0; height: 100%; flex: 1; - margin-right: var(--depth-input-input-margin-right, 0); + margin-right: var(--depth-input-input-margin-right, 0rem); text-align: var(--depth-input-input-font-align, right); outline: none; border: none; @@ -277,9 +277,9 @@ } &[type='color'] { flex: 0.5; - border-radius: 2px; + border-radius: 0.2rem; height: 70%; - border: 1px solid rgb(42, 42, 42); + border: 0.1rem solid rgb(42, 42, 42); display: block; &::-webkit-color-swatch-wrapper { padding: 0; diff --git a/src/components/Canvas/DepthCanvas/components/tools/depth-offset-tool.vue b/src/components/Canvas/DepthCanvas/components/tools/depth-offset-tool.vue index dd0a210..f8a6108 100644 --- a/src/components/Canvas/DepthCanvas/components/tools/depth-offset-tool.vue +++ b/src/components/Canvas/DepthCanvas/components/tools/depth-offset-tool.vue @@ -152,52 +152,52 @@ justify-content: center; > * { flex: 1; - margin-right: 10px; + margin-right: 1rem; &:last-child { margin-right: 0; } } } > .dish { - width: 115px; - height: 115px; - border: 1px solid #eaeaea; - border-radius: 3.4px; + width: 11.5rem; + height: 11.5rem; + border: 0.1rem solid #eaeaea; + border-radius: 0.4rem; cursor: pointer; position: relative; background-color: #f6f6f6; - margin-top: 20px; + margin-top: 2rem; > * { position: absolute; pointer-events: none; user-select: none; } > img { - width: 12px; - height: 12px; - bottom: 3.5px; - right: 3.5px; + width: 1.2rem; + height: 1.2rem; + bottom: 0.35rem; + right: 0.35rem; } > .ball { top: 50%; left: 50%; transform: translate(-50%, -50%); - width: 8.5px; - height: 8.5px; - border: 1px solid #fff; + width: 0.85rem; + height: 0.85rem; + border: 0.1rem solid #fff; background-color: #333; border-radius: 50%; - box-shadow: 0px 0.68px 0.17px 0px rgba(0, 0, 0, 0.26); + box-shadow: 9 0.07rem 0.02rem 0 rgba(0, 0, 0, 0.26); } > .tip { - font-size: 8.5px; + font-size: 0.85rem; color: #000; - line-height: 24px; + line-height: 2.4rem; &.x { top: 50%; right: 0%; transform: translate(100%, -50%); - padding-left: 6px; + padding-left: 0.6rem; } &.y { top: 0%; @@ -216,15 +216,15 @@ transform: translate(-50%, -50%); &.x { width: 100%; - border-top-width: 1px; + border-top-width: 0.1rem; } &.y { height: 100%; - border-left-width: 1px; + border-left-width: 0.1rem; } &.z { width: 50%; - border-top-width: 1px; + border-top-width: 0.1rem; border-color: #454754; transform: translate(0%, -50%) rotateZ(var(--rotateZ)); transform-origin: left center; diff --git a/src/components/Canvas/DepthCanvas/components/tools/depth-select.vue b/src/components/Canvas/DepthCanvas/components/tools/depth-select.vue index 43804df..4dcf236 100644 --- a/src/components/Canvas/DepthCanvas/components/tools/depth-select.vue +++ b/src/components/Canvas/DepthCanvas/components/tools/depth-select.vue @@ -22,12 +22,12 @@