diff --git a/frappe/public/css/website.css b/frappe/public/css/website.css
index 11f14e1376..a9b944125b 100644
--- a/frappe/public/css/website.css
+++ b/frappe/public/css/website.css
@@ -382,6 +382,15 @@ h5,
h6 {
font-weight: 400;
}
+h1 a,
+h2 a,
+h3 a,
+h4 a,
+h5 a,
+h6 a {
+ color: inherit !important;
+ text-decoration: none;
+}
.navbar-brand {
max-width: none;
}
@@ -590,15 +599,6 @@ fieldset {
.web-list-item h3 {
margin-top: 10px;
}
-.web-list-item h1 a,
-.web-list-item h2 a,
-.web-list-item h3 a,
-.web-list-item h4 a,
-.web-list-item h5 a,
-.web-list-item h6 a {
- color: inherit !important;
- text-decoration: none;
-}
.web-list-item:last-child {
border-bottom: 0px;
}
@@ -607,7 +607,6 @@ fieldset {
margin-top: 30px;
}
.post-description {
- padding-top: 8px;
padding-bottom: 8px;
}
.post-description p {
@@ -654,9 +653,8 @@ fieldset {
font-weight: 700;
font-size: 2em;
}
-.blog-comments,
-.help-article-comments {
- padding: 0px 15px 15px 0px;
+.add-comment-section {
+ padding-bottom: 30px;
}
.blog-comments {
background-color: #fafbfc;
@@ -916,7 +914,7 @@ body {
.your-account-info {
margin-top: 50px;
}
-.page-content {
+.page-content.with-sidebar {
padding-left: 50px;
padding-right: 50px;
}
@@ -952,11 +950,12 @@ li .social-child-item {
margin-bottom: 0px;
margin-top: 0px;
}
+.comment-view {
+ padding: 30px 0px;
+}
.comment-header {
- font-size: 20px;
- padding-top: 30px;
padding-bottom: 20px;
- border-bottom: 1px solid #d1d8dd;
+ border-bottom: 1px solid #EBEFF2;
}
.item-search {
border-bottom: 1px solid #d1d8dd;
diff --git a/frappe/public/js/frappe/form/quick_entry.js b/frappe/public/js/frappe/form/quick_entry.js
index df1cde2533..7d27b985fc 100644
--- a/frappe/public/js/frappe/form/quick_entry.js
+++ b/frappe/public/js/frappe/form/quick_entry.js
@@ -25,7 +25,7 @@ frappe.ui.form.quick_entry = function(doctype, success) {
return;
}
- if(meta.autoname.toLowerCase()==='prompt') {
+ if(meta.autoname && meta.autoname.toLowerCase()==='prompt') {
mandatory = [{fieldname:'__name', label:__('{0} Name', [meta.name]),
reqd: 1, fieldtype:'Data'}].concat(mandatory);
}
diff --git a/frappe/public/less/website.less b/frappe/public/less/website.less
index 0dc62c106a..d2926b9954 100644
--- a/frappe/public/less/website.less
+++ b/frappe/public/less/website.less
@@ -20,6 +20,13 @@ a& {
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
+
+ // anchor inside header should not be styled
+ a {
+ color: inherit !important;
+ text-decoration: none;
+ }
+
}
@@ -275,13 +282,6 @@ fieldset {
h1, h2, h3 {
margin-top: 10px;
}
-
- h1, h2, h3, h4, h5, h6 {
- a {
- color: inherit !important;
- text-decoration: none;
- }
- }
}
.web-list-item:last-child {
@@ -298,7 +298,6 @@ fieldset {
}
.post-description {
- padding-top: 8px;
padding-bottom: 8px;
p {
margin-bottom: 8px;
@@ -344,8 +343,8 @@ fieldset {
}
.blog-list-item {
- margin-top:30px;
- margin-bottom:30px;
+ margin-top: 30px;
+ margin-bottom: 30px;
.blog-header {
font-size: 1.6em;
@@ -357,18 +356,21 @@ fieldset {
font-size: 2em;
}
+.add-comment-section {
+ padding-bottom: 30px;
+}
+
.blog-comments,
.help-article-comments {
- padding: 0px 15px 15px 0px;
}
.blog-comments {
- background-color: #fafbfc;
+ background-color: @light-bg;
position: relative;
}
.blog-comments:before {
content:"";
- background-color:#fafbfc;
+ background-color: @light-bg;
position: absolute;
height: 100%;
width: 4000px;
@@ -517,7 +519,8 @@ a.active {
.your-account-info {
margin-top: 50px;
}
-.page-content {
+
+.page-content.with-sidebar {
padding-left: 50px;
padding-right: 50px;
}
@@ -559,11 +562,13 @@ li .social-child-item {
margin-top:0px;
}
+.comment-view {
+ padding: 30px 0px;
+}
+
.comment-header{
- font-size:20px;
- padding-top:30px;
padding-bottom:20px;
- border-bottom: 1px solid @border-color;
+ border-bottom: 1px solid @light-border-color;
}
.item-search {
diff --git a/frappe/templates/generators/blog_post.html b/frappe/templates/generators/blog_post.html
index 8a8b868d27..771e6c39b4 100644
--- a/frappe/templates/generators/blog_post.html
+++ b/frappe/templates/generators/blog_post.html
@@ -1,16 +1,17 @@
{% extends "templates/web.html" %}
{% block page_content %}
+
-
+
By {{ blogger_info and blogger_info.full_name or full_name }}
- {{ frappe.format_date(published_on) }}
- {{ blog_category }}
+ {{ frappe.format_date(published_on) }}
+ {{ blog_category }}
{{ comment_text }}
@@ -25,12 +26,17 @@
+
{% endblock %}
{% block style %}
-{% endblock %}
+{% endblock %}
\ No newline at end of file
diff --git a/frappe/templates/includes/comments/comment.html b/frappe/templates/includes/comments/comment.html
index f6f010e9df..2d7e1603ed 100644
--- a/frappe/templates/includes/comments/comment.html
+++ b/frappe/templates/includes/comments/comment.html
@@ -4,13 +4,12 @@
-
-
{{ comment.sender_full_name }}
-
-
- {{ comment.creation|global_date_format }}
-
-
+
+
{{ comment.sender_full_name }}
+
+ {{ comment.creation|global_date_format }}
+
+
{{ comment.content|markdown }}
diff --git a/frappe/templates/web.html b/frappe/templates/web.html
index 3c2b31957a..b70eec2891 100644
--- a/frappe/templates/web.html
+++ b/frappe/templates/web.html
@@ -10,7 +10,7 @@
{% include "templates/includes/web_sidebar.html" %}
{% endif %}
-