UNPKG

meri-design-dev

Version:

基于vue框架的ui库

196 lines (159 loc) 3.81 kB
/*! * @meri-design-dev v0.0.13 * (c) 2019-2020 wangyongcun * Released under the MIT License. * 2024-04-29 11:26:20 */ .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-node-bi .p-tree-node-content .p-tree-node-check .p-tree-node-title .p-tree-checked-num position: absolute right: 0 top: 0 width: 32px height: 32px line-height: 32px text-align: right font-size: 12px color: $grey-600 .p-tree width: 100% overflow-x: hidden font-size: 0 .p-tree-node width: 100% .p-tree-node-content position: relative padding-left: 12px width: 100% cursor: pointer transition: background-color .3s overflow: hidden .p-tree-node-content:hover background-color: $hover-color-grey .p-tree-node-content-checked background-color: $blue-100 .p-tree-node-content-checked .p-tree-node-name color: $blue-500 .p-tree-svg display: inline-block vertical-align: middle width: 24px height: 16px line-height: 24px .p-tree-svg .p-tree-icon-svg width: 16px height: 16px vertical-align: text-bottom transform: rotate(90deg) transition: transform .3s .p-tree-svg .p-tree-icon-rotate transform: rotate(180deg) .p-tree-node-check display: inline-block vertical-align: middle width: calc(100% - 24px) .p-tree-node-check .p-tree-node-checkbox display: inline-block vertical-align: middle width: 20px .p-tree-node-title position: relative display: inline-block vertical-align: middle user-select: none .p-tree-node-title .p-tree-node-name width: 100% height: 38px line-height: 38px font-size: 14px color: $grey-900 white-space: nowrap text-overflow: ellipsis overflow: hidden .p-tree-node-title-single width: 100% .p-tree-node-title-multiple width: calc(100% - 20px) .p-tree-node-content-disabled .p-tree-node-name color: $grey-400 cursor: not-allowed .p-tree-node-content-0 .p-tree-node-name color: $grey-900 .p-tree-child width: 100%