UNPKG

acud

Version:

acg react 组件库

268 lines (267 loc) • 6.34 kB
/* color */ /* 默认颜色 */ /* 通用-icon */ /* 标签 */ /* 默认颜色 */ /* 其他颜色 */ /* 通用 */ /* 水平 */ /* 垂直 */ /* 序号水平 */ /* 序号垂直 */ .acud-image { position: relative; display: inline-block; } .acud-image-img { width: 100%; height: auto; vertical-align: middle; } .acud-image-img-placeholder { background-color: #F7F7F9; background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4='); background-repeat: no-repeat; background-position: center center; background-size: 30%; } .acud-image-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: rgba(7, 12, 20, 0.5); cursor: pointer; opacity: 0; transition: opacity 0.3s; } .acud-image-mask-info { padding: 0 4px; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .acud-image-mask-info .acudicon { margin-inline-end: 4px; } .acud-image-mask:hover { opacity: 1; } .acud-image-placeholder { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .acud-image-preview { pointer-events: none; height: 100%; text-align: center; } .acud-image-preview.acud-zoom-enter, .acud-image-preview.acud-zoom-appear { transform: none; opacity: 0; animation-duration: 0.3s; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .acud-image-preview-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; height: 100%; background-color: rgba(7, 12, 20, 0.45); } .acud-image-preview-mask-hidden { display: none; } .acud-image-preview-wrap { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; outline: 0; } .acud-image-preview-close { position: fixed; top: 32px; right: 32px; color: #FFFFFF; display: flex; justify-content: center; align-items: center; background-color: rgba(7, 12, 20, 0.1); border-radius: 50%; width: 32px; height: 32px; outline: 0; border: 0; cursor: pointer; transition: all 0.3s; } .acud-image-preview-body { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; } .acud-image-preview-footer { position: fixed; bottom: 32px; left: 50%; display: flex; flex-direction: column; align-items: center; color: rgba(255, 255, 255, 0.65); transform: translateX(-50%); } .acud-image-preview-img { max-width: 100%; max-height: 100%; vertical-align: middle; transform: scale3d(1, 1, 1); cursor: grab; transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s; -webkit-user-select: none; -moz-user-select: none; user-select: none; pointer-events: auto; } .acud-image-preview-img-wrapper { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s; } .acud-image-preview-img-wrapper::before { display: inline-block; width: 1px; height: 50%; margin-right: -1px; content: ''; } .acud-image-preview-moving .acud-image-preview-img { cursor: grabbing; } .acud-image-preview-moving .acud-image-preview-img-wrapper { transition-duration: 0s; } .acud-image-preview-wrap { z-index: 1080; } .acud-image-preview-operations-wrapper { position: fixed; top: 0; right: 0; z-index: 1081; width: 100%; } .acud-image-preview-operations { box-sizing: border-box; margin: 0; padding: 0; color: rgba(7, 12, 20, 0.85); font-size: 14px; font-variant: tabular-nums; line-height: 1.6667; list-style: none; font-feature-settings: 'tnum'; color: #FFFFFF; display: flex; align-items: center; padding: 0 8px; background-color: rgba(0, 0, 0, 0.1); border-radius: 40px; } .acud-image-preview-operations-operation { margin-left: 8px; padding: 8px; cursor: pointer; transition: all 0.3s; } .acud-image-preview-operations-operation .acudicon { font-size: 16px; } .acud-image-preview-operations-operation:hover { background: rgba(7, 12, 20, 0.2); } .acud-image-preview-operations-operation-disabled { color: rgba(255, 255, 255, 0.25); pointer-events: none; } .acud-image-preview-operations-operation:last-of-type { margin-left: 0; } .acud-image-preview-operations-progress { position: absolute; left: 50%; transform: translateX(-50%); } .acud-image-preview-operations-icon { font-size: 16px; } .acud-image-preview-switch-left, .acud-image-preview-switch-right { position: fixed; top: 50%; right: 32px; z-index: 1081; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: rgba(255, 255, 255, 0.85); background: rgba(7, 12, 20, 0.1); border-radius: 50%; transform: translateY(-50%); cursor: pointer; transition: all 0.3s; pointer-events: auto; } .acud-image-preview-switch-left:hover, .acud-image-preview-switch-right:hover { background: rgba(7, 12, 20, 0.2); } .acud-image-preview-switch-left-disabled, .acud-image-preview-switch-right-disabled, .acud-image-preview-switch-left-disabled:hover, .acud-image-preview-switch-right-disabled:hover { color: rgba(255, 255, 255, 0.25); background: rgba(7, 12, 20, 0.1); cursor: not-allowed; } .acud-image-preview-switch-left-disabled > .acudicon, .acud-image-preview-switch-right-disabled > .acudicon, .acud-image-preview-switch-left-disabled:hover > .acudicon, .acud-image-preview-switch-right-disabled:hover > .acudicon { cursor: not-allowed; } .acud-image-preview-switch-left > .acudicon, .acud-image-preview-switch-right > .acudicon { font-size: 16px; } .acud-image-preview-switch-left { left: 32px; } .acud-image-preview-switch-right { right: 32px; }