From 979f0c2979b63a328b5ac46010c9bb7f32819d83 Mon Sep 17 00:00:00 2001 From: Kevin Putnam Date: Tue, 7 May 2019 09:44:31 -0700 Subject: [PATCH] experimenting with formatting --- .../_themes/otc_tcs_sphinx_theme/layout.html | 53 ++++++----- .../otc_tcs_sphinx_theme/static/tcs_theme.css | 93 +++++++++++++++++++ source/conf.py | 9 +- 3 files changed, 128 insertions(+), 27 deletions(-) diff --git a/source/_themes/otc_tcs_sphinx_theme/layout.html b/source/_themes/otc_tcs_sphinx_theme/layout.html index 5d606bd0..7381c35f 100644 --- a/source/_themes/otc_tcs_sphinx_theme/layout.html +++ b/source/_themes/otc_tcs_sphinx_theme/layout.html @@ -9,31 +9,36 @@ {% block content %} {{ super() }} diff --git a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css index 0b446786..c7139cd7 100644 --- a/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css +++ b/source/_themes/otc_tcs_sphinx_theme/static/tcs_theme.css @@ -149,7 +149,100 @@ th,td { transition: max-height 0.2s ease-out; } +#header { + width: 100%; + display: block; + font-family: "IntelClear-Regular", Helvetica, Arial, sans-serif; + font-size: 16px; + } + +.padding-md--left-right { + padding-left: 2.6%; + padding-right: 2.6%; + display: flex; + justify-content: space-between; +} + +.header__site_info { + display: inline-block; +} + +.header__site_img_object { + height: 50px; +} + +.header__site_info_name { + vertical-align: middle; + display: inline-block; + height: 50px +} + +#header__site_info_name a:link { + color: black; +} + +#header__site_info_name a:visited { + color: black; +} + +.header__menu { + text-align: right; + display: inline-block; +} + .header__menu_list li { display: inline; margin-left: 20px; +} + +.header__menu_list li a { + color: black; +} + +.header__menu_list_item { + display: inline; + position: relative; + margin-bottom: 0; + margin-left: 0; + min-width: 1px; + max-width: 100%; + padding: 0; + text-align: left; + /*top: 35px;*/ +} + +.header__menu_list_item.green > a::before { + color: #009B93; +} + +.header__menu_list_item.purple > a::before { + color: #6E4C9F; +} + +.header__menu_list_item.blue > a::before { + color: #358CCB; +} + +.header__menu_list_item > a::before { + content: '•'; + font-size: 35px; + margin-right: 10px; + position: relative; + top: 5px; + left: 5px; +} + +.header__banner { + width: 120%; + margin-left: -3.236em; + background-image: url(https://stg.clearlinux.org/sites/default/files/bg_developer_0.png); +} + +.header__banner_title { + display: block; + color: white; + font-size: 36px; + font-family: "IntelClear-Bold", Helvetica, Arial, sans-serif; + margin-left: 0.67em; + line-height: 100px; } \ No newline at end of file diff --git a/source/conf.py b/source/conf.py index e0f527ad..667cf976 100644 --- a/source/conf.py +++ b/source/conf.py @@ -52,7 +52,8 @@ source_suffix = '.rst' master_doc = 'clear-linux/clear-linux' # General information about the project. -project = u'Clear Linux* project' +#project = u'Clear Linux* project' +project = u'' copyright = u'2019, many' author = u'many' @@ -131,7 +132,9 @@ html_context = { # 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 = { + 'style_nav_header_background': 'url(https://stg.clearlinux.org/sites/default/files/bg_developer_0.png)' +} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = ['_themes'] @@ -145,7 +148,7 @@ html_title = "Documentation for Clear Linux* project" # The name of an image file (relative to this directory) to place at the top # of the sidebar. -html_logo = 'images/clearlinux.png' +#html_logo = 'images/clearlinux.png' # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32