Commit Graph

30 Commits

Author SHA1 Message Date
Hongyi Zhang
022d936dd9 add padding to make bar icon vertically centered in the nav menu
Signed-off-by: Hongyi Zhang <hongyi73.zhang@gmail.com>
2015-10-10 15:13:52 -07:00
Anthony Johnson
60eb0af7fb Resolve scrollbar visibility on navbar on long content
This resolves #200, where a scrollbar was sometimes visible on the navbar. This
unfortunately wasn't addressable with just CSS, as outlined in #206. Because we
need the element to be scrollable, we can't set `overflow: hidden` on the nav
element.

This fixes this issue by:

 * Adding a `wy-side-scroll` element over the fixed position nav element and
   under the menu item elements
 * `wy-side-scroll` is set to 320px width, while the fixed position nav elements
   and menu item elements are 300px, clipping the scrollbar with `overflow-x:
   hidden` on the fixed position element
 * Javascript is set to scroll the new scroll element instead of the parent
   fixed position element

This was tested to be working in both cases on a variety of platforms: Linux FF,
Chrome, Windows IE, OSX Chrome and Safari, iPhone 5.1, and Android 4.2.
2015-09-08 20:35:34 -07:00
Ian Kavanagh
3de4352b2f Separated some sass variables 2015-07-25 19:01:18 +01:00
Anthony Johnson
cfb399e458 Clean up display of revision and build
This will require a patch on RTD side, to pass in `build_id` and `build_url`
in the template context.
2015-07-20 11:18:49 -07:00
Anthony Johnson
5e7d604290 Add configurable version display to nav header
This adds a subtle version display to the nav header. It will pull this
information from conf.py `version` if it exists, or if on RTD, `current_version`
from the conf additional context. If neither exists, or the `display_version`
option is false, the block will not display.
2015-07-17 16:41:52 -07:00
Anthony Johnson
b66be12f8c Add 3 + 4th levels to nav and more intuitive scrolling
Adds l3 + l4 nav menus, with more intuitive scrolling to make wandering the
additional nav menu items much easier. Resolves #25. Resolves #76.

* Reuses some styles for l3 + l4 navs items
* Nav interaction was changed to be more intuitive:
  * Nav is always sticky, doesn't scroll past end of content
  * Nav scrolls up immediately on window scroll events
  * Nav scrolls independently
  * Adds TOC expand plus links to the left of nav elements with children, these
    are added and update dynamically
  * Links in nav don't automatically scroll nav
  * Scrolling content will start scrolling nav again
  * Adds URL fragment handling to link and show current anchor links
2015-05-04 14:27:12 -07:00
Anthony Johnson
c4c681bc0e Fix lingering tt -> code sphinx 1.3 changes, refs #175
Addresses tt -> code changes in nav and references. Bumps requirements to sphinx
1.3, thought that might not be necessary.
2015-04-22 19:03:21 -07:00
Anthony Johnson
4dfd2fe6ef Add support for Sphinx 1.3 toctree captions
Reuses styling for wy-nav-vertical headers, which seem to be unused, with some
color changes to the header elements. Also fixes caption headerlink styling.
2015-04-22 18:31:00 -07:00
Eric Holscher
b14cbfebf2 Add l3 support to theme CSS. 2015-04-08 16:36:11 -07:00
Will Stevens
ab594bd224 fixed styling to match original 2015-03-09 14:16:28 -07:00
Will Stevens
2f3c5dfd14 added an example to the demo docs and configured it to use sticky nav for the demo to work 2015-03-09 14:16:28 -07:00
Eric Holscher
9fc5db2c6a Merge remote-tracking branch 'DanielOaks/html_logo'
Conflicts:
	demo_docs/source/conf.py
	sphinx_rtd_theme/layout.html
	sphinx_rtd_theme/static/css/theme.css
	sphinx_rtd_theme/theme.conf
2015-03-09 14:11:30 -07:00
Dave Snider
b83f5adf97 update with wyrm's better breakpoint naming 2014-06-11 22:18:11 -07:00
Dave Snider
79740ac4fb shouldn't show versions and footer in print version 2014-04-18 07:33:02 -07:00
Eric Hough
9b26927f5d Merge remote-tracking branch 'snide/master' into sticky-navigation
Conflicts:
	sphinx_rtd_theme/static/css/theme.css
2014-01-07 17:53:02 -05:00
Eric Hough
30f5c683eb Turning off sticky navigation if navbar is taller than window
Conflicts:
	sass/_theme_layout.sass
	sphinx_rtd_theme/layout.html
2014-01-07 17:39:48 -05:00
Eric Hough
d79eefabb2 Fixing CSS for level 2 navigation 2014-01-06 01:13:47 -05:00
Eric Hough
bcf2276d5b Adding sticky navigation option 2014-01-05 17:39:14 -05:00
Daniel Oaks
8bd1938c8b html logo_only is now an option 2013-12-08 23:18:43 +10:00
Daniel Oaks
22df9d33e8 Actually, it's nicer with no text above the logo 2013-12-08 22:45:12 +10:00
Daniel Oaks
b02048a903 Respect html_logo, and throw it in the sidebar, fixes #24 2013-12-08 22:17:36 +10:00
Dave Snider
bc4ef78ddb don't hide depth 2 when local toc tree 2013-11-08 09:04:25 -08:00
Dave Snider
caba30b87f source links, demo docs 2013-11-06 12:44:22 -08:00
Dave Snider
d4e0ac1cd8 try and style menus that go more than 2 pages deep 2013-11-05 16:09:27 -08:00
Dave Snider
563a031512 highlight class, fixes #29 #36 2013-11-05 11:54:34 -08:00
Matthew Iversen
b4da06cb10 Add highlight class, fixes #29 2013-11-05 22:32:52 +11:00
Dave Snider
ed73ac347a Rewrite a decent portion of the rst bits. Also provide some
documentation.
2013-11-04 22:44:33 -08:00
Dave Snider
a6b2b5ee4f more specific watch so grunt doesn't error. next/prev links in footer
fixes #23
2013-11-04 15:18:33 -08:00
Dave Snider
03133fca1c watch rst files, fix #26 citations, remove www from rtd link 2013-11-04 14:14:48 -08:00
Matthew Iversen
b99bad47b5 Update setup.py to work, rework file structure
- rebase sass files to ./sass
- Place all theme files in ./sphinx_rtd_theme
- Grunt now uses `default` and `build` tasks
- `build` will minify css for committing / dist
- Added Gemfile and requirements.txt for python/ruby requirements
- Cleaned up Gruntfile, copying no longer needed.
- moved compass config to compass.rb

Squashed commits:

- Move out sphinx_rtd_theme to root folder
- Manifest unneeded
- Move out sass to root dir
- Remove dist from git
- Reconfigure paths
- Add requirements for sphinx
- Add gemfile for compass
- Udpate components path
- Move to static/css
- Add line for rbenv
- Require livereload, don't need copy
- Comment static path, update theme path for demo conf.py
- Add css files
- Correct name of .ruby-version...
- Update path to theme.css
- Remove unprefixed badge_only.css
- Update location of theme.js
- Update paths in Gruntfile, tasks
- re-add __init__.py, bump version
- Update setup.py to pick up version easily
- Move config.rb to compass.rb
- Correct compass import paths
- Add debug / production environment
- Commit with production built css
- Add theme.conf, get requires from requirements.txt
- rename tasks, use sphinx-build, add comments
- Fix font path
- Update css files
2013-11-04 20:37:27 +11:00