|
|
@@ -1,83 +1,171 @@
|
|
|
-.picture-editor-wrap_layer {
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- left: 100% ;
|
|
|
- margin-left: 10px;
|
|
|
- bottom: 0px;
|
|
|
- z-index: 10;
|
|
|
- width: 120px;
|
|
|
- background: #535353;
|
|
|
- padding: 10px;
|
|
|
- padding-right: 0px;
|
|
|
- padding-top: 0px;
|
|
|
- border-radius: 5px;
|
|
|
- overflow: auto;
|
|
|
- &~.picture-editor-wrap_edit {
|
|
|
- right: -440px;
|
|
|
- }
|
|
|
- &:before {
|
|
|
- content: "";
|
|
|
- width: 100%;
|
|
|
- height: 10px;
|
|
|
- display: block;
|
|
|
- background: #535353;
|
|
|
- position:sticky;
|
|
|
- top:0;
|
|
|
- z-index: 10;
|
|
|
+.picture-editor-wrap_layer.layer-panel {
|
|
|
+ position: fixed;
|
|
|
+ top: 85px;
|
|
|
+ left: 0;
|
|
|
+ width: 210px;
|
|
|
+ height: 260px;
|
|
|
+ background: #ffffff;
|
|
|
+ color: #222;
|
|
|
+ padding: 8px 10px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ overflow: hidden;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ z-index: 12;
|
|
|
|
|
|
+ .layer-panel__header {
|
|
|
+ display: flex;
|
|
|
+ align-items: baseline;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 4px 2px 8px;
|
|
|
+ border-bottom: 1px solid #f0f0f0;
|
|
|
+ }
|
|
|
+ .layer-panel__title {
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ .layer-panel__sub {
|
|
|
+ font-size: 11px;
|
|
|
+ color: #999;
|
|
|
}
|
|
|
|
|
|
+ .layer-panel__list {
|
|
|
+ flex: 1;
|
|
|
+ overflow: auto;
|
|
|
+ padding: 6px 0;
|
|
|
+ }
|
|
|
|
|
|
- .item {
|
|
|
- width: 102px;
|
|
|
- height: 102px;
|
|
|
- margin-bottom: 10px;
|
|
|
- border: 1px solid #ddd;
|
|
|
-
|
|
|
- &.active {
|
|
|
- border: 1px solid $primary2;
|
|
|
- box-shadow: 0 0 5px $primary2 ;
|
|
|
+ .layer-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 6px;
|
|
|
+ border-radius: 4px;
|
|
|
+ background: #fff;
|
|
|
+ border: 1px solid transparent;
|
|
|
+ margin-bottom: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all .15s ease;
|
|
|
+ }
|
|
|
+ .layer-item:hover {
|
|
|
+ border-color: #dcdcdc;
|
|
|
+ background: #fafafa;
|
|
|
+ }
|
|
|
+ .layer-item.active {
|
|
|
+ border-color: $primary1;
|
|
|
+ box-shadow: 0 0 0 1px rgba($primary1,0.35);
|
|
|
+ background: #f5fbff;
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
+ .layer-item__preview {
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+ border-radius: 4px;
|
|
|
+ background: #f5f5f5;
|
|
|
+ border: 1px solid #eee;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ .layer-item__preview img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: contain;
|
|
|
+ }
|
|
|
|
|
|
- &.save-image {
|
|
|
- border: 1px #535353 dashed;
|
|
|
- font-size: 14px;
|
|
|
- background: url('~@/assets/images/bg-image.png') #535353;
|
|
|
- background-size: 12px 12px;
|
|
|
- color: #EEEEEE;
|
|
|
- cursor: pointer;
|
|
|
- margin-top: 0;
|
|
|
- position: sticky;
|
|
|
- top:10px;
|
|
|
+ .layer-item__meta {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 4px;
|
|
|
+ }
|
|
|
|
|
|
- z-index: 10;
|
|
|
- .el-icon-plus {
|
|
|
- color: #eee;
|
|
|
- }
|
|
|
+ .layer-item__name {
|
|
|
+ width: 100%;
|
|
|
+ background: #fafafa;
|
|
|
+ border: 1px solid #e2e2e2;
|
|
|
+ border-radius: 4px;
|
|
|
+ color: #333;
|
|
|
+ padding: 5px 6px;
|
|
|
+ outline: none;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ .layer-item__name:focus {
|
|
|
+ border-color: $primary1;
|
|
|
+ box-shadow: 0 0 0 1px rgba($primary1,0.25);
|
|
|
+ }
|
|
|
|
|
|
- &:hover {
|
|
|
- border: 1px #6f6f6f dashed;
|
|
|
- }
|
|
|
+ .layer-item__ops {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 6px;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
|
|
|
+ .op-text {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #666;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .op-text:hover {
|
|
|
+ color: $primary1;
|
|
|
+ }
|
|
|
|
|
|
- &.disabled {
|
|
|
- opacity: .4;
|
|
|
- cursor: not-allowed;
|
|
|
- border: 1px #535353 dashed;
|
|
|
- box-shadow: none;
|
|
|
- }
|
|
|
- }
|
|
|
+ .op-btn.more {
|
|
|
+ min-width: 32px;
|
|
|
+ height: 24px;
|
|
|
+ padding: 0 6px;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #e2e2e2;
|
|
|
+ background: #fff;
|
|
|
+ color: #444;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 22px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .op-btn.more:hover {
|
|
|
+ border-color: $primary1;
|
|
|
+ color: $primary1;
|
|
|
+ }
|
|
|
|
|
|
- img {
|
|
|
- object-fit: contain;
|
|
|
- width: 100px;
|
|
|
- height: 100px;
|
|
|
- }
|
|
|
+ .layer-item__menu {
|
|
|
+ position: absolute;
|
|
|
+ top: 26px;
|
|
|
+ right: 0;
|
|
|
+ min-width: 120px;
|
|
|
+ background: #fff;
|
|
|
+ border: 1px solid #e2e2e2;
|
|
|
+ border-radius: 4px;
|
|
|
+ box-shadow: 0 6px 16px rgba(0,0,0,0.12);
|
|
|
+ padding: 4px 0;
|
|
|
+ z-index: 20;
|
|
|
+ }
|
|
|
+ .menu-item {
|
|
|
+ padding: 6px 12px;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #444;
|
|
|
+ cursor: pointer;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+ .menu-item:hover {
|
|
|
+ background: #f5f5f5;
|
|
|
+ color: $primary1;
|
|
|
+ }
|
|
|
+ .menu-item.danger {
|
|
|
+ color: #e24b4b;
|
|
|
+ }
|
|
|
+ .menu-item.danger:hover {
|
|
|
+ background: #fff3f3;
|
|
|
+ color: #e24b4b;
|
|
|
}
|
|
|
|
|
|
- .matting {
|
|
|
- // position: absolute;
|
|
|
- // visibility: hidden;
|
|
|
+ .layer-panel__empty {
|
|
|
+ flex: 1;
|
|
|
+ color: #888;
|
|
|
+ font-size: 12px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
}
|
|
|
}
|