UNPKG

zent

Version:

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

109 lines (107 loc) 2.45 kB
.zent-image-p-body { position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-transition: top 0.5s; transition: top 0.5s; -webkit-box-sizing: border-box; box-sizing: border-box; z-index: 1; } .zent-image-p-body .zent-show-image { max-width: 90vw; max-height: 90vh; } .zent-image-p-close { position: fixed; text-align: center; border-radius: 40px; background: rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); right: 20px; top: 20px; width: 40px; height: 40px; cursor: pointer; z-index: 1 } .zent-image-p-close:hover { background: #fff; } .zent-image-p-close i { position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .zent-image-p-footer { position: fixed; border-radius: 40px; background: rgba(255, 255, 255, 0.6); -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); bottom: 20px; left: 50%; -webkit-transform: translate(-50%); transform: translate(-50%); height: 40px; line-height: 40px; color: #333; z-index: 2; font-size: 16px } .zent-image-p-footer.image-p-footer-paging { min-width: 216px; } .zent-image-p-footer.image-p-footer-paging.show-rotate-btn { min-width: 308px; } .zent-image-p-footer.show-rotate-btn { min-width: 92px; } .zent-image-p-footer .zent-image-p-action { display: inline-block; cursor: pointer; padding: 0 30px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; font-size: 16px; } .zent-image-p-footer .zent-image-p-action:hover { background: #fff; } .zent-image-p-footer .zent-image-p-action:first-child { border-radius: 40px 0 0 40px; } .zent-image-p-footer .zent-image-p-action:last-child { border-radius: 0 40px 40px 0; } .zent-image-p-footer .zent-image-p-action.rotate-action { border-radius: 40px; } .zent-image-p-backdrop { position: fixed; top: 0; right: 0; left: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.6); height: 100%; z-index: 1050; } .zent-image-p-wrap { position: fixed; overflow: auto; top: 0; right: 0; bottom: 0; left: 0; -webkit-overflow-scrolling: touch; outline: 0; }