Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改bug,添加注释以及规范化代码 #3

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 158 additions & 0 deletions css/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
/* 默认样式 */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: .9em;
margin: 0;
min-height: 100vh;
background-color: #f8f9fa;
color: #333;
display: flex;
flex-direction: column;
}
ul{
padding:0;
margin:0;
}
tr.even {
background:#EEE;
}

table th,td {
padding: 1rem;
border-bottom: 1px solid #e9ecef;
text-align: center;
}

th {
text-align: center;
font-weight: bold;
background: #EEE;
border-bottom: 1px solid #aaa;
}

a {
color: #ed6d00;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

table {
border: none;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
background: white;
width: 90%;
max-width: 1200px;
margin: 0 auto 2rem;
overflow: hidden;
}

code {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
white-space: nowrap;
background-color: #f9f2f4;
border-radius: 4px;
}
.content,
#footer {
display: none;
}
.markdown-body blockquote {
margin: 0 0 16px;
padding: 0.5em 1em;
color: #6a737d;
border-left: 0.25em solid #dfe2e5;
background-color: #f6f8fa;
}

.markdown-body blockquote p {
margin: 0;
}
.markdown-body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.6;

color: #24292e;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
margin-top: 10px;
margin-bottom: 10px;
font-weight: 600;
line-height: 1.25;
}

.markdown-body h1 { font-size: 1.5em; }
.markdown-body h2 { font-size: 1.3em; }
.markdown-body h3 { font-size: 1.1em; }

.markdown-body p {
margin-bottom: 16px;
line-height: 1.6;
}

.markdown-body code {
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: rgba(27, 31, 35, 0.05);
border-radius: 3px;
}

.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f6f8fa;
border-radius: 3px;
margin-bottom: 16px;
}

.markdown-body pre code {
display: block;
padding: 0;
margin: 0;
overflow: auto;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}

.markdown-body a {
color: #0366d6;
text-decoration: none;
}

.markdown-body a:hover {
text-decoration: underline;
}

.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
margin-bottom: 16px;
}

.markdown-body li {
margin-bottom: 0.25em;
}

.markdown-body strong {
font-weight: 600;
}

.markdown-body em {
font-style: italic;
}
147 changes: 147 additions & 0 deletions css/download.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
/* 主容器样式 */
.os-container {
display: flex;
width: 50%;
margin-bottom:10px;
margin: 0 auto ;
margin-bottom:30px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.1);
min-height: 80vh;
}

/* 侧边栏相关样式 */
.os-sidebar {
width: 240px;
border-right: 1px solid #eee;
background: #f8f9fa;
border-radius: 8px 0 0 8px;
}

.sidebar-header {
padding: 1.5rem;
font-size: 1.1rem;
font-weight: 500;
color: #2c3e50;
border-bottom: 1px solid #eee;
}

/* 侧边栏菜单相关样式 */
.os-menu {
list-style: none;
padding: 0;
margin: 0;
}

.os-menu li {
padding: 0;
}

.os-menu a {
display: block;
padding: 0.8rem 1.5rem;
color: #666;
text-decoration: none;
transition: all 0.2s ease;
border-left: 3px solid transparent;
}

.os-menu a:hover {
background: #eef2f7;
color: #1e88e5;
border-left-color: #1e88e5;
}

.os-menu a.active {
background: #e3f2fd;
color: #1e88e5;
border-left-color: #1e88e5;
}

/* 内容区域相关样式 */
.os-content {
flex: 1;
padding: 1.5rem;
}

.os-header {
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid #eee;
}

.os-title {
margin: 0;
color: #2c3e50;
font-size: 1.5rem;
font-weight: 500;
}

/* 下载列表网格布局 */
.os-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
width: 100%;
}

/* 下载卡片相关样式 */
.os-card {
background: #fff;
border: 1px solid #eee;
border-radius: 8px;
padding: 1.5rem;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
height: auto;
min-height: 120px;
}

.os-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.os-card h3 {
margin: 0 0 1rem 0;
font-size: 1.1rem;
color: #333;
line-height: 1.4;
flex: 1;
word-wrap: break-word;
overflow-wrap: break-word;
}

.os-card .version {
color: #666;
font-size: 0.9rem;
margin-bottom: 1rem;
}

/* 下载按钮相关样式 */
.os-card .download-btn-container {
margin-top: auto;
text-align: right;
}

.os-card .download-btn {
display: inline-block;
padding: 0.5rem 1rem;
background: #1e88e5;
color: white;
border-radius: 4px;
text-decoration: none;
font-size: 0.9rem;
transition: background 0.2s ease;
white-space: nowrap;
width:30px;
text-align: center;
}

.os-card .download-btn:hover {
background: #1976d2;
}


Loading
Loading