Skip to content

Commit

Permalink
Fix issues with sidebar spacing (#66)
Browse files Browse the repository at this point in the history
* Fix issues with sidebar spacing

* Add static metadata archive tag; add last_updated setting to theme.conf; bump version number to 1.0.2

* test setting last updated date format in theme.conf

* fix margin for docs container to accomodate new sidebar max-width
  • Loading branch information
jputrino committed Mar 30, 2018
1 parent df386c7 commit 4dbf508
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion f5_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os
from os import path

__version__ = "1.0.1"
__version__ = "1.0.2"

def get_html_theme_path():
"""Return the html theme path for this template library.
Expand Down
1 change: 1 addition & 0 deletions f5_sphinx_theme/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<meta name="product" content="{{ project|striptags|e }}"/>
<meta name="version" content="{{ release|striptags|e }}"/>
<meta name="updated_date" content="{{ last_updated|e }}"/>
<meta name="archived" content="Archived documents excluded"/>

{{ metatags }}

Expand Down
9 changes: 4 additions & 5 deletions f5_sphinx_theme/static/css/f5-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ body {
margin-left: 0;
}
#content.active {
margin-left: 256px;
margin-left: 325px;
}
}

@media (max-width: 1024px) {
#content {
margin-left: 256px;
margin-left: 325px;
}
#content.active {
margin-left: 0;
Expand Down Expand Up @@ -101,15 +101,14 @@ a.headerlink:hover {

#sidebar, .section-nav {
min-width: 256px;
max-width: 256px;
height: 85vh;
max-width: 325px;
max-height: 100vh;
transition: all 0.3s;
background-color: #e8e8e8;
float: left;
margin-right: 40px;
margin-bottom: 256px;
/*margin-top: 24px;*/
margin-top: 22px;
overflow-x: scroll;
overflow-y: scroll;
padding: 16px 12px 16px 16px;
Expand Down
2 changes: 2 additions & 0 deletions f5_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[theme]
inherit = classic
stylesheet = css/bootstrap.min.css
html_last_updated_fmt = ''%Y-%m-%d %I:%M:%S'

[options]
site_name = CloudDocs Home
next_prev_link = False

0 comments on commit 4dbf508

Please sign in to comment.