Files
FastGPT/document/app/global.css
T
Archer 960c8898cf docs: switch to docs layout and apply black theme (#6533)
* feat: add Gemini 3.1 models

- Add gemini-3.1-pro-preview (released February 19, 2026)
- Add gemini-3.1-flash-lite-preview (released March 3, 2026)

Both models support:
- 1M context window
- 64k max response
- Vision
- Tool choice

* docs: switch to docs layout and apply black theme

- Change layout from notebook to docs
- Update logo to icon + text format
- Apply fumadocs black theme
- Simplify global.css (keep only navbar and TOC styles)
- Fix icon components to properly accept className props
- Add mobile text overflow handling
- Update Node engine requirement to >=20.x

* doc

* doc

* lock

* fix: ts

* doc

* doc

---------

Co-authored-by: archer <archer@archerdeMac-mini.local>
Co-authored-by: archer <545436317@qq.com>
2026-03-10 11:57:25 +08:00

88 lines
2.0 KiB
CSS

@import 'tailwindcss';
@import 'fumadocs-ui/css/preset.css';
@import 'fumadocs-ui/css/black.css';
/* 移动端目录下拉框:文本溢出省略号 */
@media (max-width: 767px) {
button[class*='tocnav'] {
max-width: 100vw;
overflow: hidden;
}
button[class*='tocnav'] > span.grid {
overflow: hidden;
min-width: 0;
}
/* 文章内超长链接/文本自动换行 */
article {
overflow-wrap: break-word;
word-break: break-word;
}
}
/* RootToggle 图标容器:缩小到与图标匹配,修复对齐和间距 */
#nd-sidebar .size-9,
#nd-sidebar .size-5,
#nd-sidebar-mobile .size-9,
#nd-sidebar-mobile .size-5,
[data-radix-popper-content-wrapper] .size-9,
[data-radix-popper-content-wrapper] .size-5 {
flex-shrink: 0;
display: flex !important;
align-items: center;
justify-content: center;
}
#nd-sidebar > div > div,
#nd-sidebar-mobile > div > div {
padding-top: 6px !important;
}
#nd-sidebar > div > button,
#nd-sidebar-mobile > div > button {
height: 38px;
padding: 6px 8px !important;
}
#nd-sidebar-mobile > div > button {
gap: 0;
}
/* 移除导航栏图标的上边距 - 使用通用选择器匹配所有 radix 弹窗 */
[data-radix-popper-content-wrapper] > div > a {
padding: 8px 6px;
height: 38px;
}
[data-radix-popper-content-wrapper] > div > a > div {
margin-top: 0 !important;
}
/* Image zoom modal overlay */
html [data-rmiz-modal-overlay='visible'] {
--color-fd-background: rgba(255, 255, 255, 0.7);
background-color: rgba(255, 255, 255, 0.7) !important;
}
html.dark [data-rmiz-modal-overlay='visible'] {
--color-fd-background: rgba(0, 0, 0, 0.75);
background-color: rgba(0, 0, 0, 0.75) !important;
}
/* Content */
/* img */
#nd-page article img {
object-fit: contain;
display: block;
margin-left: auto;
margin-right: auto;
max-width: 80%;
max-height: 500px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
border-radius: 6px;
}
[data-rmiz-modal-img] {
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
border-radius: 6px;
}