Files
market_page/miniprogram/src/pages/competition/project-detail.scss
jeremygan2021 dbd752b833
All checks were successful
Deploy to Server / deploy (push) Successful in 27s
commit
2026-03-11 22:47:35 +08:00

262 lines
6.5 KiB
SCSS

.project-detail {
background-color: #000;
min-height: 100vh;
padding-bottom: 60px;
box-sizing: border-box;
.cover {
width: 100%;
height: 260px;
display: block;
}
.content {
padding: 30px;
background: #111;
border-radius: 24px 24px 0 0;
margin-top: -30px;
position: relative;
z-index: 10;
min-height: 60vh;
.header {
margin-bottom: 40px;
.title {
font-size: 36px;
font-weight: bold;
color: #fff;
margin-bottom: 24px;
line-height: 1.4;
display: block;
}
.author {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.08);
padding: 12px 20px;
border-radius: 30px;
display: inline-flex;
.avatar {
width: 36px;
height: 36px;
border-radius: 50%;
margin-right: 12px;
background: #333;
}
.name {
font-size: 18px;
color: #ddd;
}
}
}
.section {
margin-bottom: 50px;
.section-title {
font-size: 28px;
font-weight: bold;
color: #fff;
margin-bottom: 24px;
display: block;
border-left: 6px solid #00b96b;
padding-left: 18px;
}
.text-content {
font-size: 20px;
color: #ccc;
line-height: 1.8;
background: #1f1f1f;
padding: 24px;
border-radius: 20px;
/* Markdown Styles */
h1, h2, h3, h4, h5, h6 { margin-top: 40px; margin-bottom: 24px; color: #fff; font-weight: 700; line-height: 1.4; }
h1 { font-size: 34px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; }
h2 { font-size: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
h3 { font-size: 26px; }
h4 { font-size: 24px; }
h5 { font-size: 22px; color: #ddd; }
p { margin-bottom: 24px; }
strong { font-weight: 800; color: #fff; }
em { font-style: italic; color: #aaa; }
del { text-decoration: line-through; color: #666; }
ul, ol { margin-bottom: 24px; padding-left: 28px; }
li { margin-bottom: 10px; list-style-position: outside; }
ul li { list-style-type: disc; }
ol li { list-style-type: decimal; }
li input[type="checkbox"] { margin-right: 12px; transform: scale(1.2); }
blockquote {
border-left: 6px solid #00b96b;
background: rgba(255, 255, 255, 0.05);
padding: 20px 24px;
margin: 24px 0;
border-radius: 8px;
color: #bbb;
font-size: 18px;
font-style: italic;
p { margin-bottom: 0; }
}
a { color: #00b96b; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
hr {
height: 1px;
background: rgba(255,255,255,0.1);
border: none;
margin: 30px 0;
}
table {
width: 100%;
border-collapse: collapse;
margin: 24px 0;
font-size: 18px;
overflow-x: auto;
display: block;
th, td {
border: 1px solid rgba(255,255,255,0.1);
padding: 14px;
text-align: left;
}
th {
background: rgba(255,255,255,0.05);
font-weight: 700;
color: #fff;
}
tr:nth-child(even) {
background: rgba(255,255,255,0.02);
}
}
code {
background: rgba(255,255,255,0.1);
padding: 4px 8px;
border-radius: 6px;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
color: #ff7875;
font-size: 18px;
margin: 0 6px;
}
pre {
background: #161616;
padding: 24px;
border-radius: 16px;
overflow-x: auto;
margin: 24px 0;
border: 1px solid #333;
box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
code {
background: transparent;
color: #a6e22e;
padding: 0;
font-size: 16px;
margin: 0;
white-space: pre;
}
}
image {
max-width: 100%;
border-radius: 16px;
margin: 24px 0;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
}
.empty {
font-size: 18px;
color: #666;
text-align: center;
display: block;
padding: 40px 0;
background: #1f1f1f;
border-radius: 16px;
}
.file-list {
background: #1f1f1f;
border-radius: 20px;
overflow: hidden;
.file-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px;
border-bottom: 1px solid #333;
&:last-child {
border-bottom: none;
}
.file-name {
font-size: 18px;
color: #ddd;
flex: 1;
margin-right: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-action {
font-size: 16px;
color: #00b96b;
padding: 8px 20px;
border: 1px solid #00b96b;
border-radius: 20px;
}
}
}
.comment-list {
.comment-item {
background: #1f1f1f;
border-radius: 20px;
padding: 24px;
margin-bottom: 24px;
&:last-child {
margin-bottom: 0;
}
.comment-header {
display: flex;
justify-content: space-between;
margin-bottom: 16px;
.judge-name {
font-size: 18px;
font-weight: bold;
color: #00b96b;
}
.comment-time {
font-size: 16px;
color: #666;
}
}
.comment-content {
font-size: 20px;
color: #ccc;
line-height: 1.6;
display: block;
text-align: justify;
}
}
}
}
}
}