enhance(ux): add mode picker for the code editor

This commit is contained in:
charlie
2024-09-27 12:30:06 +08:00
parent 3f4337aa4b
commit d02488de2b
3 changed files with 56 additions and 4 deletions

View File

@@ -943,3 +943,16 @@ html.is-mac {
.ls-page-title .block-tags {
@apply relative -right-1 min-h-full;
}
.ls-code-editor-wrap {
@apply relative;
.extensions__code-lang {
@apply hidden;
}
> a.select-language {
@apply absolute right-1 top-1 bg-gray-02-alpha border rounded text-gray-11
select-none opacity-70 hover:opacity-90 z-[1] text-xs px-1.5;
}
}