{% for (var i=0; i < data.length; i++) { var section = data[i]; %}
{% if ((i % 2)===0) { %}
{% } %}
-
+
{{ section.label }}
diff --git a/frappe/public/css/module.css b/frappe/public/css/module.css
index 3eff8f2a43..336029a91a 100644
--- a/frappe/public/css/module.css
+++ b/frappe/public/css/module.css
@@ -13,15 +13,43 @@
margin-bottom: 15px;
}
.module-section {
- padding: 15px;
- padding-top: 0px;
+ border-bottom: 1px solid #EBEFF2;
}
.module-section .module-section-link {
line-height: 1.5em;
font-size: 12px;
}
-.module-section .section-head {
- margin-top: 30px;
+.module-section-column {
+ padding: 15px 30px;
+ padding-bottom: 20px;
+}
+@media (min-width: 767px) {
+ .module-section:nth-child(even) {
+ background-color: #fafbfc;
+ }
+ .module-section:last-child {
+ border-bottom: none;
+ }
+}
+@media (max-width: 991px) {
+ .module-body {
+ margin-top: 15px;
+ border-top: 1px solid #d1d8dd;
+ }
+}
+@media (max-width: 767px) {
+ .module-section {
+ border: none;
+ }
+ .module-section-column {
+ border-bottom: 1px solid #EBEFF2;
+ }
+ .module-section-column:nth-child(even) {
+ background-color: #fafbfc;
+ }
+ .module-section:last-child .module-section-column:last-child {
+ border-bottom: none;
+ }
}
.module-item {
margin: 0px;
@@ -68,10 +96,6 @@
width: 0px;
}
@media (max-width: 767px) {
- .module-body {
- border-top: 1px solid #EBEFF2;
- margin-top: 15px;
- }
body[data-route^="Module"] .page-title {
width: 100%;
}
diff --git a/frappe/public/js/frappe/misc/utils.js b/frappe/public/js/frappe/misc/utils.js
index dc686438de..21ad30c1b3 100644
--- a/frappe/public/js/frappe/misc/utils.js
+++ b/frappe/public/js/frappe/misc/utils.js
@@ -24,8 +24,17 @@ frappe.utils = {
return true;
},
is_mobile: function() {
+ return frappe.utils.is_xs();
+ },
+ is_xs: function() {
return $(document).width() < 768;
},
+ is_sm: function() {
+ return $(document).width() < 991 && $(document).width() >= 768;
+ },
+ is_md: function() {
+ return $(document).width() < 1199 && $(document).width() >= 991;
+ },
strip_whitespace: function(html) {
return (html || "").replace(/\s*<\/p>/g, "").replace(/
(\s*
\s*)+/g, "
");
},
diff --git a/frappe/public/js/frappe/ui/editor.html b/frappe/public/js/frappe/ui/editor.html
index c5446233ef..f3c7becfca 100644
--- a/frappe/public/js/frappe/ui/editor.html
+++ b/frappe/public/js/frappe/ui/editor.html
@@ -16,8 +16,7 @@
-
- {{ __("Font Size") }}
+