@memori.ai/memori-react
Version:
[](https://www.npmjs.com/package/@memori.ai/memori-react)   • 3.02 kB
CSS
.memori-select {
max-width: 240px;
min-height: 38px;
}
.memori-select--button {
position: relative;
width: 100%;
max-width: 240px;
min-height: 38px;
padding-top: 0.5rem;
padding-right: 2.5rem;
padding-bottom: 0.5rem;
padding-left: 0.75rem;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
background: transparent;
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
color: var(--memori-text-color, #333);
cursor: pointer;
font-family: var(--memori-font-family);
font-size: 16px;
text-align: left;
}
.memori-select--button:focus {
border-color: #cbd5e0;
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}
.memori-select--button:focus-visible {
border-color: #63b3ed;
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}
.memori-select--button:hover {
border-color: #e2e8f0;
}
.memori-select--button:active {
border-color: #e2e8f0;
}
.memori-select--button:disabled {
border-color: #e2e8f0;
background-color: #f7fafc;
color: #a0aec0;
cursor: not-allowed;
}
@media (min-width: 640px) {
.memori-select--button {
font-size: 0.875rem;
line-height: 1.25rem;
}
}
.memori-select--label {
display: inline-block;
margin-bottom: 0.25rem;
}
.memori-select--value {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.memori-select--value.memori-select--value-placeholder {
color: #a0aec0;
}
.memori-select--icon {
position: absolute;
top: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
padding-right: 0.5rem;
pointer-events: none;
}
.memori-select--icon svg {
width: 1.25rem;
height: 1.25rem;
color: rgb(156 163 175/1);
}
ul.memori-select--options {
position: absolute;
z-index: 1;
overflow: auto;
width: 100%;
max-width: min(18rem, 30%);
max-height: 15rem;
padding-top: 0.25rem;
padding-right: 0;
padding-bottom: 0.25rem;
padding-left: 0;
border-radius: 0.375rem;
margin-top: 0.25rem;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
background: #fff;
box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,
rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
list-style: none;
}
@media (min-width: 640px) {
.memori-select--options {
font-size: 0.875rem;
line-height: 1.25rem;
}
}
li.memori-select--option {
position: relative;
padding-top: 0.5rem;
padding-right: 1rem;
padding-bottom: 0.5rem;
padding-left: 1rem;
color: rgb(17 24 39/1);
cursor: pointer;
user-select: none;
}
li.memori-select--option:hover,
li.memori-select--option:focus {
background-color: #f7fafc;
}
li.memori-select--option:focus {
outline: 2px solid #63b3ed;
outline-offset: 2px;
}