UNPKG

iep-ui

Version:

An enterprise-class UI design language and Vue-based implementation

357 lines (356 loc) 8.04 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ ::-webkit-scrollbar { width: 6px; background-color: transparent; } /*定义滚动条轨道 内阴影+圆角*/ ::-webkit-scrollbar-track { -webkit-box-shadow: none; border-radius: 4px; background-color: transparent; } /*定义滑块 内阴影+圆角*/ ::-webkit-scrollbar-thumb { border-radius: 6px; -webkit-box-shadow: none; background-color: rgba(144, 147, 153, 0.3); } /*定义最上方和最下方的按钮*/ ::-webkit-scrollbar-button { display: none; background-color: #252540; border: 1px solid #252540; } .ant-image { position: relative; display: inline-block; } .ant-image-img { width: 100%; height: auto; } .ant-image-img-placeholder { background-color: #f5f5f5; background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=); background-repeat: no-repeat; background-position: center center; background-size: 30%; position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .ant-image-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, 0.5); cursor: pointer; opacity: 0; transition: opacity 0.3s; } .ant-image-mask-info .anticon { margin-inline-end: 4px; } .ant-image-mask:hover { opacity: 1; } .ant-image-preview { text-align: center; height: 100%; pointer-events: none; } .ant-image-preview.ant-zoom-enter, .ant-image-preview.antzoom-appear { transform: none; opacity: 0; animation-duration: 0.3s; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .ant-image-preview-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; height: 100%; background-color: rgba(0, 0, 0, 0.45); } .ant-image-preview-mask-hidden { display: none; } .ant-image-preview-wrap { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; outline: 0; -webkit-overflow-scrolling: touch; } .ant-image-preview-body { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; } .ant-image-preview.zoom-enter, .ant-image-preview.zoom-appear { transform: none; opacity: 0; animation-duration: 0.3s; } .ant-image-preview-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; height: 100%; background-color: rgba(0, 0, 0, 0.5); filter: alpha(opacity=50); } .ant-image-preview-mask-hidden { display: none; } .ant-image-preview-img { cursor: grab; transform: scale3d(1, 1, 1); transition: transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s; -webkit-user-select: none; -moz-user-select: none; user-select: none; vertical-align: middle; max-width: 100%; max-height: 100%; pointer-events: auto; } .ant-image-preview-img-wrapper { position: absolute; top: 0; left: 0; right: 0; bottom: 0; transition: transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s; } .ant-image-preview-img-wrapper::before { content: ''; display: inline-block; height: 50%; width: 1px; margin-right: -1px; } .ant-image-preview-moving .ant-image-preview-img { cursor: grabbing; } .ant-image-preview-moving .ant-image-preview-img-wrapper { transition-duration: 0s; } .ant-image-preview-wrap { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; overflow: auto; outline: 0; -webkit-overflow-scrolling: touch; } .ant-image-preview-operations { margin: 0; padding: 0; box-sizing: border-box; pointer-events: auto; list-style: none; position: absolute; display: flex; top: 0; right: 0; width: 100%; align-items: center; flex-direction: row-reverse; z-index: 1; color: #bbb; background: rgba(0, 0, 0, 0.1); } .ant-image-preview-operations-operation { padding: 10px; cursor: pointer; margin-left: 10px; } .ant-image-preview-operations-operation-disabled { pointer-events: none; } .ant-image-preview-operations-operation-disabled svg { fill: #6e6e6e !important; } .ant-image-preview-operations-operation:last-of-type { margin-left: 0; } .ant-image-preview-operations-icon { font-size: 18px; } .ant-image-preview-operations-icon svg { width: 18px; height: 18px; fill: #fff; } .ant-image-preview-switch-left { position: absolute; left: 10px; top: 50%; width: 44px; height: 44px; margin-top: -22px; background: rgba(187, 187, 187, 0.45); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; cursor: pointer; pointer-events: auto; color: #bbb; } .ant-image-preview-switch-left-disabled { background: rgba(187, 187, 187, 0.3); color: #6e6e6e; cursor: not-allowed; } .ant-image-preview-switch-left-disabled > .anticon { cursor: not-allowed; } .ant-image-preview-switch-left > .anticon { font-size: 24px; } .ant-image-preview-switch-right { position: absolute; right: 10px; top: 50%; cursor: pointer; width: 44px; height: 44px; margin-top: -22px; background: rgba(187, 187, 187, 0.45); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: auto; color: #bbb; } .ant-image-preview-switch-right-disabled { background: rgba(187, 187, 187, 0.2); color: #6e6e6e; cursor: not-allowed; } .ant-image-preview-switch-right-disabled > .anticon { cursor: not-allowed; } .ant-image-preview-switch-right > .anticon { font-size: 24px; } .fade-enter, .fade-appear { animation-duration: 0.2s; animation-fill-mode: both; animation-play-state: paused; opacity: 0; animation-timing-function: linear; } .fade-leave { animation-duration: 0.2s; animation-fill-mode: both; animation-play-state: paused; animation-timing-function: linear; } .fade-enter.fade-enter-active, .fade-appear.fade-appear-active { animation-name: rcImageFadeIn; animation-play-state: running; } .fade-leave.fade-leave-active { animation-name: rcImageFadeOut; animation-play-state: running; pointer-events: none; } @keyframes rcImageFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes rcImageFadeOut { 0% { opacity: 1; } 100% { opacity: 0; } } .zoom-enter, .zoom-appear { animation-duration: 0.2s; animation-fill-mode: both; animation-play-state: paused; transform: scale(0); opacity: 0; animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); } .zoom-leave { animation-duration: 0.2s; animation-fill-mode: both; animation-play-state: paused; animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86); } .zoom-enter.zoom-enter-active, .zoom-appear.zoom-appear-active { animation-name: rcImageZoomIn; animation-play-state: running; } .zoom-leave.zoom-leave-active { animation-name: rcImageZoomOut; animation-play-state: running; pointer-events: none; } @keyframes rcImageZoomIn { 0% { transform: scale(0.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } @keyframes rcImageZoomOut { 0% { transform: scale(1); } 100% { transform: scale(0.2); opacity: 0; } }