Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
geoqiao authored Sep 22, 2024
1 parent d883824 commit 1a01ef4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
<script src="https://geoqiao.github.io/templates/static/js/prism.js"></script>
<script src="https://geoqiao.github.io/templates/static/js/main.js"></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ <h2 class="post-title"><a href="/contents/blog/{{ issue.number }}.html">{{ issue
{% endif %}
</nav>
{% endif %}
{% endblock %}
{% endblock %}
28 changes: 27 additions & 1 deletion templates/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ footer {
left: 0;
background-color: var(--header-background);
padding: 1rem;
z-index: 1000;
}

.nav-links.active {
Expand All @@ -177,13 +178,31 @@ footer {
height: 3px;
background-color: #fff;
margin: 5px 0;
transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}

.post {
padding: 1rem;
}
}

/* 基础样式 */
.post-content {
line-height: 1.6;
line-height: 1.8;
color: #333;
font-size: 16px;
}

/* 标题样式 */
Expand Down Expand Up @@ -362,4 +381,11 @@ footer {
padding: 0;
font-size: 1em;
white-space: pre;
}

@media (max-width: 768px) {
.post-content pre {
font-size: 12px;
padding: 0.5em;
}
}

0 comments on commit 1a01ef4

Please sign in to comment.