168 lines
2.5 KiB
CSS
168 lines
2.5 KiB
CSS
|
body {
|
||
|
font-family: 'Arial', sans-serif;
|
||
|
line-height: 1.6;
|
||
|
color: #333;
|
||
|
background-color: #f4f4f4;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
.container {
|
||
|
width: 80%;
|
||
|
max-width: 1200px;
|
||
|
margin: 0 auto;
|
||
|
padding: 20px;
|
||
|
background: #fff;
|
||
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||
|
}
|
||
|
nav {
|
||
|
background-color: #66ccff;
|
||
|
color: white;
|
||
|
padding: 15px;
|
||
|
position: sticky;
|
||
|
top: 0;
|
||
|
z-index: 1000;
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
nav ul {
|
||
|
list-style-type: none;
|
||
|
padding: 0;
|
||
|
display: flex;
|
||
|
}
|
||
|
|
||
|
nav ul li {
|
||
|
margin-right: 20px;
|
||
|
}
|
||
|
|
||
|
nav ul li:last-child {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
nav a {
|
||
|
color: white;
|
||
|
text-decoration: none;
|
||
|
transition: color 0.3s;
|
||
|
}
|
||
|
|
||
|
nav .logo {
|
||
|
color: #fff;
|
||
|
text-decoration: none;
|
||
|
font-size: 24px;
|
||
|
}
|
||
|
|
||
|
nav a:hover {
|
||
|
color: #ffcc00;
|
||
|
}
|
||
|
|
||
|
h2 {
|
||
|
text-align: center;
|
||
|
color: #333;
|
||
|
}
|
||
|
|
||
|
small {
|
||
|
color: #666;
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
border: 0;
|
||
|
height: 1px;
|
||
|
background: #ddd;
|
||
|
margin: 20px 0;
|
||
|
}
|
||
|
|
||
|
.comment {
|
||
|
border-bottom: 1px solid #e0e0e0;
|
||
|
padding: 15px;
|
||
|
margin-bottom: 15px;
|
||
|
background-color: #fff;
|
||
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
||
|
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
||
|
}
|
||
|
|
||
|
.comment:hover {
|
||
|
transform: translateY(-5px);
|
||
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
||
|
}
|
||
|
|
||
|
.comment strong {
|
||
|
color: #333;
|
||
|
display: block;
|
||
|
font-size: 1.1em;
|
||
|
margin-bottom: 5px;
|
||
|
}
|
||
|
|
||
|
.comment p {
|
||
|
color: #666;
|
||
|
font-size: 1em;
|
||
|
}
|
||
|
|
||
|
.comment:last-child {
|
||
|
margin-bottom: 0;
|
||
|
border-bottom: none;
|
||
|
}
|
||
|
|
||
|
/* 回复功能 还没写*/
|
||
|
.comment .sub-comment {
|
||
|
margin-left: 20px;
|
||
|
border-top: 1px solid #e0e0e0;
|
||
|
padding-top: 10px;
|
||
|
}
|
||
|
|
||
|
#comments h2 {
|
||
|
margin-top: 20px;
|
||
|
margin-bottom: 10px;
|
||
|
border-bottom: 1px solid #ddd;
|
||
|
padding-bottom: 5px;
|
||
|
font-size: 1.5em;
|
||
|
}
|
||
|
|
||
|
form textarea {
|
||
|
width: 100%;
|
||
|
height: 100px;
|
||
|
padding: 10px;
|
||
|
box-sizing: border-box;
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
form button {
|
||
|
padding: 10px 20px;
|
||
|
background: #333;
|
||
|
color: #fff;
|
||
|
border: none;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
form button:hover {
|
||
|
background: #555;
|
||
|
}
|
||
|
|
||
|
.page-footer {
|
||
|
background-color: #333;
|
||
|
color: #fff;
|
||
|
text-align: center;
|
||
|
padding: 1em 0;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.footer-content {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
max-width: 1200px;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
.copyright {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.commit-id {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.commit-id span {
|
||
|
color: #aaa;
|
||
|
}
|