diff --git a/frappe/public/css/docs.css b/frappe/public/css/docs.css index 5df0f07714..592f8800a7 100644 --- a/frappe/public/css/docs.css +++ b/frappe/public/css/docs.css @@ -449,12 +449,12 @@ pre { color: inherit; } a.btn-primary { - color: #fff; + color: #7575ff; } a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:visited { - color: #fff; + color: #7575ff; } .btn-next-wrapper { margin-top: 32px; diff --git a/frappe/public/css/website.css b/frappe/public/css/website.css index 1ee132e904..20be163f7a 100644 --- a/frappe/public/css/website.css +++ b/frappe/public/css/website.css @@ -411,6 +411,7 @@ a.no-decoration:active { .web-footer { padding: 20px 0px; min-height: 140px; + border-top: 1px solid #d1d8dd; } .carousel-control .icon { position: absolute; @@ -458,7 +459,6 @@ a.no-decoration:active { padding-left: 15px; } .page-header-actions-block { - padding-top: 20px; text-align: right; } fieldset { @@ -489,9 +489,8 @@ fieldset { } .page-container { padding: 0px; -} -.page-content { - padding-bottom: 20px; + max-width: 970px; + margin: auto; } .page-content hr { margin-left: -15px; @@ -570,39 +569,40 @@ fieldset { .blog-list-content .website-list .result { border: 0px; } -.blog-list-content .web-list-item { - padding: 0px; -} .blog-list-content .web-list-item:hover { background: transparent; } -.longform { - padding: 15px 0px; - line-height: 1.5; - font-size: 1.1em; - max-width: 700px; -} -.longform p { - margin-bottom: 30px; -} .blog-category { - margin-top: 60px; + text-transform: uppercase; + font-size: 12px; + text-align: center; + margin-bottom: 20px; } .blogger { - padding: 10px 15px; + padding-top: 30px; + padding-bottom: 15px; border-top: 1px solid #d1d8dd; - margin: 0px -15px; } .blog-comments, .help-article-comments { - margin: 0px -15px; - border-top: 1px solid #d1d8dd; - padding: 5px 15px 15px; + padding: 5px 15px 15px 70px; +} +.comment-view { + background-color: #fafbfc; + position: relative; +} +.comment-view:before { + content: ""; + background-color: #fafbfc; + position: absolute; + height: 100%; + width: 4000px; + left: -2000px; + z-index: -1; } .blog-comment-row { margin: 0px -15px; padding: 15px; - border-bottom: 1px solid #d1d8dd; } .blog-comment-row:last-child { margin-bottom: 30px; @@ -643,9 +643,6 @@ a.active { pointer-events: none; cursor: default; } -.page-breadcrumbs { - padding-top: 20px; -} .page-breadcrumbs .breadcrumb { padding: 0px; background-color: transparent; @@ -829,3 +826,96 @@ body { .btn-next-wrapper { margin-top: 60px; } +.footer-group-label { + display: inline-block; + padding-bottom: 4px; + text-transform: uppercase; + font-size: 12px; +} +.item-list { + padding-top: 20px; +} +.sidebar-block, +.content-block { + padding-top: 50px; + padding-bottom: 50px; +} +.content-header { + padding-bottom: 20px; +} +.selected-p-item { + color: #7575ff; +} +a:hover, +a:visited, +a:link, +a:active { + text-decoration: none; +} +.blog-header { + font-size: 36px; + margin-bottom: 20px; +} +.blog-dot:before { + padding-right: 8px; + padding-left: 8px; + content: "\2022"; +} +.blog-list-item { + margin-top: 25px; + margin-bottom: 25px; + border: none; +} +.post-description { + margin-top: 0px; +} +.post-by { + margin-top: 4px; + margin-bottom: 4px; + text-transform: uppercase; + font-size: 12px; +} +li .footer-child-item { + margin-bottom: 4px !important; +} +li .social-child-item { + margin-bottom: 4px !important; +} +.blog-info { + text-align: center; + margin-top: 30px; +} +.blog-text { + text-align: justify; + padding-top: 50px; + padding-bottom: 50px; + font-size: 18px; + max-width: 700px; + margin: auto; +} +.blog-text p { + margin-bottom: 50px; +} +.blogger-name { + font-size: 24px; +} +.comment-header { + font-size: 20px; + padding-top: 30px; + padding-bottom: 20px; +} +#item-search { + position: relative; + outline: none; + border: none; +} +.vert-line { + overflow: hidden; +} +.vert-line > div + div { + border-left: 1px solid #d1d8dd; +} +.vert-line > div { + padding-bottom: 2000px; + margin-bottom: -2000px; +} diff --git a/frappe/public/less/docs.less b/frappe/public/less/docs.less index 87b8b33196..667b3f39a7 100644 --- a/frappe/public/less/docs.less +++ b/frappe/public/less/docs.less @@ -203,9 +203,9 @@ pre { } a.btn-primary& { - color: #fff; + color: #7575ff; &:hover, &:focus, &:visited { - color: #fff; + color: #7575ff;; } } diff --git a/frappe/public/less/website.less b/frappe/public/less/website.less index be7af0c705..2851288b67 100644 --- a/frappe/public/less/website.less +++ b/frappe/public/less/website.less @@ -68,6 +68,7 @@ .web-footer { padding: 20px 0px; min-height: 140px; + border-top: 1px solid #d1d8dd; } .carousel-control .icon { @@ -123,7 +124,6 @@ } .page-header-actions-block { - padding-top: 20px; text-align: right; } @@ -159,10 +159,11 @@ fieldset { .page-container { padding: 0px; + max-width: 970px; + margin: auto; } .page-content { - padding-bottom: 20px; hr { margin-left: -15px; margin-right: -15px; @@ -223,7 +224,6 @@ fieldset { .website-list .result { margin-top: 15px; - // border: 1px solid @border-color; } .web-list-item { @@ -261,46 +261,46 @@ fieldset { border: 0px; } -.blog-list-content .web-list-item { - padding: 0px; -} - .blog-list-content .web-list-item:hover { background: transparent; } -.longform { - padding: 15px 0px; - line-height: 1.5; - font-size: 1.1em; - max-width: 700px; - - p { - margin-bottom: 30px; - } -} - .blog-category { - margin-top: 60px; + text-transform: uppercase; + font-size: 12px; + text-align: center; + margin-bottom: 20px; } .blogger { - padding: 10px 15px; + padding-top: 30px; + padding-bottom: 15px; border-top: 1px solid @border-color; - margin: 0px -15px; } .blog-comments, .help-article-comments { - margin: 0px -15px; - border-top: 1px solid @border-color; - padding: 5px 15px 15px; + padding: 5px 15px 15px 70px; +} +.comment-view { + background-color: #fafbfc; + position: relative; + +} + +.comment-view:before { + content:""; + background-color:#fafbfc; + position: absolute; + height: 100%; + width: 4000px; + left: -2000px; + z-index: -1; } .blog-comment-row { margin: 0px -15px; padding: 15px; - border-bottom: 1px solid @border-color; } .blog-comment-row:last-child { @@ -355,10 +355,6 @@ a.active { // background-color: #ffa; // } -.page-breadcrumbs { - padding-top: 20px; -} - .page-breadcrumbs .breadcrumb { padding: 0px; background-color: transparent; @@ -423,3 +419,106 @@ a.active { .btn-next-wrapper { margin-top: 60px; } + +.footer-group-label{ + display:inline-block; + padding-bottom: 4px; + text-transform: uppercase; + font-size: 12px; +} + +.item-list{ + padding-top: 20px; +} + +.sidebar-block, .content-block { + padding-top:50px; + padding-bottom:50px; +} + +.content-header { + padding-bottom:20px; +} + +.selected-p-item { + color:#7575ff; +} + +a:hover, a:visited, a:link, a:active +{ + text-decoration: none; +} + +.blog-header{ + font-size:36px; + margin-bottom: 20px; +} + +.blog-dot:before{ + padding-right:8px; + padding-left:8px; + content:"\2022"; +} + +.blog-list-item { + margin-top:25px; + margin-bottom:25px; + border:none; +} + +.post-description{ + margin-top:0px; +} + +.post-by { + margin-top:4px; + margin-bottom:4px; + text-transform: uppercase; + font-size: 12px; +} + +li .footer-child-item { + margin-bottom:4px !important; +} + +li .social-child-item { + margin-bottom:4px !important; +} + +.blog-info{ + text-align:center; + margin-top: 30px; +} + +.blog-text{ + text-align:justify; + padding-top: 50px; + padding-bottom: 50px; + font-size: 18px; + max-width:700px; + margin:auto; + p { + margin-bottom: 50px; + } +} + +.blogger-name{ + font-size:24px; +} + +.comment-header{ + font-size:20px; + padding-top:30px; + padding-bottom:20px; +} + +#item-search { + position: relative; + outline:none; + border:none; +} + +.vert-line {overflow:hidden;} +.vert-line>div+div{border-left:1px solid #d1d8dd;} +.vert-line>div{ + padding-bottom:2000px; margin-bottom:-2000px;} \ No newline at end of file diff --git a/frappe/templates/generators/blog_post.html b/frappe/templates/generators/blog_post.html index 2864fff9df..e67c56f7d3 100644 --- a/frappe/templates/generators/blog_post.html +++ b/frappe/templates/generators/blog_post.html @@ -1,36 +1,36 @@ {% extends "templates/web.html" %} -{% block header %} -

- {{ title }} -

-{% endblock %} - {% block breadcrumbs %} - {% include "templates/includes/breadcrumbs.html" %} + {% endblock %} {% block page_content %}
-

- , - {{ updated }} -

+
+
{{blog_category}}
+
+ {{ title }} +
+

+ BY {{ blogger_info and blogger_info.full_name or full_name }} {{ frappe.format_date(published_on) }} {{ comment_text }}

+
{{ content }}
-

- - {{ _("This post is filed under {0}").format(blog_category) }} -

{% if blogger_info %} +
Author
{% include "templates/includes/blog/blogger.html" %} {% endif %}
-

Comments

{% include 'templates/includes/comments/comments.html' %}
diff --git a/frappe/templates/includes/blog/blog.html b/frappe/templates/includes/blog/blog.html index 04355aa928..4404eab9d8 100644 --- a/frappe/templates/includes/blog/blog.html +++ b/frappe/templates/includes/blog/blog.html @@ -1,19 +1,12 @@ {% extends "templates/web.html" %} {% block title %}{{ blog_title or "Blog" }}{% endblock %} - +{% block header %}
{{ blog_title or "Blog" }}
{% endblock %} {% block hero %}{% endblock %} {% block page_content %} -{% if blog_subtitle %} -
-

- {{ blog_subtitle }} -

-
-{% endif %}
{% include "templates/includes/list/list.html" %} diff --git a/frappe/templates/includes/blog/blog_row.html b/frappe/templates/includes/blog/blog_row.html index 95380096d9..868e79ec06 100644 --- a/frappe/templates/includes/blog/blog_row.html +++ b/frappe/templates/includes/blog/blog_row.html @@ -1,16 +1,12 @@ {%- set post = doc -%} -
+
+
-

{{ post.title }}

+ +

+ BY {{ post.full_name }} {{ frappe.format_date(post.published_on) }} {{ post.blog_category }} {{ post.comment_text }}

{{ post.content }}

-
- -
+
+
+ diff --git a/frappe/templates/includes/blog/blogger.html b/frappe/templates/includes/blog/blogger.html index 30300fc08c..816fe11b34 100644 --- a/frappe/templates/includes/blog/blogger.html +++ b/frappe/templates/includes/blog/blogger.html @@ -5,7 +5,7 @@
-

About {{ blogger_info.full_name }}

+
{{ blogger_info.full_name }}

{{ blogger_info.bio }}

All Posts By {{ blogger_info.full_name }}

diff --git a/frappe/templates/includes/comments/comment.html b/frappe/templates/includes/comments/comment.html index 307c423eb4..f6f010e9df 100644 --- a/frappe/templates/includes/comments/comment.html +++ b/frappe/templates/includes/comments/comment.html @@ -6,8 +6,8 @@

{{ comment.sender_full_name }} -
- + + {{ comment.creation|global_date_format }}

diff --git a/frappe/templates/includes/comments/comments.html b/frappe/templates/includes/comments/comments.html index 9ea75d3493..eef2314aee 100644 --- a/frappe/templates/includes/comments/comments.html +++ b/frappe/templates/includes/comments/comments.html @@ -1,3 +1,5 @@ +
+
{{ comment_text }}
{% if not comment_list %}

{{ _("Start a new discussion.") }}

@@ -5,11 +7,12 @@
{% endif %} -
+
{% for comment in comment_list %} {% include "templates/includes/comments/comment.html" %} {% endfor %}
+
- {{ _("Add Comment") }} - diff --git a/frappe/templates/includes/footer/footer_items.html b/frappe/templates/includes/footer/footer_items.html new file mode 100644 index 0000000000..72f70a6f18 --- /dev/null +++ b/frappe/templates/includes/footer/footer_items.html @@ -0,0 +1,24 @@ +{% for page in footer_items %} + {% if not page.parent_label -%} +
  • + + {%- if page.child_items -%} + {{ page.label }} + + + {%- else -%} + {{ page.label }} + + {%- endif -%} +
  • + {%- endif -%} +{% endfor %} \ No newline at end of file diff --git a/frappe/templates/includes/login/login.css b/frappe/templates/includes/login/login.css index 84bc3bccae..6cbe2ce18e 100644 --- a/frappe/templates/includes/login/login.css +++ b/frappe/templates/includes/login/login.css @@ -7,13 +7,37 @@ width: 100%; } +.blue { + color: #7575ff; +} + +.icon-facebook, .icon-facebook-sign{ + color: #3b5998; +} +.icon-google-plus, .icon-google-plus-sign{ + color: #C63D2D; +} +.icon-github, .icon-github-sign{ + color: black; +} + +.icon-twitter, .icon-twitter-sign{ + color: #00a0d1; +} + +.icon-linkedin, .icon-linkedin-sign{ + color: #4875B4; +} + #wrap { - background-color: #fafbfc; + background-color: #7575ff; } .form-signin { max-width: 360px; - padding: 30px; + padding-right: 30px; + padding-left: 30px; + padding-top: 10px; margin: 0 auto; border-radius: 5px; background-color: #fff; @@ -42,3 +66,50 @@ .btn-social { margin: 10px; } + +h5 { + position: relative; + text-align: center; + margin-top:20px; + margin-bottom:20px; +} + +h5 span { + background: #fff; + padding: 0 15px; + position: relative; + z-index: 1; +} + +h5:before { + background: #ddd; + content: ""; + display: block; + height: 1px; + position: absolute; + top: 50%; + width: 100%; +} +h5:before { + left: 0; +} +.login_header{ + font-size: 36px; + position: relative; + text-align: center; + margin-bottom:20px; + +} + +p{ + margin-bottom:20px; +} +.btn-login, .btn-signup, .btn-forgot { + background: #7575ff; + color: white; +} + +.content-block { + padding-top:10px; + padding-bottom:30px; +} \ No newline at end of file diff --git a/frappe/templates/includes/navbar/navbar_items.html b/frappe/templates/includes/navbar/navbar_items.html index d9b66b4cec..7044e68001 100644 --- a/frappe/templates/includes/navbar/navbar_items.html +++ b/frappe/templates/includes/navbar/navbar_items.html @@ -13,5 +13,6 @@ {% include "templates/includes/navbar/navbar_link.html" %} {%- endif -%} {%- endfor %} +
  • {% include "templates/includes/navbar/navbar_login.html" %} diff --git a/frappe/templates/includes/search_box.html b/frappe/templates/includes/search_box.html new file mode 100644 index 0000000000..0498013d9f --- /dev/null +++ b/frappe/templates/includes/search_box.html @@ -0,0 +1,30 @@ + +
    +

    +

    + +

    +
    + + \ No newline at end of file diff --git a/frappe/templates/includes/web_sidebar.html b/frappe/templates/includes/web_sidebar.html new file mode 100644 index 0000000000..d37ea0b2a5 --- /dev/null +++ b/frappe/templates/includes/web_sidebar.html @@ -0,0 +1,49 @@ +
    + + +
    + + + diff --git a/frappe/templates/pages/about.html b/frappe/templates/pages/about.html index 881c2b5c0c..f65fc6b9ac 100644 --- a/frappe/templates/pages/about.html +++ b/frappe/templates/pages/about.html @@ -1,7 +1,9 @@ {% extends "templates/web.html" %} {% block title %}About Us{% endblock %} - +{% block page_sidebar %} +{% include "templates/pages/web_sidebar.html" %} +{% endblock %} {% block page_content %}
    diff --git a/frappe/templates/pages/about.py b/frappe/templates/pages/about.py index d144e85109..9788288e54 100644 --- a/frappe/templates/pages/about.py +++ b/frappe/templates/pages/about.py @@ -5,4 +5,5 @@ from __future__ import unicode_literals import frappe def get_context(context): + context.show_sidebar=True return { "doc": frappe.get_doc("About Us Settings", "About Us Settings") } diff --git a/frappe/templates/pages/list.py b/frappe/templates/pages/list.py index 615fd40eff..00f5c73c92 100644 --- a/frappe/templates/pages/list.py +++ b/frappe/templates/pages/list.py @@ -52,6 +52,7 @@ def get(doctype, txt=None, limit_start=0, **kwargs): for doc in raw_result: doc.doctype = doctype new_context = frappe._dict(doc=doc, meta=meta) + new_context.doc = frappe.get_doc(doc) if not frappe.flags.in_test: new_context["pathname"] = frappe.local.request.path.strip("/ ") diff --git a/frappe/templates/pages/login.html b/frappe/templates/pages/login.html index 2c36041191..5e0fa7accb 100644 --- a/frappe/templates/pages/login.html +++ b/frappe/templates/pages/login.html @@ -2,53 +2,59 @@ {% block style %} {% endblock %} {% block page_content %} -