UNPKG

zent

Version:

一套前端设计语言和基于React的实现

269 lines (234 loc) 5.57 kB
.zent-sku { background-color: #fff; padding: 10px; border: 1px solid #e5e5e5; } .zent-sku-pop { z-index: 1; } .zent-sku-group { position: relative } .zent-sku-group:hover .group-remove { display: block; } .zent-sku-group .group-title { position: relative; padding: 7px 10px; margin: 0; color: #666; background-color: #f8f8f8; font-size: 12px; line-height: 16px; font-weight: normal; } .zent-sku-group .group-remove { display: none; position: absolute; top: 12px; right: 10px; color: #fff; text-align: center; cursor: pointer; width: 18px; height: 18px; font-size: 14px; line-height: 16px; background: rgba(255, 255, 255, 0.6); border-radius: 10px; text-indent: 0; } .zent-sku-group .sku-group-cont { padding: 0 10px; margin-bottom: 10px; } .zent-sku-group .sku-group-cont .help-block { line-height: 14px; font-size: 12px; margin-top: 6px; margin-bottom: 0; } .zent-sku-group .sku-group-cont .help-block ul li { font-size: 12px; line-height: 12px; } .zent-sku-group .sku-group-cont .help-block:empty { margin-top: 0 !important; } .zent-sku-group h4 { font-size: 12px; font-weight: bold; margin: 0; } .zent-sku-group .addImg-radio { display: inline-block; margin: 3px 0 0 30px; } .zent-sku-group .addImg-radio input { vertical-align: 0; margin-right: 6px; } .zent-sku-group .group-container { color: #666; padding: 10px; margin-bottom: 10px; } .zent-sku-group .group-container .zent-sku-pop { margin: 0; } .zent-sku-group .sku-list ul > li { float: left; width: 20%; text-align: left; } .zent-sku-group .sku-add { display: inline-block; padding: 0 5px; margin: 9px 5px 0; vertical-align: top; font-size: 12px; color: #38f; text-decoration: none; cursor: pointer; } .zent-sku-group .zent-sku-pop { cursor: pointer; font-size: 12px; display: inline-block; padding: 0 5px; margin: 9px 5px 0; vertical-align: top; } .zent-sku .zent-sku-item { background-color: #f8f8f8; padding: 5px; display: inline-block; margin-right: 10px; margin-bottom: 5px; margin-top: 5px; width: 80px; vertical-align: middle; text-align: center; position: relative; border-radius: 2px; cursor: pointer; } .zent-sku .zent-sku-item span { display: block; width: 74px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .zent-sku .zent-sku-item .item-remove { position: absolute; z-index: 2; top: -9px; right: -9px; width: 20px; height: 20px; font-size: 16px; line-height: 18px; color: #fff; text-align: center; cursor: pointer; background: rgba(255, 255, 255, 0.6); border-radius: 10px } .zent-sku .zent-sku-item .item-remove:hover { color: #fff; background: #333; } .zent-sku .zent-sku-item .item-remove.small { top: -8px; right: -8px; width: 18px; height: 18px; font-size: 14px; line-height: 16px; border-radius: 9px; } .zent-sku .zent-sku-item .item-remove { display: none; } .zent-sku .zent-sku-item:hover .item-remove { display: block; } .zent-sku .zent-sku-item.active { margin-bottom: 100px; } .zent-sku .zent-sku-item .upload-img-wrap { position: absolute; top: 36px; left: 0; padding: 2px; width: 84px; background: #fff; border-radius: 4px; border: 1px solid #e5e5e5; } .zent-sku .zent-sku-item .upload-img-wrap img { width: 100%; height: 100%; cursor: pointer; } .zent-sku .zent-sku-item .upload-img-wrap .add-image, .zent-sku .zent-sku-item .upload-img-wrap .zent-upload-trigger { width: 84px; height: 84px; line-height: 84px; text-align: center; background: #fff; font-size: 30px; color: #e5e5e5; cursor: pointer; border: 0; } .zent-sku .zent-sku-item .upload-img-wrap .upload-img { position: relative; width: 84px; height: 84px } .zent-sku .zent-sku-item .upload-img-wrap .upload-img:hover .item-remove { display: inline; } .zent-sku .zent-sku-item .upload-img-wrap .upload-img:hover .img-edit { display: block; } .zent-sku .zent-sku-item .upload-img-wrap .arrow { position: absolute; width: 0; height: 0; top: -5px; left: 44%; border-style: solid; border-color: transparent; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid #333 } .zent-sku .zent-sku-item .upload-img-wrap .arrow::after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; top: 0; margin-left: -10px; border-bottom-color: #fff; border-width: 10px; border-top-width: 0; content: ""; } .zent-sku .zent-sku-item .upload-img-wrap .img-edit { cursor: pointer; display: none; position: absolute; bottom: 0; left: 0; width: 100%; color: #fff; opacity: 0.5; background: #333; }