UNPKG

vue-ant-patterns

Version:

vue-ant-patterns

136 lines (135 loc) 3.99 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 */ /* 命名规则, 三部分 className .flex-侧轴 .flex-主轴 .flex-侧轴-主轴 */ .depot-auto-complete { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .depot-auto-complete-overlay { background: #ECEFF4; -webkit-box-shadow: 0 1px 6px 0 #A4B6D0; box-shadow: 0 1px 6px 0 #A4B6D0; } .depot-auto-complete-overlay .ant-select-dropdown-menu-item { padding-top: 0; padding-bottom: 0; } .depot-auto-complete-overlay .ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled) { background: rgba(139, 201, 239, 0.2); padding-bottom: 0; } .depot-auto-complete-overlay .ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) { background: rgba(139, 201, 239, 0.2); padding-bottom: 0; } .depot-auto-complete-input { width: 300px; position: absolute; top: 0; right: 40px; } .depot-auto-complete .icon-button { margin-left: 10px; } .depot-auto-complete .item-tag-wrapper-ul { display: -webkit-box; display: -ms-flexbox; display: flex; } .depot-auto-complete .item-li { background: rgba(152, 202, 237, 0.3); color: #0275FD; height: 24px; margin-right: 4px; padding: 2px 8px; border-radius: 4px; } .depot-auto-complete .item-li .item-name { display: inline-block; max-width: 108px; overflow: hidden; text-overflow: ellipsis; } .depot-auto-complete .item-li .remove-item-icon { margin-left: 8px; font-size: 12px; cursor: pointer; } .depot-auto-complete .item-li .remove-item-icon .anticon { vertical-align: super; } .depot-auto-complete .ant-input-group-wrapper.ant-select-search__field { overflow: auto; scrollbar-color: #eff1f7; /* 滑块颜色 滚动条背景颜色 */ scrollbar-width: thin; /*滑块hover效果*/ } .depot-auto-complete .ant-input-group-wrapper.ant-select-search__field::-webkit-scrollbar { width: 5px; height: 5px; } .depot-auto-complete .ant-input-group-wrapper.ant-select-search__field::-webkit-scrollbar-track { border-radius: 2px; } .depot-auto-complete .ant-input-group-wrapper.ant-select-search__field::-webkit-scrollbar-thumb { border-radius: 5px; box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background-color: #eff1f7; } .depot-auto-complete .ant-input-group-wrapper.ant-select-search__field::-webkit-scrollbar-thumb:hover { border-radius: 5px; /*内阴影*/ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: #eef2ff; } .depot-auto-complete .ant-input-group-addon { padding: 0 0 0 8px; background: #fff; max-width: calc(100% - 60px); border: 0; } .depot-auto-complete .ant-input-group-addon .item-tag-wrapper-ul { width: 100%; } .depot-auto-complete .ant-input-group .ant-input-affix-wrapper { min-width: 60px; } .depot-auto-complete .ant-select-auto-complete.ant-select .ant-input { border: 0!important; padding: 0 4px; min-width: 24px; } .depot-auto-complete .ant-select-auto-complete.ant-select .ant-input:focus, .depot-auto-complete .ant-select-auto-complete.ant-select .ant-input:hover { border: 0 !important; -webkit-box-shadow: none; box-shadow: none; } .depot-auto-complete .ant-select-selection__clear { right: 24px; } .depot-auto-complete .ant-select-selection:focus { outline: 0; -webkit-box-shadow: 0 0 0 2px rgb(24 144 12.75%); box-shadow: 0 0 0 2px rgb(24 144 12.75%); } /*定义滚动条轨道 内阴影+圆角*/ /*定义滑块 内阴影+圆角*/