From d880ff59f137a17a563a3c7b2ba6d1918211183c Mon Sep 17 00:00:00 2001 From: Sahil Shekhawat Date: Thu, 12 Mar 2015 17:51:44 +0530 Subject: [PATCH] Added logo to the sidebar --- _static/custom_style.css | 3 - _static/pydy.css | 2 - _theme/pydy/_static/main.css | 344 ------------------ _theme/pydy/_static/pydy.css_t | 2 - _theme/pydy/layout.html | 7 +- _theme/pydy/navbar.html | 2 +- source/_static/custom.css | 4 +- {_theme/pydy => source}/_static/logo.svg | 0 {_static => source/_static}/main.css | 15 +- .../_static/js => source/_static}/main.js | 0 10 files changed, 16 insertions(+), 363 deletions(-) delete mode 100644 _static/custom_style.css delete mode 100644 _static/pydy.css delete mode 100644 _theme/pydy/_static/main.css delete mode 100644 _theme/pydy/_static/pydy.css_t rename {_theme/pydy => source}/_static/logo.svg (100%) rename {_static => source/_static}/main.css (97%) rename {_theme/pydy/_static/js => source/_static}/main.js (100%) diff --git a/_static/custom_style.css b/_static/custom_style.css deleted file mode 100644 index b4c47bd..0000000 --- a/_static/custom_style.css +++ /dev/null @@ -1,3 +0,0 @@ -.navbar-nav { -float:right; -} diff --git a/_static/pydy.css b/_static/pydy.css deleted file mode 100644 index de558a7..0000000 --- a/_static/pydy.css +++ /dev/null @@ -1,2 +0,0 @@ -@import 'basic.css'; -@import 'main.css'; diff --git a/_theme/pydy/_static/main.css b/_theme/pydy/_static/main.css deleted file mode 100644 index 963a53a..0000000 --- a/_theme/pydy/_static/main.css +++ /dev/null @@ -1,344 +0,0 @@ -@font-face { - font-family: 'Gentium Basic'; - font-style: normal; - font-weight: 400; - src: local('Gentium Basic'), local('GentiumBasic'), url(http://fonts.gstatic.com/s/gentiumbasic/v7/KCktj43blvLkhOTolFn-MWYKogTrBb-Yb2DFwx30qLM.woff2) format('woff2'), url(http://fonts.gstatic.com/s/gentiumbasic/v7/KCktj43blvLkhOTolFn-MZ_RtrTXGeaL_Dia6_H9gNs.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 300; - src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v10/DXI1ORHCpsQm3Vp6mXoaTegdm0LZdjqr5-oayXSOefg.woff2) format('woff2'), url(http://fonts.gstatic.com/s/opensans/v10/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 400; - src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v10/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format('woff2'), url(http://fonts.gstatic.com/s/opensans/v10/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 700; - src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzOgdm0LZdjqr5-oayXSOefg.woff2) format('woff2'), url(http://fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzHhCUOGz7vYGh680lGh-uXM.woff) format('woff'); -} - -html { - background-color: #EEEEEE; - width: 1200px; - margin-left: auto; - margin-right: auto; -} - -body { - margin-bottom: 0; - font-family: 'Open Sans', serif; - -} - -h1 { - font: 'Open Sans Light'; - font-size: 1.5em; -} - -h3 { - font-size: 1.25em; - font-weight: 10; -} - -h4 { - font-style: italic; -} - -a:link { - color: #3498db; -} - -a:visited { - color: #3498db; -} - -a:hover { - color: #2980b9; -} - -a:active { - color: #3498db; -} - -select { - font-family: 'Open Sans', sans-serif; -} - -strong { - font-weight: bolder; -} - -code { - font-family: monospace; -} - -.header .branding { - margin-top: 10px; - font-size: 30px; - color: white; -} - -.logo { - display: inline; -} - -.site-title { - vertical-align: middle; - padding-left: 10px; - display: inline; -} - -.header .container { - - background-color: #3498db; - padding: 5px; - padding-bottom: 10px; - text-decoration: none; - border-radius: 5px; - -moz-box-shadow: 0 0 5px #3498db; - -webkit-box-shadow: 0 0 5px #3498db; - box-shadow: 0 0 5px #3498db; -} - -.header .container a:hover{ - text-decoration: underline; -} - -.header .container ul { - padding: 0; - margin: 0; - font-size: 20px; - display: inline-block; - color: white; -} - -ul li a{ - font-size: 17px; - text-decoration: none; -} - -ul li a:hover{ - text-decoration: underline; -} - -.header .container ul li a{ - color: white; - text-decoration: none; -} - -.header .container ul li a:hover{ - text-decoration: underline; -} - -.header .container ul li{ - display: inline; - padding: 0 10px; -} - -.logo .image { - float: left; - clear: none; - height: 100px; - width: 95px; - padding-left: 60px; -} - -.nav-toc{ - width:100%; - border-radius: 5px; - -moz-box-shadow: 0 0 5px #3498db; - -webkit-box-shadow: 0 0 5px #3498db; - box-shadow: 0 0 5px #3498db; - background-color: white; - padding: 0; - margin: 0; -} - - -.nav-download { - margin-bottom: 20px; - padding: 0 10px; - padding-bottom: 15px; - border-radius: 5px; - -moz-box-shadow: 0 0 5px #3498db; - -webkit-box-shadow: 0 0 5px #3498db; - box-shadow: 0 0 5px #3498db; - color: white; - background-color: #3498db; -} - -.nav-download p{ - padding: 0; - margin: 0; -} - -.nav-download p a{ - color: white; -} - -.nav-download h3 a{ - color: white; - text-decoration: none; -} - -.nav-download h3{ - padding-top: 10px; - margin-bottom:5px; -} - -.main-nav { - float: right; - width: 32%; -} - -.nav-toc { - margin-top: 120px; -} - -.nav-toc a{ - text-decoration: none; - color: #3498db; -} - -.nav-toc a:hover{ - text-decoration: underline; -} - -.nav-toc h3{ - padding: 10px; - margin-bottom: 0; - margin-top: 0; - color:#3498db; -} - -.nav-toc ul{ - margin-top: 0; - padding-bottom: 10px; -} - -.site-desc { - width: 100%; - float: right; -} - -.splash { - margin-top: 20px; -} - -.splash .container { - width: 62%; - border-radius: 5px; - -moz-box-shadow: 0 0 5px #3498db; - -webkit-box-shadow: 0 0 5px #3498db; - box-shadow: 0 0 5px #3498db; - padding: 20px; - background-color: white; -} - -.footer { - margin:20px 0; - clear: both; -} - -.footer .container { - border-radius: 5px; - -moz-box-shadow: 0 0 5px #3498db; - -webkit-box-shadow: 0 0 5px #3498db; - box-shadow: 0 0 5px #3498db; - background: #3498db; - padding: 5px; -} - -.footer .container p { - margin: 0; - padding: 5px; - color: white; -} - -.footer .container p a{ - color: white; -} - -.footer .container p a:hover{ - color: #2980b9; -} - -.site-desc .title{ - color: white; - font-size: 28px; -} - -.site-desc p{ - color: #3498db; -} - -.nav-download p a{ - color:white; - text-decoration: none; -} - -.nav-download p a:hover{ - text-decoration: underline; -} - -h1:hover .headerlink, h2:hover .headerlink, h3:hover.headerlink, h4:hover .headerlink{ - visibility: visible; -} - -.headerlink { - visibility: hidden; -} - -@media screen and (max-width: 1200px) { - html { - background-color: #EEEEEE; - width: 97%; - margin-left: auto; - margin-right: auto; - } - - .logo .image { - float: left; - clear: none; - height: 100px; - width: 95px; - padding-left: 0; - } - - .title { - width: auto; - padding: 0; - } -} - -@media screen and (max-width: 850px) { - - .main-nav { - float: none; - width: auto; - } - - .site-desc { - width: auto; - float: none; - } - - .title { - padding-top: 10px; - margin-bottom: 20px; - } - - .splash .container { - width: auto; - } - - .nav-toc { - margin-top: 10px; - } -} diff --git a/_theme/pydy/_static/pydy.css_t b/_theme/pydy/_static/pydy.css_t deleted file mode 100644 index f081734..0000000 --- a/_theme/pydy/_static/pydy.css_t +++ /dev/null @@ -1,2 +0,0 @@ -@import 'basic.css'; -@import 'main.css'; diff --git a/_theme/pydy/layout.html b/_theme/pydy/layout.html index 23de485..b037d9a 100644 --- a/_theme/pydy/layout.html +++ b/_theme/pydy/layout.html @@ -1,10 +1,10 @@ {% extends "basic/layout.html" %} -{% set theme_css_files = ['/_static/pydy.css','/_static/main.css', +{% set theme_css_files = ['/_static/main.css', '/_static/custom.css', 'http://fonts.googleapis.com/css?family=Open+Sans:300,400,700|Gentium+Basic'] %} {% set css_files = css_files + theme_css_files %} {% set theme_globaltoc_depth = 5 %} -{% set script_files = script_files + ['/_static/js/main.js']%} +{% set script_files = script_files + ['/_static/main.js']%} {%- block doctype -%} {%- endblock %} @@ -38,9 +38,6 @@ -
-

PyDy

-