[website] updates for bootstrap3
This commit is contained in:
parent
5dfba486a6
commit
74560b32c1
@ -20,3 +20,4 @@ def execute():
|
|||||||
|
|
||||||
webnotes.delete_doc("DocType", "Question")
|
webnotes.delete_doc("DocType", "Question")
|
||||||
webnotes.delete_doc("DocType", "Answer")
|
webnotes.delete_doc("DocType", "Answer")
|
||||||
|
webnotes.bean("Style Settings").save()
|
||||||
|
@ -1,47 +1,15 @@
|
|||||||
div.outer {
|
h1, h2, h3, h4, h5 {
|
||||||
padding: 30px;
|
font-weight: bold;
|
||||||
margin: 30px -30px 10px -30px;
|
|
||||||
min-height: 400px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.outer .navbar {
|
.content {
|
||||||
margin: -30px -30px 20px -30px;
|
padding-bottom: 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.missing-image {
|
.missing-image {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
width: 32px;
|
width: 112px;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
}
|
||||||
|
@ -66,8 +66,9 @@ div.web-footer, div.web-footer a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Bootstrap Navbar */
|
/* Bootstrap Navbar */
|
||||||
.navbar-inverse .navbar-inner {
|
.navbar-inverse {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
border-radius: 0px;
|
||||||
background-color: #{{ doc.top_bar_background or "444444"}};
|
background-color: #{{ doc.top_bar_background or "444444"}};
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
@ -78,9 +79,9 @@ div.web-footer, div.web-footer a {
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-inverse .brand,
|
.navbar-inverse .navbar-brand,
|
||||||
.navbar-inverse .brand:hover,
|
.navbar-inverse .navbar-brand:hover,
|
||||||
.navbar-inverse .brand:focus,
|
.navbar-inverse .navbar-brand:focus,
|
||||||
.navbar-inverse .nav > li > a {
|
.navbar-inverse .nav > li > a {
|
||||||
color: #{{ doc.top_bar_foreground or "fffffff"}};
|
color: #{{ doc.top_bar_foreground or "fffffff"}};
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
@ -117,8 +118,8 @@ div.web-footer, div.web-footer a {
|
|||||||
color: #{{ doc.top_bar_foreground or "fffffff"}};
|
color: #{{ doc.top_bar_foreground or "fffffff"}};
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-fixed-top .navbar-inner,
|
.navbar-fixed-top,
|
||||||
.navbar-static-top .navbar-inner {
|
.navbar-static-top {
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
-moz-box-shadow: none;
|
-moz-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -190,14 +191,6 @@ div.web-footer, div.web-footer a {
|
|||||||
text-shadow: none;
|
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) > td,
|
||||||
.table-striped tbody > tr:nth-child(odd) > th {
|
.table-striped tbody > tr:nth-child(odd) > th {
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
<style>
|
<style>
|
||||||
|
[itemprop="articleBody"] {
|
||||||
|
font-size: 120%;
|
||||||
|
}
|
||||||
|
|
||||||
.comment-title {
|
.comment-title {
|
||||||
color:#777;
|
color:#777;
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
<ul class="breadcrumb" style="background-color: transparent; padding-left: 0px;">
|
<ul class="breadcrumb" style="background-color: transparent; padding-left: 0px;">
|
||||||
{% for category in categories %}
|
{% for category in categories %}
|
||||||
<li><a href="blog?category={{ category }}">{{ category }}</a>
|
<li><a href="blog?category={{ category }}">{{ category }}</a>
|
||||||
{% if not loop.last %}<span class="divider">/</span>{% endif %}</li>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
<br><br>
|
<br><br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p>Show posts by <a href="blog">everyone</a>. Meet the <a href="writers">writers</a> of this blog</p>
|
<p>Show posts by <a href="blog">everyone</a>. Meet the <a href="writers">writers</a> of this blog</p>
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
{% include 'app/website/templates/html/comment.html' %}
|
{% include 'app/website/templates/html/comment.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div><button class="btn add-comment">{{ texts.add_comment }}</button></div>
|
<div><button class="btn btn-default add-comment">{{ texts.add_comment }}</button></div>
|
||||||
<div style="display: none; margin-top: 10px;"
|
<div style="display: none; margin-top: 10px;"
|
||||||
id="comment-form">
|
id="comment-form">
|
||||||
<div class="alert" style="display:none;"></div>
|
<div class="alert" style="display:none;"></div>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<footer class="container"><div class="web-footer">
|
<footer class="container">
|
||||||
|
<div class="web-footer row">
|
||||||
|
<div class="col col-lg-12">
|
||||||
{% if facebook_share or google_plus_one or twitter_share or linked_in_share %}
|
{% if facebook_share or google_plus_one or twitter_share or linked_in_share %}
|
||||||
<div class="social-icons" style="">
|
<div class="social-icons" style="">
|
||||||
<span style="font-size: 11px;">{{ share_text or "Share this page on: "}}</span>
|
<span style="font-size: 11px;">{{ share_text or "Share this page on: "}}</span>
|
||||||
@ -37,10 +39,14 @@
|
|||||||
{% if address %}
|
{% if address %}
|
||||||
{{ address }}
|
{{ address }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p><div class="input-append" style="text-align: center; margin:30px 0px;">
|
<br>
|
||||||
<input class="col col-lg-3" id="footer-subscribe-email" type="text" placeholder="Your email address...">
|
<div class="input-group col col-lg-6 col-offset-3">
|
||||||
<button class="btn" type="button" id="footer-subscribe-button">Stay Updated</button>
|
<input type="text" id="footer-subscribe-email" placeholder="Your email address...">
|
||||||
</div></p>
|
<span class="input-group-btn">
|
||||||
|
<button class="btn btn-default" type="button" id="footer-subscribe-button">Stay Updated</button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
<script>
|
<script>
|
||||||
$("#footer-subscribe-button").click(function() {
|
$("#footer-subscribe-button").click(function() {
|
||||||
|
|
||||||
@ -68,4 +74,6 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<div class="navbar navbar-inverse" style="">
|
<div class="navbar navbar-inverse" style="">
|
||||||
<div class="navbar-inner">
|
{%- if brand_html %}<a class="navbar-brand" href="index">{{ brand_html }}</a>{% endif -%}
|
||||||
{%- if brand_html %}<a class="brand" href="index">{{ brand_html }}</a>{% endif -%}
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
<button type="button" class="navbar-toggle" data-toggle="collapse"
|
||||||
|
data-target=".navbar-responsive-collapse">
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="nav-collapse collapse">
|
<div class="nav-collapse collapse navbar-responsive-collapse">
|
||||||
<ul class="nav">
|
<ul class="nav navbar-nav">
|
||||||
{%- for page in top_bar_items -%}
|
{%- for page in top_bar_items -%}
|
||||||
{% if not page.parent_label -%}
|
{% if not page.parent_label -%}
|
||||||
<li data-label="{{ page.label }}" {% if page.child_items %} class="dropdown"{% endif %}>
|
<li data-label="{{ page.label }}" {% if page.child_items %} class="dropdown"{% endif %}>
|
||||||
@ -33,6 +33,5 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<script>$('.dropdown-toggle').dropdown()</script>
|
<script>$('.dropdown-toggle').dropdown()</script>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
{% for ig in obj.parent_groups[:-1] %}
|
{% for ig in obj.parent_groups[:-1] %}
|
||||||
<li><a href="{{ ig.page_name }}.html">{{ ig.name }}</a> <span class="divider">/</span></li>
|
<li><a href="{{ ig.page_name }}.html">{{ ig.name }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li class="active">{{ obj.parent_groups[-1].name }}</li>
|
<li class="active">{{ obj.parent_groups[-1].name }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
<h3>{{ name }}</h3>
|
<h3>{{ name }}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% include 'app/website/templates/html/product_search_box.html' %}
|
|
||||||
{% include 'app/website/templates/html/product_breadcrumbs.html' %}
|
|
||||||
<div class="col col-lg-12">
|
<div class="col col-lg-12">
|
||||||
{% if sub_groups %}
|
{% if sub_groups %}
|
||||||
<hr />
|
<hr />
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
<div class="col col-lg-12 clearfix">
|
<div class="col col-lg-12 clearfix">
|
||||||
<div class="pull-right" style="margin-top: 15px;">
|
<div class="pull-right" style="margin-top: 15px; margin-bottom: 15px;">
|
||||||
<form class="form-search">
|
<form class="form-search">
|
||||||
<div class="input-append">
|
<div class="input-group col col-lg-4 col-offset-8">
|
||||||
<input type="text" class="col col-lg-2 search-query"
|
<input type="text" id="product-search" placeholder="Product Search...">
|
||||||
id="product-search" placeholder="Product Search..." />
|
<span class="input-group-btn">
|
||||||
<button class="btn" id="btn-product-search">
|
<button class="btn btn-default" type="button" id="btn-product-search">
|
||||||
<i class="icon-search"></i></button>
|
<i class="icon-search"></i></button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -87,7 +87,7 @@ var blog = {
|
|||||||
if(!data.length || data.length < 20) {
|
if(!data.length || data.length < 20) {
|
||||||
if(blog.start) {
|
if(blog.start) {
|
||||||
$("#next-page").toggle(false)
|
$("#next-page").toggle(false)
|
||||||
.parent().append("<div class='alert alert-info'>Nothing more to show.</div>");
|
.parent().append("<div class='text-muted'>Nothing more to show.</div>");
|
||||||
} else {
|
} else {
|
||||||
$("#next-page").toggle(false)
|
$("#next-page").toggle(false)
|
||||||
.parent().append("<div class='alert'>No blogs written yet.</div>");
|
.parent().append("<div class='alert'>No blogs written yet.</div>");
|
||||||
|
@ -40,7 +40,7 @@ window.render_product_list = function(data) {
|
|||||||
.replaceWith("<div class='alert'>No products found.</div>");
|
.replaceWith("<div class='alert'>No products found.</div>");
|
||||||
} else {
|
} else {
|
||||||
$(".more-btn")
|
$(".more-btn")
|
||||||
.replaceWith("<div class='alert'>Nothing more to show.</div>");
|
.replaceWith("<div class='text-muted'>Nothing more to show.</div>");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$(".more-btn").toggle(true)
|
$(".more-btn").toggle(true)
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<!-- blog list will be generated dynamically -->
|
<!-- blog list will be generated dynamically -->
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<button id="next-page" class="btn"
|
<button id="next-page" class="btn btn-default"
|
||||||
style="display:none;">More...</button>
|
style="display:none;">More...</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,24 +11,28 @@
|
|||||||
<h3>{{ obj.doc.heading or "Contact Us"}}</h3>
|
<h3>{{ obj.doc.heading or "Contact Us"}}</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="web-form col col-lg-8">
|
<div class="web-form col col-lg-8">
|
||||||
<div class="row">
|
|
||||||
<div class="col col-lg-6">
|
|
||||||
<p id="contact-alert" class="alert"
|
<p id="contact-alert" class="alert"
|
||||||
style="display: none;"> </p>
|
style="display: none;"> </p>
|
||||||
</div>
|
<p>
|
||||||
</div>
|
<select name="subject">
|
||||||
<div class="clearfix"></div>
|
|
||||||
<p><select class="col col-lg-6" name="subject">
|
|
||||||
{% for option in obj.query_options %}
|
{% for option in obj.query_options %}
|
||||||
<option value="{{ option }}">{{ option }}</option>
|
<option value="{{ option }}">{{ option }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select></p>
|
</select>
|
||||||
<p><input class="col col-lg-6" name="email" type="text" placeholder="Your Email Address" /></p>
|
</p>
|
||||||
<p><textarea class="col col-lg-6" rows="10" name="message"></textarea></p>
|
<p>
|
||||||
<p><button class="btn btn-primary btn-send">Send</button></p>
|
<input name="email" type="text"
|
||||||
|
placeholder="Your Email Address" />
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<textarea rows="10" name="message"></textarea>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<button class="btn btn-primary btn-send">Send</button>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% if obj.doc.address %}
|
{% if obj.doc.address %}
|
||||||
<div class="col col-lg-3 alert" style="margin-top: 20px;" itemscope itemtype="http://schema.org/PostalAddress">
|
<div class="col col-lg-3 col-offset-1 alert" style="margin-top: 20px;" itemscope itemtype="http://schema.org/PostalAddress">
|
||||||
<h4><i class="icon-map-marker"></i> {{ obj.address.address_title }}</h4>
|
<h4><i class="icon-map-marker"></i> {{ obj.address.address_title }}</h4>
|
||||||
{% if obj.address.address_line1 %}
|
{% if obj.address.address_line1 %}
|
||||||
<span itemprop="streetAddress">{{ obj.address.address_line1 }}</span><br>
|
<span itemprop="streetAddress">{{ obj.address.address_line1 }}</span><br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user