krb5 commit [krb5-1.11]: Fix documentation browser resizing behavior
Tom Yu
tlyu at MIT.EDU
Sun Dec 16 21:30:45 EST 2012
https://github.com/krb5/krb5/commit/0d64c9c5dccaeabc56764f026cc531f70a44bb4a
commit 0d64c9c5dccaeabc56764f026cc531f70a44bb4a
Author: Tom Yu <tlyu at mit.edu>
Date: Thu Dec 13 09:53:23 2012 -0500
Fix documentation browser resizing behavior
Remove hardcoded dimensions from a few CSS parameters to prevent
layout problems when readers resize their browsers to have a narrower
window.
Set a max-width: 60em on the main content so that text remains
readable on wide browser windows.
(cherry picked from commit bba7ed92a0b9800d9f5fdb14f5f66f755e9d92fa)
ticket: 7503
version_fixed: 1.11
status: resolved
doc/_static/kerb.css | 7 +++++++
doc/conf.py | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/doc/_static/kerb.css b/doc/_static/kerb.css
index f283496..eb93bc4 100644
--- a/doc/_static/kerb.css
+++ b/doc/_static/kerb.css
@@ -16,6 +16,9 @@ div.body {
div.header, div.content, div.footer {
margin-left: auto;
margin-right: auto;
+ padding-left: 1em;
+ padding-right: 1em;
+ max-width: 60em;
}
div.header-wrapper {
@@ -107,6 +110,10 @@ div.sidebar li.toctree-l4 a {
display: none;
}
+div.sidebar input[type=text] {
+ width: auto;
+}
+
/* Other body styles */
dt:target, .highlighted {
diff --git a/doc/conf.py b/doc/conf.py
index 53898ae..44fe812 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -107,8 +107,8 @@ html_theme = 'agogo'
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = { "linkcolor": "#a63019", "footerbg": "#59121e",
- "bgcolor": "#59121e", "documentwidth": "900px",
- "pagewidth": "960px", "sidebarwidth": "40px" }
+ "bgcolor": "#59121e", "documentwidth": "80%",
+ "pagewidth": "auto", "sidebarwidth": "20%" }
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
More information about the cvs-krb5
mailing list