Wcowin 739737bd32 Add related posts feature for MkDocs pages
Introduced a new related_posts.py hook and documentation to recommend related articles on MkDocs pages. Updated navigation and hook configuration in mkdocs.yml, added supporting files, and improved CSS for link styling and navigation. This enhances user experience by surfacing relevant content and visually refining the site.
2025-07-15 23:51:46 +08:00

48 lines
753 B
CSS

/* hooks.css */
.version-info {
margin-top: 2rem;
font-size: 0.9rem;
color: #666;
}
.video-container {
position: relative;
width: 100%;
padding-bottom: 56.25%; /* 16:9 */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.runnable-code {
border: 1px solid #ddd;
border-radius: 8px;
margin: 1rem 0;
}
.code-header {
background: #f5f5f5;
padding: 0.5rem 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.run-btn {
background: #007acc;
color: white;
border: none;
padding: 0.25rem 0.5rem;
border-radius: 4px;
cursor: pointer;
}
/* 目录导航的缩进参考线 */
nav.md-nav--secondary ul {
border-left: 1px solid lightblue;
}