UNPKG

@forchange/aui

Version:

ai-boss 业务 ui 组件库

105 lines (104 loc) 2.15 kB
.aui-preview-image { z-index: 20000; width: 100vw; height: 100vh; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.55); transition: all 0.2s; padding-top: 5px; } .aui-preview-image-close-x { position: absolute; right: 15px; top: 0; font-size: 40px; color: #ffffff; font-weight: normal; cursor: pointer; } .aui-preview-image-pagenation { display: flex; justify-content: center; align-items: center; position: absolute; cursor: pointer; width: 2rem; height: 2rem; } .aui-preview-image-pagenation .anticon { font-size: 1.5rem; opacity: 0.6; } .aui-preview-image-pagenation-left { top: 50vh; left: 1vw; transition: all ease-in-out 0.3s; } .aui-preview-image-pagenation-left:hover .anticon-left { opacity: 1; font-weight: bold; color: #ffffff; transform: scale(2); } .aui-preview-image-pagenation-right { top: 50vh; right: 1vw; transition: all ease-in-out 0.3s; } .aui-preview-image-pagenation-right:hover .anticon-right { opacity: 1; font-weight: bold; color: #ffffff; transform: scale(2); } .aui-preview-image-content { display: flex; justify-content: center; align-items: center; height: 85vh; } .aui-preview-image-content-image { width: 55vw; height: 85vh; transition: all ease-in-out 100ms; } .aui-preview-image-footer { height: 15vh; display: flex; justify-content: center; align-items: center; } .aui-preview-image-footer-pagenation { min-width: 700px; width: 55vw; height: 12vh; overflow-x: auto; white-space: nowrap; text-align: center; scroll-snap-type: x mandatory; } .aui-preview-image-footer-pagenation-item { flex: 1; display: inline-block; margin: auto; width: 80px; height: 100px; cursor: pointer; opacity: 0.4; scroll-snap-align: center; margin-right: 15px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: opacity ease-in-out 0.2s; } .aui-preview-image-footer-pagenation-item:not(:last-child) { margin-right: 15px; } .aui-preview-image-footer-pagenation .aui-pagenation-item-active { opacity: 1; transform: scale(1.2); }