UNPKG

meri-design-dev

Version:

基于vue框架的ui库

644 lines (524 loc) 12.5 kB
/*! * @meri-design-dev v0.0.13 * (c) 2019-2020 wangyongcun * Released under the MIT License. * 2024-04-29 11:26:20 */ .p-loading16px display: inline-block width: 100% height: 100% line-height: 100% text-align: center .p-loading16px .p-loading16px-line width: 100% height: 100% min-width: 12px min-height: 12px animation: loading16px .5s linear infinite @keyframes loading16px 0% transform: rotate(0) 100% transform: rotate(360deg) @keyframes loading16px 0% transform: rotate(0) 100% transform: rotate(360deg) @keyframes loading16px 0% transform: rotate(0) 100% transform: rotate(360deg) @keyframes loading16px 0% transform: rotate(0) 100% transform: rotate(360deg) .p-icon text-align: center cursor: pointer font-size: 0 .p-icon + .p-icon margin-left: 8px .p-icon svg vertical-align: middle .p-icon svg path transition: fill .3s .p-button position: relative display: inline-flex align-items: center justify-content: center padding-left: 8px padding-right: 8px background-color: $theme border-width: 1px border-style: solid border-radius: 4px transition: all .36s font-size: 0 text-align: center .p-button:after content: '' color: transparent .p-button:before content: '' color: transparent .p-button+.p-button margin-left: 12px .p-button .p-btn-text overflow: hidden white-space: nowrap text-overflow: ellipsis position: relative z-index: 1 user-select: none .p-button .p-button-loading display: inline-block margin-left: 4px vertical-align: middle .p-button-large max-width: 128px min-width: 80px height: 40px line-height: 38px .p-button-large .p-btn-text font-size: 16px .p-button-large .p-button-loading width: 20px height: 20px .p-button-medium max-width: 116px min-width: 80px height: 32px line-height: 30px .p-button-medium .p-btn-text font-size: 14px .p-button-medium .p-button-loading width: 16px height: 16px .p-button-small max-width: 108px min-width: 60px height: 28px line-height: 26px .p-button-small .p-btn-text font-size: 14px .p-button-small .p-button-loading width: 12px height: 12px .p-button-default, .p-button-icon-text background-color: $theme border-color: $grey-400 color: $grey-900 cursor: pointer .p-button-default .p-button-loading path, .p-button-icon-text .p-button-loading path fill: $grey-900 .p-button-default:hover, .p-button-icon-text:hover border-color: $blue-500 color: $blue-500 .p-button-default:active, .p-button-icon-text:active border-color: $blue-600 color: $blue-600 .p-button-default::after, .p-button-icon-text::after background: radial-gradient(circle,$grey-200 10%,transparent 10%) .p-button-default .loading path, .p-button-icon-text .loading path stroke: $grey-400 .p-button-primary background-color: $blue-500 border-color: $blue-500 color: $white cursor: pointer .p-button-primary:hover background-color: $blue-400 border-color: $blue-400 .p-button-primary:active background-color: $blue-600 border-color: $blue-600 .p-button-primary::after background: radial-gradient(circle,$blue-300 10%,transparent 10%) .p-button-error background-color: $red-500 border-color: $red-500 color: $white cursor: pointer .p-button-error:hover background-color: $red-400 border-color: $red-400 .p-button-error:active background-color: $red-600 border-color: $red-600 .p-button-error::after background: radial-gradient(circle,$red-300 10%,transparent 10%) .p-button-disabled, .p-button-default-disabled, .p-button-primary-disabled, .p-button-error-disabled background-color: $grey-200 color: $grey-400 cursor: not-allowed border-color: $grey-200 .p-button-disabled:hover, .p-button-default-disabled:hover, .p-button-primary-disabled:hover, .p-button-error-disabled:hover background-color: $grey-200 border-color: $grey-200 color: $grey-400 .p-button-disabled:active, .p-button-default-disabled:active, .p-button-primary-disabled:active, .p-button-error-disabled:active background-color: $grey-200 border-color: $grey-200 color: $grey-400 .p-button-text-blue border-style: none color: $blue-500 cursor: pointer .p-button-text-blue:hover color: $blue-500 .p-button-text-blue:active color: $blue-600 .p-button-text-red border-style: none color: $red-500 cursor: pointer .p-button-text-red:hover color: $red-400 .p-button-text-red:active color: $red-600 .min-size min-width: 0 .p-button-icon, .p-button-icon-border border-color: $grey-400 padding: 0 cursor: pointer .p-button-icon path, .p-button-icon-border path fill: $grey-900 transition: all .36s .p-button-icon .p-icon svg, .p-button-icon-border .p-icon svg width: 100% !important height: 100% !important .p-button-icon border-color: transparent .p-button-icon:hover color: $blue-500 .p-button-icon:hover path fill: $blue-500 .p-button-icon:active color: $blue-600 .p-button-icon:active path fill: $blue-600 .p-button-icon::after color: $blue-500 .p-button-icon::after path fill: $blue-500 .p-button-icon-border:hover border-color: $blue-500 color: $blue-500 .p-button-icon-border:hover path fill: $blue-500 .p-button-icon-border:active border-color: $blue-600 color: $blue-600 .p-button-icon-border:active path fill: $blue-600 .p-button-icon-border::after border-color: $blue-500 color: $blue-500 .p-button-icon-border::after path fill: $blue-500 .p-button-icon.p-button-large, .p-button-icon-border.p-button-large width: 40px min-width: 40px .p-button-icon.p-button-large .p-icon, .p-button-icon-border.p-button-large .p-icon width: 24px height: 24px line-height: 24px .p-button-icon.p-button-medium, .p-button-icon-border.p-button-medium width: 32px min-width: 32px .p-button-icon.p-button-medium .p-icon, .p-button-icon-border.p-button-medium .p-icon width: 16px height: 16px line-height: 16px .p-button-icon.p-button-small, .p-button-icon-border.p-button-small width: 28px min-width: 28px .p-button-icon.p-button-small .p-icon, .p-button-icon-border.p-button-small .p-icon width: 12px height: 12px line-height: 12px .p-button-icon-text border-color: transparent .p-button-icon-text:hover border-color: transparent .p-button-icon-text path fill: $grey-900 transition: all .36s .p-button-icon-text:hover color: $blue-500 .p-button-icon-text:hover path fill: $blue-500 .p-button-icon-text:active color: $blue-600 .p-button-icon-text:active path fill: $blue-600 .p-button-icon-text::after color: $blue-500 .p-button-icon-text::after path fill: $blue-500 .p-button-icon-text .p-icon margin-right: 4px .p-button-icon-text .p-icon svg width: 100% !important height: 100% !important .p-button-icon-text.p-button-large .p-icon width: 20px height: 20px line-height: 20px .p-button-icon-text.p-button-medium .p-icon width: 16px height: 16px line-height: 16px .p-button-icon-text.p-button-small .p-icon width: 12px height: 12px line-height: 12px .p-button-icon-border-disabled background-color: $grey-200 color: $grey-400 cursor: not-allowed border-color: $grey-200 .p-button-icon-border-disabled svg cursor: not-allowed .p-button-icon-border-disabled svg path fill: $grey-400 .p-button-icon-border-disabled:hover border-color: $grey-200 .p-button-icon-border-disabled:hover path fill: $grey-400 .p-button-icon-disabled color: $grey-400 cursor: not-allowed .p-button-icon-disabled svg cursor: not-allowed .p-button-icon-disabled svg path fill: $grey-400 .p-button-icon-disabled:hover path fill: $grey-400 .p-button-icon-text-disabled color: $grey-400 cursor: not-allowed .p-button-icon-text-disabled svg cursor: not-allowed .p-button-icon-text-disabled svg path fill: $grey-400 .p-button-icon-text-disabled:hover color: $grey-400 .p-button-icon-text-disabled:hover path fill: $grey-400 .p-button-text border-color: transparent cursor: pointer color: $grey-900 .p-button-text:hover color: $blue-500 border-color: transparent .p-button-text:active color: $blue-600 .p-button-text-disabled, .p-button-text-blue-disabled, .p-button-text-red-disabled cursor: not-allowed color: $grey-400 .p-button-text-disabled:hover, .p-button-text-blue-disabled:hover, .p-button-text-red-disabled:hover color: $grey-400 .selectDownUpExtend-enter-active animation: selectDownUpExtend .3s .selectDownUpExtend-leave-active animation: selectDownUpExtend .3s reverse .selectDownUpExtendTop-enter-active animation: selectDownUpExtendTop .3s .selectDownUpExtendTop-leave-active animation: selectDownUpExtendTop .3s reverse @keyframes selectDownUpExtend from transform: translate3d(0,-8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto @keyframes selectDownUpExtend from transform: translate3d(0,-8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto @keyframes selectDownUpExtend from transform: translate3d(0,-8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto @keyframes selectDownUpExtend from transform: translate3d(0,-8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto @keyframes selectDownUpExtendTop from transform: translate3d(0,8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto @keyframes selectDownUpExtendTop from transform: translate3d(0,8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto @keyframes selectDownUpExtendTop from transform: translate3d(0,8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto @keyframes selectDownUpExtendTop from transform: translate3d(0,8px,0) opacity: 0 pointer-events: none to transform: translate3d(0,0,0) opacity: 1 pointer-events: auto .p-popover-wrap position: absolute background: $theme box-shadow: $box-shadow-bottom padding: 20px 24px border-radius: 4px transition-property: top,bottom,opacity transition-duration: .3s z-index: 6001 outline: none .p-popover-wrap::after content: '' position: absolute bottom: -15px left: 0 display: inline-block width: 100% height: 14px z-index: -1 .p-popover-wrap::before content: '' position: absolute top: -15px left: 0 display: inline-block width: 100% height: 14px z-index: -1 .p-popover-wrap .p-popover-content width: auto min-width: 230px max-width: 370px max-height: 394px overflow-y: auto overflow-x: hidden color: $grey-600 font-size: 14px line-height: 22px .p-popover-wrap .p-popover-content .p-popover-title display: inline-block margin-bottom: 4px font-size: 16px font-weight: 600 color: $grey-900 line-height: 24px .p-popover-wrap .p-popover-content .p-popover-arrow position: absolute width: 8px height: 8px box-shadow: -2px -2px 5px rgba(31,35,41,0.1) border-color: $theme transparent transparent $theme border-width: 4px background: $theme transform: rotate(45deg) .p-popover-wrap .p-popover-content .p-popover-arrow-bottom-center left: 50% top: -4px .p-popover-wrap .p-popover-content .p-popover-arrow-bottom-left left: 13% top: -4px .p-popover-wrap .p-popover-content .p-popover-arrow-bottom-right right: 13% top: -4px .p-popover-wrap .p-popover-content .p-popover-arrow-top-center left: 50% bottom: -4px box-shadow: $box-shadow-bottom border-color: transparent $theme $theme transparent .p-popover-wrap .p-popover-content .p-popover-arrow-top-left left: 13% bottom: -4px box-shadow: $box-shadow-bottom border-color: transparent $theme $theme transparent .p-popover-wrap .p-popover-content .p-popover-arrow-top-right right: 13% bottom: -4px box-shadow: $box-shadow-bottom border-color: transparent $theme $theme transparent .p-popover-wrap .p-popover-button display: flex justify-content: flex-end margin-top: 16px .p-popover-wrap .p-popover-bottom-form justify-content: flex-start .p-popover display: inline-block vertical-align: middle font-size: 0