From 092ec06e3b96851bad599c93ae6b54e1f73fc7fe Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Tue, 5 Nov 2013 09:12:21 +0800 Subject: [PATCH] fixes for colors on tt --- sass/_theme_rst.sass | 14 +++++++--- sphinx_rtd_theme/static/css/theme.css | 38 ++++++++++++++++----------- 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/sass/_theme_rst.sass b/sass/_theme_rst.sass index 2a820f2b..7eb03d96 100644 --- a/sass/_theme_rst.sass +++ b/sass/_theme_rst.sass @@ -133,10 +133,11 @@ tt // for sphinx.ext.autodoc generated content &.descname, &.descclassname background-color: transparent + border: none + padding: 0 font-size: 100% !important &.descname font-weight: bold - padding-right: 0.08em dl dl dt @@ -155,10 +156,15 @@ // Even though the font size of $code-font-family is same as normal font // it looks huge compared to it, so lets trial with it @ 90%. tt - background-color: $table-stripe-color + white-space: nowrap + max-width: 100% + background: $white + border: solid 1px $table-border-color + color: $text-color + font-size: 80% + padding: 0 5px font-family: $code-font-family - font-size: 90% - padding: 1px, 2px + overflow-x: auto big, em font-size: 100% !important diff --git a/sphinx_rtd_theme/static/css/theme.css b/sphinx_rtd_theme/static/css/theme.css index e8095767..6587fe17 100644 --- a/sphinx_rtd_theme/static/css/theme.css +++ b/sphinx_rtd_theme/static/css/theme.css @@ -5169,14 +5169,15 @@ footer p { /* line 134, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content dl tt.descname, .rst-content dl tt.descclassname { background-color: transparent; + border: none; + padding: 0; font-size: 100% !important; } -/* line 137, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 139, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content dl tt.descname { font-weight: bold; - padding-right: 0.08em; } -/* line 142, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 143, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content dl dl dt { display: inline-block; margin-bottom: 6px; @@ -5184,58 +5185,63 @@ footer p { background: none; border: none; } -/* line 149, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 150, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content dl dl dt .headerlink { color: #404040; font-size: 100% !important; } -/* line 157, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 158, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content tt { - background-color: #f3f6f6; + white-space: nowrap; + max-width: 100%; + background: white; + border: solid 1px #e1e4e5; + color: #404040; + font-size: 80%; + padding: 0 5px; font-family: "Incosolata", "Consolata", "Monaco", monospace; - font-size: 90%; - padding: 1px, 2px; + overflow-x: auto; } -/* line 163, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 169, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content tt big, .rst-content tt em { font-size: 100% !important; line-height: normal; } -/* line 167, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 173, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content tt .xref, a .rst-content tt { font-weight: bold; } -/* line 170, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 176, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content blockquote { margin-left: 24px; line-height: 24px; margin-bottom: 24px; } -/* line 176, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 182, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content #search-results .search li { margin-bottom: 24px; border-bottom: solid 1px #e1e4e5; padding-bottom: 24px; } -/* line 180, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 186, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content #search-results .search li:first-child { border-top: solid 1px #e1e4e5; padding-top: 24px; } -/* line 183, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 189, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content #search-results .search li a { font-size: 120%; margin-bottom: 12px; display: inline-block; } -/* line 187, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ +/* line 193, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content #search-results .context { color: gray; font-size: 90%; } @media screen and (max-width: 480px) { - /* line 193, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ + /* line 199, /home/tony/workspace/sphinx_rtd_theme/sass/_theme_rst.sass */ .rst-content .sidebar { width: 100%; }