From 74560b32c1bcf43f1e91608ca42b539f13380dce Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 27 May 2013 14:47:56 +0530 Subject: [PATCH] [website] updates for bootstrap3 --- patches/may_2013/p06_make_notes.py | 1 + website/css/website.css | 42 +----- .../style_settings/custom_template.css | 21 +-- website/templates/css/blog_page.css | 4 + website/templates/html/blog_footer.html | 2 +- website/templates/html/blog_page.html | 2 +- website/templates/html/footer.html | 134 ++++++++++-------- website/templates/html/navbar.html | 63 ++++---- .../templates/html/product_breadcrumbs.html | 2 +- website/templates/html/product_group.html | 2 - .../templates/html/product_search_box.html | 13 +- website/templates/js/blog.js | 2 +- website/templates/js/product_list.js | 2 +- website/templates/pages/blog.html | 2 +- website/templates/pages/contact.html | 30 ++-- 15 files changed, 149 insertions(+), 173 deletions(-) diff --git a/patches/may_2013/p06_make_notes.py b/patches/may_2013/p06_make_notes.py index b9dbca1859..bdf7aec04a 100644 --- a/patches/may_2013/p06_make_notes.py +++ b/patches/may_2013/p06_make_notes.py @@ -20,3 +20,4 @@ def execute(): webnotes.delete_doc("DocType", "Question") webnotes.delete_doc("DocType", "Answer") + webnotes.bean("Style Settings").save() diff --git a/website/css/website.css b/website/css/website.css index 25e2c91ac2..ea88396a5d 100644 --- a/website/css/website.css +++ b/website/css/website.css @@ -1,47 +1,15 @@ -div.outer { - padding: 30px; - margin: 30px -30px 10px -30px; - min-height: 400px; +h1, h2, h3, h4, h5 { + font-weight: bold; } -.outer .navbar { - margin: -30px -30px 20px -30px; -} - -footer { - text-align: left; - margin: auto; - margin-bottom: 20px; -} - -.navbar-inner { - border: 0px; - border-bottom: 1px solid #ddd; - border-radius: 0px; - padding-right: 30px; - padding-left: 30px; -} - -p, li { - line-height: 1.5em; -} - -.layout-wrapper { - box-shadow: none; - -webkit-box-shadow: none; - -moz-box-shadow: none; - border-radius: 0px 0px 5px 5px; -} - -.layout-main { - min-height: 400px; - padding: 30px; +.content { + padding-bottom: 30px; } .missing-image { background-color: #eee; padding: 40px; - width: 32px; + width: 112px; font-size: 32px; color: #888; } diff --git a/website/doctype/style_settings/custom_template.css b/website/doctype/style_settings/custom_template.css index f055b782fe..996774eaea 100644 --- a/website/doctype/style_settings/custom_template.css +++ b/website/doctype/style_settings/custom_template.css @@ -66,8 +66,9 @@ div.web-footer, div.web-footer a { } /* Bootstrap Navbar */ -.navbar-inverse .navbar-inner { +.navbar-inverse { box-shadow: none; + border-radius: 0px; background-color: #{{ doc.top_bar_background or "444444"}}; background-repeat: repeat-x; background-image: none; @@ -78,9 +79,9 @@ div.web-footer, div.web-footer a { {%- endif %} } -.navbar-inverse .brand, -.navbar-inverse .brand:hover, -.navbar-inverse .brand:focus, +.navbar-inverse .navbar-brand, +.navbar-inverse .navbar-brand:hover, +.navbar-inverse .navbar-brand:focus, .navbar-inverse .nav > li > a { color: #{{ doc.top_bar_foreground or "fffffff"}}; text-shadow: none; @@ -117,8 +118,8 @@ div.web-footer, div.web-footer a { color: #{{ doc.top_bar_foreground or "fffffff"}}; } -.navbar-fixed-top .navbar-inner, -.navbar-static-top .navbar-inner { +.navbar-fixed-top, +.navbar-static-top { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; @@ -190,14 +191,6 @@ div.web-footer, div.web-footer a { text-shadow: none; } -.breadcrumb > li > .divider { - color: #{{ doc.page_text }}; -} - -.breadcrumb > .active { - color: #{{ doc.page_text }}; -} - .table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > th { diff --git a/website/templates/css/blog_page.css b/website/templates/css/blog_page.css index 8f56cd2fec..ffa45b4115 100644 --- a/website/templates/css/blog_page.css +++ b/website/templates/css/blog_page.css @@ -1,4 +1,8 @@