From 0541eb02feada4ed372b95d089e1dd50fe982b59 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 31 Mar 2017 19:38:28 -0400 Subject: [PATCH 1/7] Change css file extension --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index bdd639389..8ac0aeba1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -70,7 +70,7 @@ module.exports = function(grunt) { cwd: 'sass', src: ['*.sass'], dest: 'sphinx_rtd_theme/static/css', - ext: '.css' + ext: '.css_t' }] }, build: { @@ -83,7 +83,7 @@ module.exports = function(grunt) { cwd: 'sass', src: ['*.sass'], dest: 'sphinx_rtd_theme/static/css', - ext: '.css' + ext: '.css_t' }] } }, From a73925bac4dbe2e98dcfbd44eecf417f7a65e47f Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 31 Mar 2017 19:42:56 -0400 Subject: [PATCH 2/7] Add theme color var --- sphinx_rtd_theme/theme.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sphinx_rtd_theme/theme.conf b/sphinx_rtd_theme/theme.conf index f96b5840f..3258d4ad4 100644 --- a/sphinx_rtd_theme/theme.conf +++ b/sphinx_rtd_theme/theme.conf @@ -1,6 +1,8 @@ [theme] inherit = basic stylesheet = css/theme.css +[colors] +nav_search_background_color = #blue [options] typekit_id = hiw1hhg From e552d9cc88b76ba9dbe121f9cb675ea491a918f7 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 31 Mar 2017 19:47:30 -0400 Subject: [PATCH 3/7] Update _theme_variables.sass --- sass/_theme_variables.sass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sass/_theme_variables.sass b/sass/_theme_variables.sass index 349ea50e7..df60dd9f5 100644 --- a/sass/_theme_variables.sass +++ b/sass/_theme_variables.sass @@ -41,7 +41,7 @@ $menu-link-active: $white // Navigation colors $nav-background-color: $menu-background-color -$nav-search-background-color: $blue +$nav-search-background-color: "{{ theme_nav_search_background_color }}" $nav-search-color: $section-background-color $nav-link-color: $blue $nav-link-color-visited: $purple From bd095056a6beb0c83c68acd34bb6d2fc86e36e4f Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 31 Mar 2017 19:49:33 -0400 Subject: [PATCH 4/7] Update _theme_layout.sass --- sass/_theme_layout.sass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sass/_theme_layout.sass b/sass/_theme_layout.sass index 626d1f45e..283267652 100644 --- a/sass/_theme_layout.sass +++ b/sass/_theme_layout.sass @@ -170,7 +170,7 @@ padding: $gutter / 2 margin-bottom: $gutter / 2 z-index: $z-index-popover - background-color: $nav-search-background-color + background-color: #{$nav-search-background-color} text-align: center padding: $gutter / 2 display: block From 2bb75f55be6b8113cbdc9b3b3e442647fdeae6e4 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 31 Mar 2017 20:06:13 -0400 Subject: [PATCH 5/7] Change color --- sphinx_rtd_theme/theme.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_rtd_theme/theme.conf b/sphinx_rtd_theme/theme.conf index 3258d4ad4..36d1e8fc3 100644 --- a/sphinx_rtd_theme/theme.conf +++ b/sphinx_rtd_theme/theme.conf @@ -2,7 +2,7 @@ inherit = basic stylesheet = css/theme.css [colors] -nav_search_background_color = #blue +nav_search_background_color = #2980B9 [options] typekit_id = hiw1hhg From 52e3d5dbbeae4a97e5e7776cda9e6eddc7d20557 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Sun, 17 Dec 2017 21:36:07 -0500 Subject: [PATCH 6/7] Include css_t for pypi --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 1e6a2ebd3..2dfcf18f2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,7 +1,7 @@ include *.txt include LICENSE recursive-include sphinx_rtd_theme *.conf -recursive-include sphinx_rtd_theme *.css +recursive-include sphinx_rtd_theme *.css_t recursive-include sphinx_rtd_theme *.eot recursive-include sphinx_rtd_theme *.html recursive-include sphinx_rtd_theme *.js From 40d0e1317d3ce624545a3eea2c380b7df826df6c Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Sun, 17 Dec 2017 21:42:36 -0500 Subject: [PATCH 7/7] Add documentation for nav_search_background_color --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rst b/README.rst index be882b226..a0f5863a3 100644 --- a/README.rst +++ b/README.rst @@ -87,6 +87,7 @@ file of this repository, and can be defined in your project's ``conf.py`` via .. code:: python html_theme_options = { + # Base Options 'typekit_id': '', 'canonical_url': '', 'analytics_id': '', @@ -94,6 +95,8 @@ file of this repository, and can be defined in your project's ``conf.py`` via 'display_version': True, 'prev_next_buttons_location': bottom, 'style_external_links': False, + # CSS Options + 'nav_search_background_color': #2980B9, # Toc options 'collapse_navigation': False, 'sticky_navigation': True, @@ -117,6 +120,11 @@ Base options and will display the "Next" and "Previous" buttons accordingly * ``style_external_links`` Add an icon next to external links. Defaults to ``False``. +CSS Options +~~~~~~~~~~~ + +* ``nav_search_background_color`` Color. Defines the color for the navigation search area. + TOC Options ~~~~~~~~~~~