Commit Graph

94 Commits

Author SHA1 Message Date
Anthony Johnson
300f9f01ec Source fonts from bower packages as well
This will be used on RTD to source the same font files from bower packages
2015-09-10 15:45:47 -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
436c90aea4 Fix figure caption styling, fixes #197 2015-07-21 19:12:21 -07:00
Eric Holscher
4fc47538d1 Update gen'd files 2015-07-20 11:19:13 -07: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
Eric Holscher
aacc59f07a Merge remote-tracking branch 'agjohnson/fix-code-color'
Conflicts:
	sphinx_rtd_theme/static/css/theme.css
	sphinx_rtd_theme/static/css/theme.css.map
2015-07-20 11:16:02 -07:00
Eric Holscher
f772a1ff34 Merge remote-tracking branch 'agjohnson/fix-citation-code'
Conflicts:
	sphinx_rtd_theme/static/css/theme.css
	sphinx_rtd_theme/static/css/theme.css.map
2015-07-20 11:14:51 -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
591c2283a8 Make code block color match Wyrm code block color
This fixes #203. As of Sphinx 1.3, there are some code blocks that shouldn't
have this styling: namely breadcrumb code blocks and xref code blocks. This adds
additional rules for those as well.
2015-07-17 14:16:57 -07:00
Anthony Johnson
2cd2729188 Fix citation code color, fixes #204 2015-07-17 10:30:53 -07:00
Eric Holscher
2929ef2986 Merge remote-tracking branch 'agjohnson/nav-levels'
Conflicts:
	sphinx_rtd_theme/static/css/theme.css
	sphinx_rtd_theme/static/css/theme.css.map
2015-05-04 14:55:34 -07:00
Anthony Johnson
13a6cc6657 Show caption elements in content as an h2 heading 2015-05-04 14:52:26 -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
Eric Holscher
bd209165b9 Render artifacts 2015-03-30 10:49:46 -07:00
Daniel Tschinder
64cfb22edf Fix rtd theme for sphinx 1.3 2015-03-27 01:25:48 +01:00
kxxoling
7001cc99aa fix bug #172 2015-03-11 16:04:30 +08: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
Eric Holscher
259b033903 Merge remote-tracking branch 'liuyang1204/master'
Conflicts:
	sphinx_rtd_theme/static/css/theme.css
2015-03-09 13:55:24 -07:00
Eric Holscher
7888630601 Do a new minified release 2015-03-09 13:10:12 -07:00
Dennis Schwertel
bbd184cdeb updated css file 2014-11-12 17:54:09 +01:00
Liu Yang
8fa5b1dece Improve download link style 2014-11-03 15:37:12 +08:00
Dave Snider
21e875d3a5 forgot to minify 2014-08-21 19:46:30 -07:00
Dave Snider
e3ded0a636 update bourbon/neat combo to newest versions, per wyrm dependency 2014-08-21 19:40:29 -07:00
Dave Snider
b83f5adf97 update with wyrm's better breakpoint naming 2014-06-11 22:18:11 -07:00
Dave Snider
c73cd09261 partial fix for #108 2014-05-28 09:30:51 -07:00
Dave Snider
c5d2bf558d code font stack, fixes #121 2014-05-28 09:11:18 -07:00
Dave Snider
23bf5d281c math centering fixes #123 2014-05-28 08:49:43 -07:00
Dave Snider
06f2406ee0 latest wyrm 2014-05-21 22:50:19 -07:00
Dave Snider
54a48b1726 fixes #118 2014-05-13 08:52:47 -07:00
Dave Snider
0112b1a270 todo coloring, fixes #100 2014-05-13 08:43:14 -07:00
Dave Snider
fd8563ddda fix for #116 2014-04-25 14:26:03 -07:00
Dave Snider
79740ac4fb shouldn't show versions and footer in print version 2014-04-18 07:33:02 -07:00
Dave Snider
8e6795dfd1 fixes #111 2014-03-12 22:14:26 -07:00
Dave Snider
24e1c73114 literal blocks and newer css 2014-03-02 08:16:53 -08:00
Dave Snider
5324cc3ac3 wyrm changes should make css on rtd smaller 2014-02-11 17:19:48 -08:00
Dave Snider
4b3c0b211b update with button and font changes from wyrm 2014-02-08 20:14:22 -08:00
Dave Snider
8af1437a38 move to contrib-sass, remove contrib-compass reqs 2014-02-06 11:33:54 -08:00
Dave Snider
95afe66233 fix fontawesome hovers, fixes #95 2014-02-05 14:31:41 -08:00
Dave Snider
83a10cbae3 lock down wyrm depencendy while I fix some icon stuff 2014-02-05 12:47:50 -08:00
Dave Snider
2aaca3c6c1 backwards compat for font awesome 3.0 for fonts sphinx_rtd was using.
fixes #95
2014-02-03 13:05:53 -08:00
Eric Holscher
c9fd0951c2 Add icon CSS back in for old doc builds 2014-02-03 19:57:52 +07:00
Dave Snider
c15e5661a3 Merge branch 'fix_image_center_alignment_and_spacing' of github.com:Kami/sphinx_rtd_theme into Kami-fix_image_center_alignment_and_spacing
Conflicts:
	sphinx_rtd_theme/static/css/badge_only.css
	sphinx_rtd_theme/static/css/theme.css
2014-01-31 14:30:48 -08:00
Dave Snider
f1cad51592 css for #92 2014-01-31 14:28:02 -08:00
Dave Snider
e83688818d get the theme working with fa. #94 2014-01-31 08:58:37 -08:00
Lukas Stührk
7cfd81d8b7 Fixed sass to work with upstream version of wyrm. 2014-01-31 17:10:07 +01:00
Eric Holscher
0171374898 Combined compiled assets after merge 2014-01-16 19:53:30 +07:00