meri-design-dev
Version:
基于vue框架的ui库
514 lines (423 loc) • 10.2 kB
text/stylus
/*!
* @meri-design-dev v0.0.13
* (c) 2019-2020 wangyongcun
* Released under the MIT License.
* 2024-04-29 11:26:20
*/
.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-drop
display: inline-block
vertical-align: middle
font-size: 0
text-align: left
.p-drop .p-drop-title
display: flex
align-items: center
cursor: pointer
.p-drop .p-drop-title .p-drop-title-content
font-size: 14px
transition: color .3s
.p-drop .p-drop-title .p-drop-triangle
width: 16px
height: 16px
line-height: 1
.p-drop .p-drop-title .p-drop-triangle svg
transition: transform .3s
.p-drop .p-drop-title .p-drop-triangle svg path
transition: fill .3s
.p-drop .p-drop-title .p-drop-triangle-rotate svg
transform: rotate(180deg)
.p-drop:hover .p-drop-title-content
color: $blue-500
.p-drop:hover .p-drop-triangle path
fill: $blue-500
.p-drop-show
position: relative
.p-drop-show::after
content: ''
position: absolute
left: 0
top: 0
z-index: 10
display: inline-block
opacity: 0
width: 100%
height: 100%
cursor: pointer
.p-drop-show .p-drop-title-content
color: $blue-500
.p-drop-show .p-drop-triangle path
fill: $blue-500
.p-drop-disabled .p-drop-title
cursor: not-allowed
.p-drop-light .p-drop-title
color: $grey-900
.p-drop-dark .p-drop-title
color: $white
.p-drop-dark .p-drop-triangle svg path
fill: $blue-500
.p-drop-content
position: absolute
display: inline-block
outline: none
padding-top: 8px
padding-bottom: 8px
border-radius: 4px
box-shadow: $box-shadow-bottom
min-width: 120px
z-index: 7000
font-size: 0
pointer-events: none
.p-drop-content-top-arrow
filter: drop-shadow($box-shadow-triangle-top)
.p-drop-content-top-arrow::before
position: absolute
top: -6px
right: 12px
content: ''
border-style: solid
border-width: 0 6px 6px 6px
border-color: transparent transparent $white transparent
width: 0
height: 0
.p-drop-content-bottom-arrow
filter: drop-shadow($box-shadow-triangle-bottom)
.p-drop-content-bottom-arrow::after
position: absolute
bottom: -6px
right: 12px
content: ''
border-style: solid
border-width: 6px 6px 0 6px
border-color: $white transparent transparent transparent
width: 0
height: 0
.p-drop-option
width: 100%
overflow-x: hidden
overflow-y: auto
min-height: 54px
.p-drop-option .p-drop-option-item
padding-left: 12px
padding-right: 12px
width: 100%
height: 38px
font-size: 14px
cursor: pointer
white-space: nowrap
text-overflow: ellipsis
overflow: hidden
transition: background-color .3s
.p-drop-option .p-drop-option-item .p-drop-option-svg
margin-right: 8px
.p-drop-option .p-drop-option-item .p-drop-option-svg svg
vertical-align: middle
.p-drop-option .p-drop-option-item span
vertical-align: middle
line-height: 38px
.p-drop-option .p-drop-option-item span .p-drop-option-svg svg path
fill: $blue-500
.p-drop-option .p-drop-option-item.p-drop-option-disable
cursor: not-allowed
.p-drop-search
position: relative
display: block
padding-left: 12px
padding-right: 12px
padding-bottom: 8px
width: 100%
height: 40px
.p-drop-search .p-drop-input
outline: none
padding-left: 12px
padding-right: 30px
background: none
border: 1px solid $grey-400
border-radius: 4px
width: 100%
height: 100%
font-size: 14px
color: $grey-900
.p-drop-search .p-drop-clear
position: absolute
right: 13px
top: 1px
width: 30px
height: 30px
line-height: 30px
text-align: center
cursor: pointer
.p-drop-search .p-drop-clear:hover path
fill: $blue-500
.p-drop-search .p-drop-clear svg
width: 16px
height: 16px
font-size: 0
vertical-align: middle
.p-drop-search .p-drop-clear svg path
transition: fill .3s
.p-drop-search-shadow
box-shadow: $box-shadow-bottom
.p-drop-content-light
background-color: $theme
border: 1px solid $grey-300
.p-drop-content-light .p-drop-option-item
color: $grey-900
.p-drop-content-light .p-drop-option-item:hover
background-color: $hover-color-grey
.p-drop-content-light .p-drop-option-item.p-drop-option-selected
color: $blue-500
background-color: $blue-100
.p-drop-content-light .p-drop-option-item.p-drop-option-disable
color: $grey-400
.p-drop-content-dark
background-color: $blue-900
border: 1px solid $blue-500
.p-drop-content-dark .p-drop-option-item
color: $white
.p-drop-content-dark .p-drop-option-item:hover
background-color: $blue-800
.p-drop-content-dark .p-drop-option-item.p-drop-option-selected
color: $blue-50
background-color: $blue-700
.p-drop-content-dark .p-drop-option-item.p-drop-option-disable
color: $blue-200
.p-checkbox
display: inline-flex
align-items: center
min-width: 16px
min-height: 16px
vertical-align: middle
cursor: pointer
z-index: 1
.p-checkbox + .p-checkbox
margin-left: 8px
.p-checkbox .p-checkbox-box
position: relative
vertical-align: middle
border-width: 1px
border-style: solid
border-color: transparent
border-radius: 2px
width: 16px
height: 16px
transition: all .3s
.p-checkbox .p-checkbox-box:hover
box-shadow: 0 0 4px 0 rgba(78,131,253,0.4)
.p-checkbox .p-checkbox-box::after
position: absolute
background: none
transition: transform .2s ease-in-out
transform: rotate(0) scale(0)
z-index: 1
content: ''
pointer-events: none
.p-checkbox .p-checkbox-uncheck
background-color: $theme
border-color: $grey-400
.p-checkbox .p-checkbox-uncheck:hover
border-color: $blue-500
.p-checkbox .p-checkbox-checked
background-color: $blue-500
border-color: $blue-500
.p-checkbox .p-checkbox-checked::after
top: 2px
left: 5px
border-right: 2px solid $white
border-bottom: 2px solid $white
width: 4px
height: 8px
transform: rotate(45deg) scale(1)
.p-checkbox .p-checkbox-notNull
background-color: $blue-500
border-color: $blue-500
.p-checkbox .p-checkbox-notNull::after
top: 6px
left: 3px
background-color: $white
width: 8px
height: 2px
transform: scale(1)
.p-checkbox .p-checkbox-text
padding-left: 8px
width: calc(100% - 16px)
color: $grey-900
font-size: 14px
overflow: hidden
text-overflow: ellipsis
white-space: nowrap
user-select: none
.p-checkbox-disabled
cursor: not-allowed
.p-checkbox-disabled > i
pointer-events: none
.p-checkbox-disabled .p-checkbox-uncheck
background-color: $grey-300
.p-checkbox-disabled .p-checkbox-checked
background-color: $grey-400
border-color: $grey-400
.p-checkbox-disabled .p-checkbox-notNull
background-color: $grey-400
border-color: $grey-400
.p-tree-com
display: inline-block
vertical-align: middle
width: 100%
font-size: 0
.p-tree-com-item
display: flex
align-items: center
padding-left: 12px
width: 100%
height: 38px
line-height: 38px
cursor: pointer
transition: background-color .3s
.p-tree-com-item:hover
background-color: $hover-color-grey
.p-tree-com-current
background-color: $blue-100
.p-tree-com-current:hover
background-color: $hover-color-blue
.p-tree-com-current .p-tree-com-text
color: $blue-500
.p-tree-com-disabled
cursor: not-allowed
.p-tree-com-disabled .p-tree-com-content
color: $grey-400
.p-tree-com-arrow
padding-right: 8px
width: 24px
height: 38px
cursor: pointer
.p-tree-com-arrow svg
vertical-align: middle
width: 16px
height: 16px
transform: rotate(90deg)
.p-tree-com-arrow .p-tree-com-triangle
transform: rotate(180deg)
.p-tree-com-main
display: flex
align-items: center
width: calc(100% - 24px)
.p-tree-com-single .p-tree-com-content
width: 100%
.p-tree-com-multiple .p-tree-com-content
width: calc(100% - 20px)
.p-tree-com-checkbox
padding-right: 4px
width: 20px
height: 38px
.p-tree-com-content
height: 38px
overflow: hidden
color: $grey-900
.p-tree-com-omit
position: relative
padding-right: 20px
.p-tree-com-text
width: 100%
font-size: 14px
overflow: hidden
white-space: nowrap
text-overflow: ellipsis
.p-tree-com-point-svg
position: absolute
right: 0
top: 9px
width: 20px
height: 20px
line-height: 20px
text-align: center
font-size: 0
cursor: pointer
.p-tree-com-point-svg:hover path
fill: $blue-500
.p-tree-com-point-svg svg
vertical-align: middle
width: 16px
height: 16px
.p-tree-com-point-svg svg path
transition: fill .3s
.p-tree-com-point-svg-active svg path
fill: $blue-500