From 78db3ec2dd60f2544fd03aaffc5030b10275fe06 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 21 Feb 2013 14:25:30 +0530 Subject: [PATCH] added responsive layout with groups --- website/css/website.css | 35 +++--- .../style_settings/custom_template.css | 2 + website/templates/css/product_page.css | 6 +- website/templates/html/blog_page.html | 80 ++++++------ website/templates/html/outer.html | 114 +++++++++--------- .../templates/html/product_breadcrumbs.html | 16 ++- website/templates/html/product_group.html | 68 +++++------ website/templates/html/product_in_list.html | 17 ++- website/templates/html/product_page.html | 97 +++++++-------- .../templates/html/product_search_box.html | 23 ++-- website/templates/html/web_page.html | 12 +- website/templates/pages/about.html | 4 +- website/templates/pages/blog.html | 25 ++-- website/templates/pages/contact.html | 9 +- website/templates/pages/product_search.html | 25 ++-- 15 files changed, 256 insertions(+), 277 deletions(-) diff --git a/website/css/website.css b/website/css/website.css index 0b2dce44cb..106d18a61e 100644 --- a/website/css/website.css +++ b/website/css/website.css @@ -1,19 +1,21 @@ -.content, div#body_div { - width: 780px; -} - -div#body_div { - padding: 0px; - min-height: 400px; - margin: 40px auto 10px auto; - box-shadow: 1px 1px 3px 3px #bbb; +div.outer { + -moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.9); + -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.9); + box-shadow: 0px 0px 3px rgba(0,0,0,0.9); + background-color: #fff; border-radius: 5px; + padding: 15px; + margin: 30px -15px 10px -15px; + min-height: 400px; overflow: hidden; } +.outer .navbar { + margin: -15px -15px 0 -15px; +} + footer { text-align: left; - width: 720px; margin: auto; } @@ -39,6 +41,14 @@ p, li { padding: 30px; } +.missing-image { + background-color: #eee; + padding: 40px; + width: 32px; + font-size: 32px; + color: #888; +} + .social-icons { font-size: 120%; float: right; @@ -67,11 +77,6 @@ p, li { margin: 0px; } -.two-column { - width: 50%; - float: left; -} - .clear { clear: both; } diff --git a/website/doctype/style_settings/custom_template.css b/website/doctype/style_settings/custom_template.css index 7e89ca03fb..9009bbe18a 100644 --- a/website/doctype/style_settings/custom_template.css +++ b/website/doctype/style_settings/custom_template.css @@ -4,6 +4,8 @@ body { {% elif doc.background_color %} background-color: #{{ doc.background_color }}; background-image: none; +{% else %} + background-color: #edede7; {% endif %} {% if doc.font %} font-family: '{{ doc.font }}', Verdana, Sans !important; diff --git a/website/templates/css/product_page.css b/website/templates/css/product_page.css index 2b7c9790ff..5780ee4fd3 100644 --- a/website/templates/css/product_page.css +++ b/website/templates/css/product_page.css @@ -1,9 +1,7 @@