UNPKG

zent

Version:

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

113 lines (108 loc) 2.6 kB
.zent-image-p-body { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; box-sizing: border-box; z-index: 1; } .zent-image-p-body .zent-image-p-show-image { max-width: 90vw; max-height: 90vh; cursor: zoom-in; } .zent-image-p-body .zent-image-p-show-image.zent-image-p-is-zooming { cursor: zoom-out; } .zent-image-p-close { background: rgba(255, 255, 255, 0.6); background: rgba(var(--theme-rgb-section-bg, var(--theme-rgb-stroke-9, 255, 255, 255)), 0.6); position: fixed; text-align: center; border-radius: 40px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); right: 20px; top: 20px; width: 40px; height: 40px; cursor: pointer; z-index: 2; } .zent-image-p-close:hover { background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-image-p-close i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .zent-image-p-footer { color: #333; color: var(--theme-title-color, var(--theme-stroke-1, #333)); background: rgba(255, 255, 255, 0.6); background: rgba(var(--theme-rgb-section-bg, var(--theme-rgb-stroke-9, 255, 255, 255)), 0.6); position: fixed; border-radius: 40px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); bottom: 20px; left: 50%; transform: translate(-50%); height: 40px; line-height: 40px; z-index: 2; font-size: 16px; } .zent-image-p-footer.zent-image-p-footer-paging { min-width: 216px; } .zent-image-p-footer.zent-image-p-footer-paging.zent-image-p-show-rotate-btn { min-width: 308px; } .zent-image-p-footer.zent-image-p-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; user-select: none; font-size: 16px; min-width: 65px; text-align: center; } .zent-image-p-footer .zent-image-p-action:hover { background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #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.zent-image-p-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; outline: 0; }