Skip to content

Sidebar styling #75

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from
Closed
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: 6 additions & 4 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>
-->
<div class="sidebar-logo">
<a href="{{ site.baseurl }}">
<img src="/biopython_grey.png" alt="Biopython Logo" title="" width="100%"/>
<img src="/biopython_grey.png" alt="Biopython Logo" title="Biopython Home" width="100%"/>
</a>
</div>
<p class="lead">{{ site.description }}</p>
Expand Down Expand Up @@ -43,9 +43,11 @@ <h1>
<a class="sidebar-nav-item" href="{{ site.github.repo }}/archive/v{{ site.version }}.zip">Download</a>
-->
<a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
<span class="sidebar-nav-item">Currently v{{ site.version }}</span>
</nav>

<p>&copy; {{ site.time | date: '%Y' }}. All rights reserved.</p>

</div>
<div class="sidebar-footer">
Biopython version {{ site.version }}<br>
&copy; {{ site.time | date: '%Y' }}. All rights reserved.
</div>
</div>
34 changes: 28 additions & 6 deletions css/hyde.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ html {

.sidebar {
text-align: center;
padding: 2rem 1rem;
padding: 0.5rem 1rem;
color: rgba(255,255,255,.5);
background-color: #10100F;
}
Expand All @@ -67,6 +67,23 @@ html {
bottom: 0;
width: 18rem;
text-align: left;
padding: 2rem 1rem;
}
.sidebar-nav {
margin-bottom: 1rem;
}
.sidebar-nav-item {
display: block;
line-height: 1.75;
}
.sidebar-footer {
position: absolute;
bottom: 5px;
padding: 1rem;
}
.container {
padding-left: 1rem;
padding-right: 1rem;
}
}

Expand All @@ -85,11 +102,10 @@ html {

/* Sidebar nav */
.sidebar-nav {
margin-bottom: 1rem;
margin-bottom: 0.5rem;
}
.sidebar-nav-item {
display: block;
line-height: 1.75;
padding-right: 0.5rem
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
Expand Down Expand Up @@ -122,22 +138,28 @@ a.sidebar-nav-item:focus {
*/

.content {
padding-top: 4rem;
padding-bottom: 4rem;
padding-top: 2rem;
padding-bottom: 1rem;
padding-left: 1rem;
padding-right: 1rem;
}

@media (min-width: 48em) {
.content {
max-width: 46rem;
margin-left: 20rem;
margin-right: 2rem;
padding-top: 4rem;
padding-bottom: 1rem;
}
}

@media (min-width: 64em) {
.content {
margin-left: 22rem;
margin-right: 4rem;
padding-top: 4rem;
padding-bottom: 1rem;
}
}

Expand Down
2 changes: 0 additions & 2 deletions css/poole.css
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ tbody tr:nth-child(odd) th {

.container {
max-width: 38rem;
padding-left: 1rem;
padding-right: 1rem;
margin-left: auto;
margin-right: auto;
}
Expand Down