mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
57 lines
1.9 KiB
CSS
57 lines
1.9 KiB
CSS
/* Language dropdown: injected by language-dropdown.js into the sidebar
|
|
footer, to the right of Mintlify's theme selector. Mirrors the almond
|
|
theme pill's exact metrics (lg:h-7 desktop / 2.375rem mobile, rounded-full,
|
|
border-gray-200/70, dark:border-white/[0.07]) so the two controls read as
|
|
one family. */
|
|
#language-switch {
|
|
margin-left: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#language-switch select {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-color: transparent;
|
|
border: 1px solid rgb(229 231 235 / 0.7);
|
|
border-radius: 9999px;
|
|
color: rgb(107 114 128);
|
|
cursor: pointer;
|
|
font-size: 0.75rem;
|
|
line-height: 1rem;
|
|
height: 2.375rem;
|
|
padding: 0 1.375rem 0 0.75rem;
|
|
/* Chevron, drawn in the same gray as the label text. */
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.5rem center;
|
|
background-size: 0.7rem;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
#language-switch select {
|
|
height: 1.75rem;
|
|
}
|
|
}
|
|
|
|
#language-switch select:hover {
|
|
color: rgb(75 85 99);
|
|
border-color: rgb(229 231 235);
|
|
}
|
|
|
|
#language-switch select:focus-visible {
|
|
outline: 2px solid rgb(45 0 247 / 0.4);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.dark #language-switch select {
|
|
border-color: rgb(255 255 255 / 0.07);
|
|
color: rgb(156 163 175);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.dark #language-switch select:hover {
|
|
color: rgb(209 213 219);
|
|
border-color: rgb(255 255 255 / 0.1);
|
|
}
|