Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(docs): improve code block styling

t8y2cdb18baa6ace
diff --git a/docs/app/global.css b/docs/app/global.css
index 139e24aea4..e412898ba8 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -159,9 +159,32 @@ article pre {
border: 1px solid color-mix(in srgb, var(--color-fd-border) 70%, transparent);
border-radius: 10px;
background: #0b1220 !important;
+ margin: 1rem 0 1.35rem;
+ padding: 0.9rem 0;
+ overflow-x: auto;
box-shadow: 0 18px 42px color-mix(in srgb, black 14%, transparent);
}
+article pre code {
+ display: block;
+ min-width: max-content;
+ border: 0;
+ background: transparent !important;
+ color: #d7e2f0;
+ font-size: 0.92rem;
+ line-height: 1.72;
+}
+
+article pre code span {
+ color: var(--shiki-dark, #d7e2f0) !important;
+ font-style: var(--shiki-dark-font-style, inherit);
+}
+
+article pre .line {
+ padding-left: 1.1rem;
+ padding-right: 1.1rem;
+}
+
article :not(pre) > code {
border: 1px solid var(--dbx-line);
border-radius: 6px;