mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-03 19:47:46 +08:00
add Chinese Document
This commit is contained in:
@@ -0,0 +1,222 @@
|
||||
/* 让表格自动拉伸到满宽度 */
|
||||
table {
|
||||
width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* 让表格中的每个 <th> 和 <td> 也自动拉伸 */
|
||||
th,
|
||||
td {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
ul {
|
||||
width: 100%;
|
||||
/* 列表宽度占满整个容器 */
|
||||
}
|
||||
|
||||
|
||||
/* 修改 Sphinx Theme 项目标题的字体大小 Book和rtd 均OK */
|
||||
.wy-side-nav-search>a {
|
||||
font-size: 16px;
|
||||
/* 你可以根据需要调整这个值 */
|
||||
}
|
||||
|
||||
/* 修改项目标题的字体大小 Book和rtd 均OK*/
|
||||
.wy-side-nav-search>div.version {
|
||||
font-size: 16px;
|
||||
/* 你可以根据需要调整这个值 */
|
||||
}
|
||||
|
||||
|
||||
.sidebar-logo {
|
||||
width: 500px;
|
||||
/* 或者使用百分比 */
|
||||
height: auto;
|
||||
max-width: 90%;
|
||||
max-height: 90%;
|
||||
}
|
||||
|
||||
|
||||
.sidebar-content {
|
||||
line-height: 1.0;
|
||||
/* 行间距是字体大小的1.5倍 */
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
padding: 20px;
|
||||
/* 内边距 */
|
||||
margin-bottom: 20px;
|
||||
/* 外边距 */
|
||||
}
|
||||
|
||||
.sidebar-text {
|
||||
font-size: 30px;
|
||||
}
|
||||
/* 修改侧边栏的背景颜色 */
|
||||
.wy-nav-side {
|
||||
background-color: #cecece !important;
|
||||
}
|
||||
|
||||
/* 针对导航栏链接的选择器 */
|
||||
.wy-nav-side a {
|
||||
color: #000000;
|
||||
/* 修改为您需要的颜色 */
|
||||
}
|
||||
|
||||
/* 如果需要,您可以添加 hover 和 active 状态的样式 */
|
||||
.wy-nav-side a:hover {
|
||||
color: #fffcfc;
|
||||
}
|
||||
|
||||
.wy-nav-side .current>a {
|
||||
color: #108bf0 !important;
|
||||
font-weight: bold !important;
|
||||
/* 设置为粗体 */
|
||||
/* 当前活动项的颜色 */
|
||||
}
|
||||
|
||||
/* 提示:不同版本的 Sphinx 主题生成的 HTML 结构可能有所不同,请根据实际情况调整选择器 */
|
||||
h1.wy-banner-title {
|
||||
color: #0267da !important;
|
||||
/* 将此处的颜色替换为您希望的颜色 */
|
||||
}
|
||||
|
||||
/* 如果也需要修改小标题 */
|
||||
h2.wy-banner-subtitle {
|
||||
color: #7b7b7b !important;
|
||||
/* 替换为希望的颜色 */
|
||||
}
|
||||
|
||||
.wy-side-nav-search>a {
|
||||
color: #ffffff !important;
|
||||
/* 将 #your-color 替换为你想要颜色的十六进制代码 */
|
||||
}
|
||||
|
||||
|
||||
/* 调整最大宽度 OK */
|
||||
.wy-nav-content {
|
||||
max-width: 960px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* 可选:调整侧边栏宽度 */
|
||||
/* .wy-side-scroll {
|
||||
width: 300px;
|
||||
|
||||
} */
|
||||
|
||||
/* ==================== Language Switcher Styles ==================== */
|
||||
|
||||
/* Language switcher container */
|
||||
.language-switcher {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-left: 15px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
/* Language toggle button */
|
||||
.language-toggle {
|
||||
background-color: #2980b9;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 8px 15px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.language-toggle:hover {
|
||||
background-color: #3498db;
|
||||
}
|
||||
|
||||
.language-icon {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.language-text {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Language dropdown */
|
||||
.language-dropdown {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
right: 0;
|
||||
margin-top: 5px;
|
||||
background-color: white;
|
||||
min-width: 120px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.language-dropdown.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Language options */
|
||||
.language-option {
|
||||
display: block;
|
||||
padding: 10px 15px;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
transition: background-color 0.2s ease;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.language-option:hover {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.language-option.active {
|
||||
background-color: #2980b9;
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.language-option.active:hover {
|
||||
background-color: #3498db;
|
||||
}
|
||||
|
||||
/* Position language switcher in navbar for RTD theme */
|
||||
.wy-nav-top .language-switcher {
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/* Mobile responsive */
|
||||
@media screen and (max-width: 768px) {
|
||||
.language-switcher {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.language-toggle {
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.language-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.language-icon {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
/* For sidebar placement (alternative position) */
|
||||
.wy-side-nav-search .language-switcher {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user