添加en和zh
This commit is contained in:
180
assets/stylesheets/carousel.css
Normal file
180
assets/stylesheets/carousel.css
Normal file
@@ -0,0 +1,180 @@
|
||||
/* 轮播图容器 - 添加固定高度 */
|
||||
.image-carousel {
|
||||
position: relative;
|
||||
max-width: 800px;
|
||||
height: 250px; /* 设置固定高度,您可以根据需要修改这个值 */
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
background-color: #f5f5f5; /* 可选:添加背景色以便于区分图片与容器 */
|
||||
}
|
||||
|
||||
/* 幻灯片 */
|
||||
.carousel-slide {
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%; /* 确保幻灯片占满容器高度 */
|
||||
text-align: center; /* 图片居中显示 */
|
||||
}
|
||||
|
||||
/* 幻灯片图片 - 使用object-fit实现等比例缩放 */
|
||||
.carousel-slide img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: auto; /* 自动宽度 */
|
||||
height: auto; /* 自动高度 */
|
||||
object-fit: contain; /* 关键:使用contain确保图片完整显示 */
|
||||
display: block;
|
||||
margin: 0 auto; /* 水平居中 */
|
||||
position: relative;
|
||||
top: 50%; /* 结合下面的transform实现垂直居中 */
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
/* 导航按钮 - 保持不变 */
|
||||
.carousel-prev,
|
||||
.carousel-next {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
padding: 16px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.carousel-prev:hover,
|
||||
.carousel-next:hover {
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.carousel-prev {
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.carousel-next {
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
/* 圆点指示器 - 保持不变 */
|
||||
.carousel-dots {
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.carousel-dot {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 0 5px;
|
||||
background-color: #bbb;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.carousel-dot.active {
|
||||
background-color: #717171;
|
||||
}
|
||||
|
||||
/* 图片说明 - 调整位置确保在图片下方显示 */
|
||||
.carousel-caption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
color: white;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 下面是您已有的其他样式,保持不变 */
|
||||
/* Image alignment classes */
|
||||
.align-left {
|
||||
float: left;
|
||||
margin-right: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
float: right;
|
||||
margin-left: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* 图片尺寸控制类 */
|
||||
.img-fixed {
|
||||
max-width: 100%; /* 默认响应式 */
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* 小尺寸图片 */
|
||||
.img-small {
|
||||
max-width: 200px;
|
||||
max-height: 150px;
|
||||
}
|
||||
|
||||
/* 小尺寸图片-固定高度 */
|
||||
.img-small-height-fix {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
height: 150px; /* 修改为更合理的高度值 */
|
||||
}
|
||||
|
||||
/* 小尺寸图片-固定宽度 */
|
||||
.img-small-width-fix {
|
||||
width: 200px; /* 修改为更合理的宽度值 */
|
||||
height: auto;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
/* 中等尺寸图片 */
|
||||
.img-medium {
|
||||
max-width: 400px;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
/* 大尺寸图片 */
|
||||
.img-large {
|
||||
max-width: 800px;
|
||||
max-height: 600px;
|
||||
}
|
||||
|
||||
/* 文字环绕左侧图片 */
|
||||
.img-float-left {
|
||||
float: left;
|
||||
margin-right: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* 文字环绕右侧图片 */
|
||||
.img-float-right {
|
||||
float: right;
|
||||
margin-left: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Clear floats after images */
|
||||
.clearfix::after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
224
assets/stylesheets/extra.css
Normal file
224
assets/stylesheets/extra.css
Normal file
@@ -0,0 +1,224 @@
|
||||
.md-typeset__table {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px)
|
||||
{
|
||||
td:nth-child(1){
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
/*
|
||||
.Telegraf-Regular{
|
||||
font-family:Microsoft YaHei UI;
|
||||
src: url("typography/msyh.ttc");
|
||||
}
|
||||
|
||||
.Telegraf-UltraBold{
|
||||
font-family:Microsoft YaHei UI Bold;
|
||||
src: url("typography/msyhbd.ttc");
|
||||
}*/
|
||||
|
||||
* {
|
||||
--md-primary-fg-color: #2094F8;
|
||||
/*--md-primary-fg-color: #FF42CD;*/
|
||||
/*--md-primary-fg-color: #AB47BD; purple*/
|
||||
--md-primary-fg-color--light: #2094F8;
|
||||
--md-primary-fg-color--dark: #2094F8;
|
||||
--md-typeset-color: var(--md-default-fg-color);
|
||||
--md-typeset-a-color: var(--md-primary-fg-color--light);
|
||||
/*--md-text-font: "Telegraf-Regular"*/
|
||||
}
|
||||
|
||||
:root {
|
||||
--md-primary-fg-color: #181917;
|
||||
--md-primary-fg-color--light: #2094F8;
|
||||
--md-primary-fg-color--dark: #2094F8;
|
||||
/* --md-primary-fg-color--light: #029c8e; */
|
||||
/* --md-primary-fg-color--dark: #303C55; */
|
||||
}
|
||||
|
||||
:root>* {
|
||||
--md-primary-bg-color: #000;
|
||||
--md-typeset-color: var(--md-default-fg-color);
|
||||
--md-typeset-a-color: var(--md-primary-fg-color--light);
|
||||
}
|
||||
|
||||
/*
|
||||
markdown and image alignment
|
||||
ALT tag and a CSS selector on the alt tag
|
||||
*/
|
||||
img[src*='#left'] {
|
||||
float: left;
|
||||
}
|
||||
img[src*='#right'] {
|
||||
float: right;
|
||||
}
|
||||
img[src*='#center'] {
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Tables set to 100% width
|
||||
*/
|
||||
.md-typeset__table {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.md-typeset table:not([class]) {
|
||||
display: table;
|
||||
}
|
||||
|
||||
/*
|
||||
Colors for First Steps
|
||||
custom code blocks coloring
|
||||
*/
|
||||
.fsg-timestamp {
|
||||
color: grey;
|
||||
}
|
||||
.fsg-userinput {
|
||||
color: cornflowerblue;
|
||||
}
|
||||
.fsg-path, .fsg-prompt {
|
||||
color: mediumseagreen;
|
||||
}
|
||||
|
||||
/*
|
||||
Footer social media icons:
|
||||
set the size of the svg icons and the espace between them.
|
||||
*/
|
||||
.md-social__link {
|
||||
width: 2rem;
|
||||
}
|
||||
.md-social__link svg {
|
||||
max-height: 1.6rem;
|
||||
}
|
||||
|
||||
/*
|
||||
hide content only for mobile devices
|
||||
*/
|
||||
@media only screen and (min-device-width: 280px) and (max-device-width: 480px)
|
||||
{
|
||||
.hide-on-mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.custForm {
|
||||
width:80%;
|
||||
}
|
||||
.custForm h4{
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.custForm input {
|
||||
border:1px solid #CCCCCC;
|
||||
width: 100%;
|
||||
height: 35px;
|
||||
}
|
||||
.custForm select{
|
||||
border:1px solid #CCCCCC;
|
||||
height: 35px;
|
||||
width: 100%;
|
||||
}
|
||||
.custForm textarea {
|
||||
border:1px solid #CCCCCC;
|
||||
width: 100%;
|
||||
}
|
||||
.custForm .button {
|
||||
background-color: #0B70F6;
|
||||
border-radius: 5px;
|
||||
width: 80px;
|
||||
margin: 0 auto;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.goback input {
|
||||
font-size:18px;
|
||||
padding: 10px;
|
||||
color:#FFFFFF;
|
||||
border-radius: 5px;
|
||||
background-color: #0B70F6;
|
||||
}
|
||||
|
||||
/* 控制 MkDocs-Material 的默认字体大小 */
|
||||
.md-typeset {
|
||||
font-size: 0.70rem !important; /* 默认值约为 0.7rem */
|
||||
}
|
||||
|
||||
/* 确保各类文本元素使用一致的字体大小 */
|
||||
.md-typeset p,
|
||||
.md-typeset ul li,
|
||||
.md-typeset ol li,
|
||||
.md-typeset li p,
|
||||
.md-typeset table:not([class]),
|
||||
.md-typeset .admonition p,
|
||||
.md-typeset details p {
|
||||
font-size: 0.70rem !important;
|
||||
}
|
||||
|
||||
/* 优化表格单元格内边距 - 减少文字与表格边框的距离 */
|
||||
.md-typeset table:not([class]) td {
|
||||
padding: 0.3rem 0.5rem !important; /* 垂直方向0.3rem,水平方向0.5rem */
|
||||
}
|
||||
|
||||
.md-typeset table:not([class]) th {
|
||||
padding: 0.3rem 0.5rem !important; /* 表头也使用相同的内边距 */
|
||||
}
|
||||
|
||||
/* 减少表格内文字的行高和外边距 */
|
||||
.md-typeset table:not([class]) td p,
|
||||
.md-typeset table:not([class]) th p {
|
||||
margin: 0 !important;
|
||||
line-height: 1.1 !important; /* 进一步减少行高 */
|
||||
}
|
||||
|
||||
/* 固定表头样式 */
|
||||
.md-typeset .sticky-header table {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: 500px; /* 根据需要调整 */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.md-typeset .sticky-header table thead,
|
||||
.md-typeset .sticky-header table tbody {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.md-typeset .sticky-header table tbody {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.md-typeset .sticky-header table tr {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.md-typeset .sticky-header table th,
|
||||
.md-typeset .sticky-header table td {
|
||||
display: block;
|
||||
flex: 1;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* 固定首列样式 */
|
||||
.md-typeset .sticky-column table {
|
||||
overflow: auto;
|
||||
max-height: 500px; /* 根据需要调整 */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.md-typeset .sticky-column table th:first-child,
|
||||
.md-typeset .sticky-column table td:first-child {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
background-color: var(--md-default-bg-color);
|
||||
z-index: 1;
|
||||
/* 添加轻微阴影以实现视觉分离 */
|
||||
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
|
||||
}
|
||||
1
assets/stylesheets/glightbox.min.css
vendored
Normal file
1
assets/stylesheets/glightbox.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/stylesheets/typography/Telegraf-Regular.otf
Normal file
BIN
assets/stylesheets/typography/Telegraf-Regular.otf
Normal file
Binary file not shown.
BIN
assets/stylesheets/typography/Telegraf-UltraBold.otf
Normal file
BIN
assets/stylesheets/typography/Telegraf-UltraBold.otf
Normal file
Binary file not shown.
BIN
assets/stylesheets/typography/msyh.ttc
Normal file
BIN
assets/stylesheets/typography/msyh.ttc
Normal file
Binary file not shown.
BIN
assets/stylesheets/typography/msyhbd.ttc
Normal file
BIN
assets/stylesheets/typography/msyhbd.ttc
Normal file
Binary file not shown.
Reference in New Issue
Block a user