From 40f6e1e09843fe76c3f7f9fc564e8b4ef91c26b9 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Thu, 3 Nov 2011 16:53:24 -0500 Subject: [PATCH] Better adaptation of Bro website style in Broxygen docs. --- doc/scripts/conf.py.in | 32 +- doc/scripts/source/_static/bro-base.css_t | 237 ------ doc/scripts/source/_static/bro-colors.css | 34 - doc/scripts/source/_static/bro-elements.css_t | 747 ------------------ doc/scripts/source/_static/bro-framing.css_t | 482 ----------- doc/scripts/source/_static/broxygen.css | 5 + doc/scripts/source/_templates/layout.html | 20 +- 7 files changed, 35 insertions(+), 1522 deletions(-) delete mode 100644 doc/scripts/source/_static/bro-base.css_t delete mode 100644 doc/scripts/source/_static/bro-colors.css delete mode 100644 doc/scripts/source/_static/bro-elements.css_t delete mode 100644 doc/scripts/source/_static/bro-framing.css_t create mode 100644 doc/scripts/source/_static/broxygen.css diff --git a/doc/scripts/conf.py.in b/doc/scripts/conf.py.in index 503b2bb612..cee16b9239 100644 --- a/doc/scripts/conf.py.in +++ b/doc/scripts/conf.py.in @@ -90,12 +90,36 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'basic' +html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -#html_theme_options = {} +html_theme_options = { +"rightsidebar": "true", +"stickysidebar": "true", +"externalrefs": "true", +"footerbgcolor": "#333", +"footertextcolor": "#ddd", +"sidebarbgcolor": "#ffffff", +#"sidebarbtncolor": "", +"sidebartextcolor": "#333", +"sidebarlinkcolor": "#2a85a7", +"relbarbgcolor": "#ffffff", +"relbartextcolor": "#333", +"relbarlinkcolor": "#2a85a7", +"bgcolor": "#ffffff", +"textcolor": "#333", +"linkcolor": "#2a85a7", +"visitedlinkcolor": "#2a85a7", +"headbgcolor": "#f0f0f0", +"headtextcolor": "#000", +"headlinkcolor": "#2a85a7", +"codebgcolor": "#FFFAE2", +#"codetextcolor": "", +"bodyfont": "Arial, Helvetica, sans-serif", +"headfont": "Palatino,'Palatino Linotype',Georgia,serif", +} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] @@ -130,7 +154,9 @@ html_static_path = ['source/_static'] #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -#html_sidebars = {} +html_sidebars = { +'**': ['localtoc.html', 'sourcelink.html', 'searchbox.html'], +} # Additional templates that should be rendered to pages, maps page names to # template names. diff --git a/doc/scripts/source/_static/bro-base.css_t b/doc/scripts/source/_static/bro-base.css_t deleted file mode 100644 index 30885c9d72..0000000000 --- a/doc/scripts/source/_static/bro-base.css_t +++ /dev/null @@ -1,237 +0,0 @@ - -{% import "bro-colors.css" as color %} - -#bro-main, #bro-standalone-main { - padding: 0 0 0 0; - position:relative; - z-index:1; -} - -#bro-main { - margin-bottom: 2em; - } - -#bro-standalone-main { - margin-bottom: 0em; - padding-left: 50px; - padding-right: 50px; - } - -#bro-outer { - color: {{color.text}}; - background: {{color.bg}}; -} - -#bro-title { - font-weight: bold; - font-size: 32px; - line-height:32px; - text-align: center; - padding-top: 3px; - margin-bottom: 30px; - font-family: Palatino,'Palatino Linotype',Georgia,serif;; - color: #000; - } - -.opening:first-letter { - font-size: 24px; - font-weight: bold; - letter-spacing: 0.05em; - } - -.opening { - font-size: 17px; -} - -.version { - text-align: right; - font-size: 12px; - color: #aaa; - line-height: 0; - height: 0; -} - -.git-info-version { - position: relative; - height: 2em; - top: -1em; - color: #ccc; - float: left; - font-size: 12px; -} - -.git-info-date { - position: relative; - height: 2em; - top: -1em; - color: #ccc; - float: right; - font-size: 12px; -} - -body { - font-family:Arial, Helvetica, sans-serif; - font-size:15px; - line-height:22px; - color: {{color.text}}; - margin: 0px; -} - -h1, h2, h3, h4, h5, h6, -h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { - padding:0 0 20px 0; - font-weight:bold; - text-decoration:none; -} - -h1, h2 { - font-size:27px; - letter-spacing:-1px; -} - -h3 { - margin-top: 1em; - font-size:18px; -} - -h4 { - font-size:16px; -} - -h5 { - font-size:15px; -} - -h6 { - font-size:12px; -} - -p { - padding:0 0 20px 0; -} - -hr { - background:none; - height:1px; - line-height:1px; - border:0; - margin:0 0 20px 0; -} - -ul, ol { - margin:0 20px 20px 0; - padding-left:40px; -} - -blockquote { - margin:0 0 0 40px; -} - -strong, dfn { - font-weight:bold; -} - -em, dfn { - font-style:italic; -} - -sup, sub { - line-height:0; -} - -pre { - white-space:pre; -} - -pre, code, tt { - font-family:"Courier New", Courier, mono; -} - -dl { - margin: 0 0 20px 0; -} - -dl dt { - font-weight: bold; -} - -dd { - margin:0 0 20px 20px; -} - -small { - font-size:75%; -} - -a:link, -a:visited, -a:active -{ - color: {{color.link}}; -} - -a:hover -{ - color:{{color.emphasis_text}}; -} - -h1, h2, h3, h4, h5, h6, -h1 a, h2 a, h3 a, h4 a, h5 a, h6 a -{ - color: {{color.text}}; -} - -hr { - border-bottom:1px solid #ddd; -} - -pre { - color: {{color.text}}; - background: {{color.box_bg}}; - padding: 7px 5px 3px 5px; - margin-bottom: 25px; - margin-top: 0px; -} - -ul { - padding-bottom: 5px; - } - -h1, h2 { - margin-top: 30px; - } - -h1 { - margin-bottom: 50px; - margin-bottom: 20px; - padding-bottom: 5px; - border-bottom: 1px solid; - border-color: {{color.underline}}; - } - -h2 { - font-size: 24px; - } - -pre { - -moz-box-shadow:0 0 6px #ddd; - -webkit-box-shadow:0 0 6px #ddd; - box-shadow:0 0 6px #ddd; -} - -a { - text-decoration:none; - } - -p { - padding-bottom: 15px; - } - -p, dd, li { - text-align: justify; - } - -li { - margin-bottom: 5px; - } - diff --git a/doc/scripts/source/_static/bro-colors.css b/doc/scripts/source/_static/bro-colors.css deleted file mode 100644 index 0744a721d7..0000000000 --- a/doc/scripts/source/_static/bro-colors.css +++ /dev/null @@ -1,34 +0,0 @@ - -{% set bg = "#ffffff" %} -{% set text = "#333" %} -{% set underline = "#aaa" %} -{% set link = "#2a85a7" %} -{% set emphasis_text = "#c24444" %} - -{% set topbar_bg = "#000" %} - -{% set header_bg = "#f0f0f0" %} -{% set header_text = "#000" %} - -{% set footer_bg = "#333" %} -{% set footer_text = "#ddd" %} -{% set footer_links = "#ddd" %} - -{% set footer_bottom_bg = "#2b2b2b" %} -{% set footer_bottom_text = "#555" %} - -{% set menu_bg = "#fff" %} -{% set menu_hover_bg = "#ddd" %} -{% set menu_selected_bg = "#ddd" %} -{% set menu_shadow = "#eee" %} -{% set menu_border = "#ccc" %} - -{% set highlight_bg = "#ff6" %} -{% set box_bg = "#FFFAE2" %} -{% set box_hover_bg = "#FCF3A4" %} -{% set box_border = "#eee" %} - -{% set table_hover_bg = "#FFFAE2" %} - -{% set note_bg = "#FEE0C6" %} -{% set note_border = "#aaa" %} diff --git a/doc/scripts/source/_static/bro-elements.css_t b/doc/scripts/source/_static/bro-elements.css_t deleted file mode 100644 index f2c7a30f10..0000000000 --- a/doc/scripts/source/_static/bro-elements.css_t +++ /dev/null @@ -1,747 +0,0 @@ - -{% import "bro-colors.css" as color %} - -#searchform { - position:relative; -} - -#searchform #searchsubmit { - position:absolute; - top:0; - right:4px; - border:0; - height:22px; - width:20px; - text-indent:-9999px; - cursor:pointer; -} - -#searchform #s { - width:99%; - height:20px; - border:0; - position:absolute; - top:0; - left:0; - text-indent:5px; -} - -#searchform #searchsubmit { - background:url({{docroot}}/images/searchsubmit.gif) no-repeat center center; -} - -#searchform #s { - background:#555; -} - -.postmeta, -#searchform #s { - color: {{color.footer_bottom_text}}; -} - -#breadcrumbs { - font-size:12px; - float: left; - z-index: 1; - margin-bottom: 2em; -} - -#logo { - position: relative; - top: -5px; - margin-left: auto; - margin-right: auto; - display: block; - padding: 0px; - } - -#logo h1 { - padding:0; - margin:0; -} - -#logo-menubar { - position: absolute; - padding-left: 1em; -} - -#bro-eyes { - margin-bottom: 3em; - margin-left: auto; - margin-right: auto; - } - -.post { - margin-bottom:40px; - padding-bottom:20px; -} - -.entry-title { - padding-bottom:5px; -} - -.postmeta { - font-size:11px; - text-transform:uppercase; -} - -.post:last-child { - border:0; - margin-bottom:0; - padding-bottom:20px; -} - -.postmeta { -} - -a.more-link { - font-weight:bold; - text-decoration:none; -} - -.clearfix:after { - content: "."; - display: block; - clear: both; - visibility: hidden; - line-height: 0; - height: 0; -} - -.clearfix { - display: inline-block; -} - -html[xmlns] .clearfix { - display: block; -} -* html .clearfix { - height: 1%; -} - -.rounded { - -moz-border-radius:5px; - -webkit-border-radius:5px; - border-radius:5px; -} - -.message { - padding:8px; - margin-bottom:20px; -} - -.left { - float:left; -} - -.center { - display:block; - margin-left:auto; - margin-right:auto; - text-align:center; -} - -.right { - float:right; -} - -img.left { - padding:3px 20px 20px 0; -} - -img.right { - padding:3px 0 20px 20px; -} - -.widget img.left { - padding:5px 10px 10px 0; -} - -.widget img.right { - padding:5px 0 10px 10px; -} - -.hidden { - display:none; -} - -.pad { - padding:10px; -} - -UL.clean, OL.clean { - list-style-type:none; - margin:0; - padding:0; -} - -.primary-promo-container { - margin:0 0 40px 0; -} - -.promo-container { - position:relative; -} - -.promo-navigation { - position:absolute; - bottom:20px; - right:20px; - z-index:20; -} - -.promo-navigation a { - display:block; - float:left; - width:20px; - height:20px; - text-indent:-9999px; - margin-left:5px; -} - -.promo-navigation-small a { - width:10px; - height:10px; -} - -.promo-bottom-navigation { - padding-bottom:20px; - clear:both; -} - -.promo-bottom-navigation .promo-navigation { - bottom:0; - right:0; -} - -.pagination { - margin:0 0 40px 0; - line-height:30px; - font-size:12px; -} - -.pagination a, .pagination a span { - padding:5px 10px; - margin:2px; - text-decoration:none; -} - -.pagination span.current { - font-weight:bold; - padding:3px 3px; - margin:2px; -} - -.iconlist h5 { - line-height:100%; - font-size:15px; -} - -.iconlist h5, .iconlist h5 a { - font-weight:bold; - text-decoration:none; - padding:0; -} - -.iconlist p { - font-size:12px; -} - -.iconlist img.left { - margin:0 10px 10px 0; - padding:0; -} - -ul.iconlist, ul.iconlist li { - margin:0; - padding:0; -} - -p.quotebox { - padding:14px 20px 14px 40px; - line-height:100%; - margin:0 0 40px 0; - font-size:12px; -} - -p.quotebox { - background-position:10px center; - background-repeat:no-repeat; - background-image:url({{docroot}}/images/quote_left.gif); -} - -.ads { - padding:16px 0 0 16px; -} - -.ads img { - padding:0 16px 16px 0; - display:block; - float:left; -} - -.ads .widgettitle { - margin-right:16px; -} - -.grid-item { - padding:10px 0 0 0; - margin:0 0 40px 0; -} - -.grid-item p, .grid-item h3 { - padding-bottom:5px; -} - -/* Contact Form */ -form.standard .field { - padding:0 0 15px 0; -} - -form.standard label { - display:block; - padding:0 0 2px 2px; -} - -form.standard .textbox, -form.standard .textarea, -form.standard .select, -form.standard .button, -form.standard .checkbox, -form.standard .radio { - padding:8px 5px; -} - -form.standard .checkbox, form.standard .radio { - border:0; -} - -form.standard .button { - cursor:pointer; - padding:5px 8px; - line-height:100%; -} - -form.standard .error { - padding:1px 6px; - line-height:100%; -} - -form.standard .textbox, -form.standard .textarea, -form.standard .select, -form.standard .button, -form.standard .checkbox, -form.standard .radio { - border:1px solid #ccc; -} - -form.standard .button:hover { - background:#e5e5e5; -} - -.demogrid p { - font-size:12px; - font-weight:bold; - text-align:center; - margin:10px 0; - padding:8px 0; -} - -.faq h2 { - font-size: 17px; - } - -.faq p { - margin-left: 2em; - } - - -.invisible { - visibility: hidden; -} - -.paper-block { - font-size: 12px; - margin-left: 20px; -} - -.paper-title { - font-weight: bold; -} - -.contents { - padding: 10px; - background: #FFFAE2; - margin: 20px; - } - -.topic-title { - font-size: 20px; - font-weight: bold; - padding: 0px 0px 5px 0px; - text-align: center; - padding-top: .5em; -} - -.contents li { - margin-bottom: 0px; - list-style-type: square; -} - -.contents ul ul li { - margin-left: 0px; - padding-left: 0px; - padding-top: 0em; - font-size: 90%; - list-style-type: square; - font-weight: normal; -} - -.contents ul ul ul li { - list-style-type: none; -} - -.contents ul ul ul ul li { - display:none; -} - -.contents ul li { - padding-top: 1em; - list-style-type: none; - font-weight: bold; -} - -.contents ul { - margin-left: 0px; - padding-left: 2em; - margin: 0px 0px 0px 0px; -} - -#page-title { - font-size: 30px; - font-weight: bold; - color: {{color.text}}; - background: {{color.menu_selected_bg}}; - padding: 2px 2px 2px 0px; -} - - -.widget { - margin-left: 1em; -} - -.sidebar-toc ul li { - padding-bottom: 0px; - text-align: left; - list-style-type: square; - list-style-position: inside; - padding-left: 1em; - text-indent: -1em; - } - -.sidebar-toc ul li li { - margin-left: 1em; - margin-bottom: 0px; - list-style-type: square; - } - -.sidebar-toc ul li li a { - font-size: 8pt; -} - -a.toc-top-link { - font-size: 14px; - float: right; - margin-right: 15px; - } - -.small { - font-size: 16px; -} - -.heading { - font-weight: bold; - font-size: 18px; - color:{{color.emphasis_text}}; -} - -.shadow, .download, .note, .exercise, .question, .solution, .visible_solution, .contents, .warning, .error, .success, pre { - -moz-box-shadow:0 0 6px #ddd; - -webkit-box-shadow:0 0 6px #ddd; - box-shadow:0 0 6px #ddd; -} - -.exercise, .question, .solution, .visible_solution, .note, .warning, .error, .success, pre { - margin-left: 2em; - margin-right: 2em; - overflow: auto; - } - -.exercise, .question, .solution, .visible_solution, .note, .warning, .error, .success, pre { - margin-top: .5em; - margin-bottom: 1.5em; - } - -.exercise, .question, .solution, .visible_solution, .note, .warning, .error, .success { - border: solid 0px #aaa; - padding: 1em 1em 0em 1em; - font-size: 15px; - color: {{color.text}}; -} - -.note { - background: #fcfff4; /* Old browsers */ - background: -moz-linear-gradient(top, #fcfff4 0%, #e9e9ce 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfff4), color-stop(100%,#e9e9ce)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #fcfff4 0%,#e9e9ce 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #fcfff4 0%,#e9e9ce 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(top, #fcfff4 0%,#e9e9ce 100%); /* IE10+ */ - background: linear-gradient(top, #fcfff4 0%,#e9e9ce 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#e9e9ce',GradientType=0 ); /* IE6-9 */ -} - -.exercise, .question { - background: #f0f0f0; /* Old browsers */ - background: -moz-linear-gradient(top, #f0f0f0 0%, #e9e9ce 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f0f0), color-stop(100%,#e9e9ce)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #f0f0f0 0%,#e9e9ce 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #f0f0f0 0%,#e9e9ce 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(top, #f0f0f0 0%,#e9e9ce 100%); /* IE10+ */ - background: linear-gradient(top, #f0f0f0 0%,#e9e9ce 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f0f0', endColorstr='#e9e9ce',GradientType=0 ); /* IE6-9 */ -} - -.warning, .error { - background: #ffc578; /* Old browsers */ - background: -moz-linear-gradient(top, #ffc578 0%, #fb9d23 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffc578), color-stop(100%,#fb9d23)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #ffc578 0%,#fb9d23 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #ffc578 0%,#fb9d23 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(top, #ffc578 0%,#fb9d23 100%); /* IE10+ */ - background: linear-gradient(top, #ffc578 0%,#fb9d23 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffc578', endColorstr='#fb9d23',GradientType=0 ); /* IE6-9 */ -} - -.solution, .visible_solution { - background: #f0c0c0; /* Old browsers */ - background: -moz-linear-gradient(top, #f0c0c0 0%, #f0c0f0 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0c0c0), color-stop(100%,#f0c0f0)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #f0c0c0 0%,#f0c0f0 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #f0c0c0 0%,#f0c0f0 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(top, #f0c0c0 0%,#f0c0f0 100%); /* IE10+ */ - background: linear-gradient(top, #f0c0c0 0%,#f0c0f0 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0c0c0', endColorstr='#f0c0f0',GradientType=0 ); /* IE6-9 */ -} - -.admonition-title { - font-weight: normal; - font-size: 16px; - color: #000; - border-bottom: solid 1px #aaa; - padding-bottom: 0em; - margin-bottom: .5em; - margin-top: 0em; - } - -.download:hover { - background-color: #FCF3A4 -} - -.download { - border: solid 0px #eee; - background: #FFFAE2 url('../images/icons/download.png') 8px center no-repeat; - color: #333; - font-size: 20px; - right: 32px; - padding-top: 10px; - padding-bottom: 5px; - padding-left: 50px; - padding-right: 20px; - } - -.download-beta { - background: #FFCC99 url('../images/icons/download.png') 8px center no-repeat; -} - -/* .hll is pygments; see pygments.css */ -.hll { - color: {{color.text}}; - background: {{color.box_bg}}; - padding: 7px 5px 3px 5px; - margin-bottom: 25px; - margin-top: 0px; -} - -.field-list tbody tr:hover td { - background: {{color.bg}}; -} - -.field-list td, .field-list th { - border-bottom: 0px; - padding: 0 6px 0 0; -} - -.large-table td, .large-table th { - font-size: 80%; -} - -.large-table ul { - padding-left: 1em; - text-indent: -1em; - list-style-position: inside; -} - -.highlight { - background-color: {{color.highlight_bg}}; -} - -.hovershadow:hover, -.pagination a:hover { - -moz-box-shadow:0 0 3px #d0d0d0; - -webkit-box-shadow:0 0 3px #d0d0d0; - box-shadow:0 0 3px #d0d0d0; -} - -.iconlist h5, -.iconlist h5 a { - color:{{color.emphasis_text}}; -} -.iconlist h5, -.iconlist h5 a { - color:{{color.emphasis_text}}; -} - -form.standard .button, -.widgettitle -{ - color: {{color.text}}; -} - -.heading { - font-weight: bold; - font-size: 18px; - color:{{color.emphasis_text}}; -} - -.post, -.widgettitle { - border-bottom:1px solid #ddd; -} - -.line-block { - margin-bottom: 1em; - } - -.bibliography-title { - padding-top: 1em; - font-size: 18px; - font-weight: bold; - } - -.line-block { - margin-bottom: 1em; - } - -.bibliography-title { - padding-top: 1em; - font-size: 18px; - font-weight: bold; - } - -.promo-navigation a, -.pagination a, -.pagination a span, -p.quotebox, -.ads, -.boxed { - background:#fff; -} - -.promo-navigation a, -.pagination a, -.pagination a span, -.ads, -.demogrid p { - border:1px solid #ddd; -} - -table.docutils { - margin-bottom: 40px; -} - -table.docutils th { - font-size: 15px; - font-weight: bold; - padding: 10px 8px; - border-bottom: 1px solid #aaa; - vertical-align: top; -} - -table.docutils td { - font-size: 14px; - border-bottom: 1px solid #aaa; - padding: 6px 8px; - vertical-align: top; -} - -table.docutils tr:first-child td { - border-top: 1px solid #aaa; -} - -table.docutils tbody tr:hover td { - background: {{color.table_hover_bg}}; -} - -div.sphinxsidebar { - top: 30px; - bottom: 0; - margin: 0; - position: fixed; - overflow: auto; - height: auto; - float: right; - right: 0; -} - -/* this is nice, but it it leads to hidden headings when jumping - to an anchor */ -/* -div.related { - position: fixed; -} - -div.documentwrapper { - margin-top: 30px; -} -*/ - -div.sphinxsidebar h3 { - font-size: 1.4em; - font-weight: normal; - margin: 0; - padding: 0; -} - - -div.sphinxsidebar h4 { - font-size: 1.3em; - font-weight: normal; - margin: 5px 0 0 0; - padding: 0; -} - -div.sphinxsidebar p.topless { - margin: 5px 10px 10px 10px; -} - -div.sphinxsidebar ul { - margin: 10px; - padding: 0; -} - -div.sphinxsidebar input { - border: 1px solid {{ color.link }}; - font-family: sans-serif; - font-size: 1em; -} diff --git a/doc/scripts/source/_static/bro-framing.css_t b/doc/scripts/source/_static/bro-framing.css_t deleted file mode 100644 index 1458c239a4..0000000000 --- a/doc/scripts/source/_static/bro-framing.css_t +++ /dev/null @@ -1,482 +0,0 @@ - -{% import "bro-colors.css" as color %} - -#header { - padding: 20px 0; - position:relative; - z-index:2; -} - -#header { - background: {{color.header_bg}}; /* old browsers */ - background: -moz-linear-gradient(top, {{color.header_bg}} 80%, {{color.bg}} 100%); /* firefox */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(80%,{{color.header_bg}}), color-stop(100%,{{color.bg}})); /* webkit */ - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='{{color.header_bg}}', endColorstr='{{color.bg}}',GradientType=0 ); /* ie */ - zoom: 1; -} - -#header { - /* border-top: 20px solid #fff; - border-top:10px solid #fff; - border-bottom:1px solid #ddd; */ -} - -#header { - padding-bottom: 0em; - margin-bottom: 1em; - } - -#bro-main .widgettitle, -{ - color: {{color.text}}; -} - -#topbar p { - padding:0; - font-size:12px; - line-height:35px; -} - -#topbar a -{ - color: {{color.bg}}; -} - - -#topbar { - background: {{color.topbar_bg}}; -} - -#topbar a { - text-decoration:none; -} - -#topbar #searchform { - margin-top:6px; -} - -#topbar { - color: {{color.footer_bg}}; -} - -#footer { - padding:40px 0 0 0; -} - -#footer { - color: {{color.footer_text}}; - background: {{color.footer_bg}}; - } - -#footer .widgettitle { - color: {{color.footer_text}}; -} - -#footer-bottom { - padding:10px 0; - font-size:12px; -} - -#footer-bottom a.scroll-top { - padding-left:15px; - text-decoration:none; -} - -#footer a { - text-decoration:none; -} - -#footer .widget li { - padding-bottom:10px; -} - -#footer .widget_links li { - padding-bottom:1px; -} - -#footer .widget li:last-child { - padding-bottom:0; -} - -#footer-bottom { - color: {{color.footer_bottom_text}}; - background: {{color.footer_bottom_bg}}; -} - -#footer-bottom a:hover, -#footer .widget_links ul a:hover, -#footer .widget_links ol a:hover -{ - color:{{color.emphasis_text}}; -} - -#footer .widget_links ul a, -#footer .widget_links ol a -{ - color: {{color.footer_links}}; -} - - -#footer { - border-bottom:1px solid #444; -} - -#footer-bottom { - border-top:1px solid #222; -} - -#footer-bottom a.scroll-top { - background:url({{docroot}}/images/to-top.gif) no-repeat left center; -} - - -li.tweet_odd, li.tweet_even { - text-align: left; -} - -.line-block { - margin-bottom: 1em; - } - -.bibliography-title { - padding-top: 1em; - font-size: 18px; - font-weight: bold; - } - -.postmeta, -#footer-bottom a, -#searchform #s { - color: {{color.footer_bottom_text}}; -} -.line-block { - margin-bottom: 1em; - } - -.bibliography-title { - padding-top: 1em; - font-size: 18px; - font-weight: bold; - } - -#footer-bottom a { - color: {{color.footer_bottom_text}}; -} - -.widget { - margin:0 0 40px 0; -} - -.widget, .widgettitle { - font-size:12px; - line-height:18px; -} - -.widgettitle { - font-weight:bold; - text-transform:uppercase; - padding:0 0 10px 0; - margin:0 0 20px 0; - line-height:100%; -} - -.widget UL, .widget OL { - list-style-type:none; - margin:0; - padding:0; -} - -.widget p { - padding:0; -} - -.textwidget p { - padding:0 0 10px 0; -} - -.widget li { - padding-bottom:10px; -} - -.widget a { - text-decoration:none; -} - -.sf-menu, .sf-menu * { - margin: 0; - padding: 0; - list-style: none; - font-size:16px; -} -.sf-menu { - line-height:100%; - right:0; - bottom:0; - float: left; -} - -.sf-menu ul { - position: absolute; - top: -999em; - width: 20em; /* left offset of submenus need to match (see below) */ -} -.sf-menu ul li { - width: 100%; -} -.sf-menu li:hover { - visibility: inherit; /* fixes IE7 'sticky bug' */ -} -.sf-menu li { - float: left; - position: relative; -} -.sf-menu a { - display: block; - position: relative; - padding: .75em 1em; - text-decoration:none; - font-weight:bold; -} - -.sf-menu ul ul { - width: 100%; -} - -.sf-menu li:hover ul, -.sf-menu li.sfHover ul { -/* left: 0; */ - top: 2.5em; /* match top ul list item height */ - z-index: 99; -} -ul.sf-menu li:hover li ul, -ul.sf-menu li.sfHover li ul { - top: -999em; -} -ul.sf-menu li li:hover ul, -ul.sf-menu li li.sfHover ul { -/* left: 10em; */ /* match ul width */ - top: -11px; - margin-left: 2px; -} -ul.sf-menu li li:hover li ul, -ul.sf-menu li li.sfHover li ul { - top: -999em; -} -ul.sf-menu li li li:hover ul, -ul.sf-menu li li li.sfHover ul { - left: 10em; /* match ul width */ - top: -11px; -} - -.sf-menu ul a { - font-size:12px; -} - -.sf-menu ul li a { - font-weight: normal; - font-size: 13px; -} - -.sf-menu li ul { - padding:10px; -} - -.sf-menu a.sf-with-ul { - padding-right: 30px; - min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ -} - -.sf-menu li li -.sf-menu a { - border-bottom:1px solid #ddd; -} - -.sf-sub-indicator { - position: absolute; - display: block; - right: 10px; - top: 1.05em; /* IE6 only */ - width: 10px; - height: 10px; - text-indent: -999em; - overflow: hidden; -} - -.sf-menu a:hover, -.sfHover a, -.sf-menu ul li.sfHover > a -{ - color:{{color.emphasis_text}}; -} - -a > .sf-sub-indicator { /* give all except IE6 the correct values */ - top: 1em; - background-position: 0 -100px; /* use translucent arrow for modern browsers*/ -} - -a:focus > .sf-sub-indicator, -a:hover > .sf-sub-indicator, -a:active > .sf-sub-indicator, -li:hover > a > .sf-sub-indicator, -li.sfHover > a > .sf-sub-indicator { - background-position: -10px -100px; /* arrow hovers for modern browsers*/ -} - -.sf-menu ul .sf-sub-indicator { background-position: -10px 0; top:0.75em; } -.sf-menu ul a > .sf-sub-indicator { background-position: 0 0; } - -.sf-menu ul a:focus > .sf-sub-indicator, -.sf-menu ul a:hover > .sf-sub-indicator, -.sf-menu ul a:active > .sf-sub-indicator, -.sf-menu ul li:hover > a > .sf-sub-indicator, -.sf-menu ul li.sfHover > a > .sf-sub-indicator { - background-position: -10px 0; /* arrow hovers for modern browsers*/ -} - -.sf-menu ul a:hover { - background: {{color.menu_hover_bg}}; -} -/* -.sf-menu li li { - background: {{color.menu_bg}}; - border-left:1px solid {{color.menu_border}}; - border-right:1px solid {{color.menu_border}}; -} -.sf-menu li li:first-child { - border-top:1px solid {{color.menu_border}}; -} -.sf-menu li ul { - -moz-box-shadow:2px 2px 2px {{color.menu_shadow}}; - -webkit-box-shadow:2px 2px 2px {{color.menu_shadow}}; - box-shadow:2px 2px 2px {{color.menu_shadow}}; -} -*/ - -.sf-menu li { - border-bottom: 1px solid #000; -} - -.sf-menu ul li { - border-top: 1px solid #000; -} - -.sf-menu ul li { - border-bottom: 0px; -} - -.sf-menu li { - display: inline; -} - -.sf-menu a -{ - color: {{color.text}}; -} - -.sf-sub-indicator { - background:url('{{docroot}}/images/menu/default-submenu-sprite.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */ -} - -.sf-navbar { - height: 2.5em; - padding-bottom: 2.5em; - position: relative; -} -.sf-navbar li { - position: static; -} -.sf-navbar a { - border-top: none; -} -.sf-navbar li li { - position: relative; -} -.sf-navbar li li ul { - width: 13em; -} -.sf-navbar li li li { - width: 100%; -} -.sf-navbar ul li { - width: auto; - float: left; -} -.sf-navbar a, .sf-navbar a:visited { - border: none; -} -.sf-navbar li.current-menu { -} - -ul.sf-navbar ul li:hover li, -ul.sf-navbar ul li.sfHover li, -.sf-navbar ul a:focus, .sf-navbar ul a:hover, .sf-navbar ul a:active { - background: {{color.menu_hover_bg}}; -} -ul.sf-navbar li li li:hover, -ul.sf-navbar li li li.sfHover, -.sf-navbar li li.current-menu li.current-menu, -.sf-navbar ul li li a:focus, .sf-navbar ul li li a:hover, .sf-navbar ul li li a:active { - background: {{color.menu_hover_bg}}; -} -ul.sf-navbar .current-menu ul, -ul.sf-navbar ul li:hover ul, -ul.sf-navbar ul li.sfHover ul { - left: 0; - top: 2.5em; /* match top ul list item height */ -} -ul.sf-navbar .current-menu ul ul { - top: -999em; -} - -.sf-navbar li li.current-menu > a { - font-weight: bold; -} - -/*** point all arrows down ***/ -/* point right for anchors in subs */ -.sf-navbar ul .sf-sub-indicator { background-position: -10px -100px; } -.sf-navbar ul a > .sf-sub-indicator { background-position: 0 -100px; } -/* apply hovers to modern browsers */ -.sf-navbar ul a:focus > .sf-sub-indicator, -.sf-navbar ul a:hover > .sf-sub-indicator, -.sf-navbar ul a:active > .sf-sub-indicator, -.sf-navbar ul li:hover > a > .sf-sub-indicator, -.sf-navbar ul li.sfHover > a > .sf-sub-indicator { - background-position: -10px -100px; /* arrow hovers for modern browsers*/ -} - -/*** remove shadow on first submenu ***/ -.sf-navbar > li > ul { - background: transparent; - padding: 0; - -moz-border-radius-bottomleft: 0; - -moz-border-radius-topright: 0; - -webkit-border-top-right-radius: 0; - -webkit-border-bottom-left-radius: 0; - -} - -.selected-menu { -} - -#current-menu { - background: {{color.menu_selected_bg}}; -} - -#current-submenu { - font-weight: bold; - background: transparent; -} - -#current-submenu:hover { - background: {{color.menu_hover_bg}}; -} - -#current-submenu { - color: {{ color.text }}; -} - -#current-submenu:hover { - color:{{color.emphasis_text}}; -} - diff --git a/doc/scripts/source/_static/broxygen.css b/doc/scripts/source/_static/broxygen.css new file mode 100644 index 0000000000..b862bc1a20 --- /dev/null +++ b/doc/scripts/source/_static/broxygen.css @@ -0,0 +1,5 @@ +a:hover +{ + text-decoration:none; + color:#c24444; +} diff --git a/doc/scripts/source/_templates/layout.html b/doc/scripts/source/_templates/layout.html index 120c942c4c..5a481ab882 100644 --- a/doc/scripts/source/_templates/layout.html +++ b/doc/scripts/source/_templates/layout.html @@ -1,23 +1,5 @@ {% extends "!layout.html" %} -{% set css_files = css_files + ["_static/bro-base.css", "_static/bro-framing.css", "_static/bro-elements.css"] %} -{% block relbar1 %}{% endblock %} +{% set css_files = css_files + ["_static/broxygen.css"] %} {% block relbar2 %}{% endblock %} - -{% block sidebar2 %} -
- {{ super() }} -
-{% endblock %} - -{% block content %} -
- {{ relbar() }} -
-
- {{ super() }} -
-
-
-{% endblock %}