1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 09:19:54 +00:00
Files
whiskr/static/css/dropdown.css

122 lines
1.9 KiB
CSS
Raw Normal View History

2025-08-09 22:14:35 +02:00
.dropdown {
position: relative;
user-select: none;
background: #363a4f;
padding: 2px 5px;
font-size: 14px;
white-space: nowrap;
}
.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;
}
2025-08-10 16:38:02 +02:00
.dropdown .selected,
.dropdown .opt {
display: flex;
justify-content: space-between;
align-items: center;
gap: 5px;
}
2025-08-09 22:14:35 +02:00
.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;
}
2025-08-10 16:38:02 +02:00
.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)
}
2025-08-10 16:44:00 +02:00
.tags .tag.vision {
background-image: url(icons/tags/vision.svg)
}
2025-08-11 00:15:58 +02:00
.tags .tag.json {
background-image: url(icons/tags/json.svg)
}
.tags .tag.all {
background-image: url(icons/tags/all.svg)
}
2025-08-09 22:14:35 +02:00
.dropdown .search {
background: #2a2e41;
border-top: 2px solid #494d64;
font-size: 15px;
padding: 4px 6px;
}