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

fixed - Alignment of the Documentation page. #698 #393

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@
font-weight: 600;
}
</style>

</head>

<body>

<div id="app"></div>
<!-- <h1 class="sidebar-header">CircuitVerse</h1> -->
<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
<script>
window.$docsify = {
Expand All @@ -102,10 +105,17 @@
}
}
</script>



<script src="//unpkg.com/docsify@4/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
<div class="sidebar-footer">
Copyright © 2024 Contributors to CircuitVerse.
</div>

</body>

<!-- Global site tag (gtag.js) - Google Analytics -->
Expand Down
64 changes: 54 additions & 10 deletions docs/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,47 @@
}

/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
.sidebar {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 300px;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* Fixed header */
.sidebar-header {
position: fixed;
top: 0;
width: 300px;
z-index: 200;
padding: 15px 20px;
border-bottom: 1px solid #eee;
}

.sidebar-nav {
flex: 1;
overflow-y: auto;
padding-top: 60px; /* Space for search */
margin-top: 60px;
margin-bottom: 40px; /* Space for copyright */
z-index: 100;
}

.sidebar-footer {
position: fixed;
bottom: 0;
background-color: #ccc;
width: 100%;
padding: 15px;
text-align: center;
color: black;
background: #f8f9fa;
border-top: 1px solid #eee;
z-index: 1000; /* Keep above content */
flex-shrink: 0; /* Prevent footer from shrinking */
}

.smooth{
Expand Down Expand Up @@ -84,13 +117,22 @@ div[style="overflow: auto"]{
bottom: initial;
}

.sidebar-nav::-webkit-scrollbar {
width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
background: #00bc8c;
border-radius: 3px;
}

.search {
margin-top: 39px;
position: sticky;
top: 36px;
width: 100%;
padding: 0 !important;
top: 0;
z-index: 1000;
border-bottom: 1px solid #eee;
}

.search .input-wrap {
margin-left: 10px;
}
Expand All @@ -105,3 +147,5 @@ div[style="overflow: auto"]{
width: 296px;
}
}