mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 01:09:54 +00:00
123 lines
1.9 KiB
CSS
123 lines
1.9 KiB
CSS
.dropdown {
|
|
position: relative;
|
|
user-select: none;
|
|
background: #363a4f;
|
|
padding: 2px 5px;
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
max-width: 148px;
|
|
}
|
|
|
|
.dropdown .selected {
|
|
display: flex;
|
|
gap: 5px;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropdown .selected::after {
|
|
content: "";
|
|
display: block;
|
|
width: 16px;
|
|
height: 16px;
|
|
background-image: url(icons/chevron.svg);
|
|
background-position: center;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.dropdown .cont {
|
|
display: flex;
|
|
position: absolute;
|
|
bottom: calc(100% + 4px);
|
|
left: 0;
|
|
flex-direction: column;
|
|
background: #363a4f;
|
|
max-height: 250px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #494d64;
|
|
}
|
|
|
|
.dropdown:not(.open) .cont {
|
|
display: none;
|
|
}
|
|
|
|
.dropdown .opts {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.dropdown .selected,
|
|
.dropdown .opt {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.dropdown .opt {
|
|
padding: 4px 6px;
|
|
cursor: pointer;
|
|
background: #363a4f;
|
|
}
|
|
|
|
.dropdown .opt:nth-child(2n+1) {
|
|
background: #32354a;
|
|
}
|
|
|
|
.dropdown .opt:hover {
|
|
background: #2c2f44;
|
|
}
|
|
|
|
.dropdown .opt.filtered {
|
|
display: none;
|
|
}
|
|
|
|
.dropdown .label {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.dropdown .tags {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
.dropdown .tags .tag {
|
|
width: 18px;
|
|
height: 18px;
|
|
background-position: center;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.tags .tag.reasoning {
|
|
background-image: url(icons/tags/reasoning.svg)
|
|
}
|
|
|
|
.tags .tag.tools {
|
|
background-image: url(icons/tags/tools.svg)
|
|
}
|
|
|
|
.tags .tag.vision {
|
|
background-image: url(icons/tags/vision.svg)
|
|
}
|
|
|
|
.tags .tag.json {
|
|
background-image: url(icons/tags/json.svg)
|
|
}
|
|
|
|
.tags .tag.all {
|
|
background-image: url(icons/tags/all.svg)
|
|
}
|
|
|
|
.dropdown .search {
|
|
background: #2a2e41;
|
|
border-top: 2px solid #494d64;
|
|
font-size: 15px;
|
|
padding: 4px 6px;
|
|
} |