| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- .picture-editor-wrap_layer.layer-panel {
- position: fixed;
- top: 85px;
- left: 0;
- width: 280px;
- height: 410px;
- 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;
- }
- .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: 28px;
- height: 28px;
- border-radius: 4px;
- background: #f5f5f5;
- border: 1px solid #eee;
- display: flex;
- align-items: center;
- justify-content: center;
- overflow: hidden;
- margin-right: 5px;
- }
- .layer-item__preview img {
- width: 100%;
- height: 100%;
- object-fit: contain;
- }
- .layer-item__meta {
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .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);
- }
- .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;
- }
- .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;
- }
- .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;
- }
- .layer-panel__empty {
- flex: 1;
- color: #888;
- font-size: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
|