gamutable/css/vue-next-select.css

196 lines
3.7 KiB
CSS

@keyframes loading {
0% {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.icon.delete {
display: flex;
justify-content: center;
align-items: center;
padding: 0;
margin: 0;
border: 0;
background: 0 0;
height: 8px;
width: 8px;
min-height: 8px;
min-width: 8px;
max-height: 8px;
max-width: 8px;
cursor: pointer;
}
.icon.arrow-downward {
color: #999;
border-style: solid;
border-width: 4px 4px 0;
border-color: #999 transparent transparent;
content: '';
transition: transform 0.2s linear;
cursor: pointer;
}
.icon.arrow-downward.active {
transform: rotate(180deg);
}
.vue-select {
position: relative;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-direction: column;
width: 150px;
border-radius: 4px;
border: 1px solid #999;
box-sizing: border-box;
outline: 0;
}
.vue-select[data-is-focusing='true']:not([data-visible-length='0']) {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.vue-select.disabled {
background-color: rgba(239, 239, 239);
}
.vue-dropdown[data-removable='false'] .vue-dropdown-item.selected:hover,
.vue-select.disabled *,
.vue-select.disabled input,
.vue-tags[data-removable='false'] .vue-tag.selected img:hover {
cursor: not-allowed;
}
.vue-select-header {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
}
.vue-select-header > .icon.arrow-downward,
.vue-select-header > .icon.loading,
.vue-tag > span {
margin-right: 4px;
}
.vue-tags {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 2px;
min-height: calc(1rem + 4px);
user-select: none;
}
.vue-tags.collapsed {
flex-wrap: nowrap;
overflow: auto;
}
.vue-tag,
.vue-tag.selected {
align-items: center;
justify-content: center;
background-color: #999;
border-radius: 4px;
padding: 0 4px;
font-size: 0.8rem;
}
.vue-tag {
display: none;
list-style-type: none;
margin: 2px;
min-height: 1rem;
}
.vue-tag.selected {
display: flex;
}
.vue-dropdown,
.vue-input {
min-width: 0;
box-sizing: border-box;
}
.vue-input,
.vue-input > input {
border: 0;
outline: 0;
width: 100%;
}
.vue-input {
display: flex;
align-items: center;
border-radius: 4px;
max-width: 100%;
padding: 4px;
}
.vue-input > input {
min-width: 0;
font-size: 0.8rem;
padding: 0;
}
.vue-input > input[disabled] {
background-color: rgba(239, 239, 239);
}
.vue-input > input[readonly],
.vue-select-header > .vue-input > input[disabled] {
background-color: unset;
}
.vue-dropdown {
position: absolute;
background-color: #fff;
z-index: 1;
max-height: 300px;
overflow-y: auto;
width: inherit;
left: -1px;
margin: 0;
padding: 0;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border: 1px solid #999;
list-style-type: none;
}
.vue-dropdown[data-visible-length='0'] {
border: 0;
}
.vue-dropdown-item {
list-style-type: none;
padding: 4px;
cursor: pointer;
}
.vue-dropdown-item:last-child {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.vue-dropdown-item:hover {
background-color: #41b883;
}
.vue-dropdown-item.selected {
background-color: #f3f3f3;
}
.vue-dropdown-item.selected:hover {
background-color: #ff6a6a;
}
.vue-dropdown[data-addable='false'][data-multiple='true'] .vue-dropdown-item:not(.selected):hover {
cursor: not-allowed;
}
.icon.loading {
display: inline-block;
position: relative;
width: 8px;
min-width: 8px;
height: 8px;
min-height: 8px;
}
.icon.loading div {
box-sizing: border-box;
display: block;
position: absolute;
border: 1px solid #999;
width: 8px;
height: 8px;
border-radius: 50%;
animation: loading 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #999 transparent transparent;
}
.icon.loading div:nth-child(1) {
animation-delay: -0.08s;
}
.icon.loading div:nth-child(2) {
animation-delay: -0.16s;
}