diff --git a/frappe/core/doctype/data_import/test_exporter_new.py b/frappe/core/doctype/data_import/test_exporter_new.py index d17cef390b..faa48a35f4 100644 --- a/frappe/core/doctype/data_import/test_exporter_new.py +++ b/frappe/core/doctype/data_import/test_exporter_new.py @@ -20,7 +20,7 @@ class TestExporter(unittest.TestCase): e = Exporter('Web Page', export_fields='All') csv_array = e.get_csv_array() header = csv_array[0] - self.assertEqual(len(header), 35) + self.assertEqual(len(header), 36) def test_exports_selected_fields(self): diff --git a/frappe/public/tailwind.css b/frappe/public/tailwind.css index 270b70a2fc..89595f95ba 100644 --- a/frappe/public/tailwind.css +++ b/frappe/public/tailwind.css @@ -13,11 +13,10 @@ details.hide-summary-arrow summary::-webkit-details-marker { } .from-markdown { - @apply text-gray-900; @apply leading-relaxed; > * + * { - @apply mt-6; + @apply mt-4; } > :first-child { @@ -50,28 +49,45 @@ details.hide-summary-arrow summary::-webkit-details-marker { @apply px-4 py-3 text-sm font-medium text-gray-900 border border-gray-400 rounded-md bg-gray-50; } - > h1 { - @apply text-4xl; - @apply mt-16; - @apply mb-4; - @apply leading-none; - @apply font-bold; + h1 { + @apply mt-16 mb-4 text-3xl font-extrabold leading-tight tracking-tight; + @screen sm { + @apply text-4xl leading-10; + } + @screen xl { + @apply text-5xl leading-none; + } } - > h2 { - @apply mt-16; - @apply mb-4; - @apply leading-none; - @apply font-bold; - @apply text-3xl; + h1 + p { + @apply max-w-2xl mt-3 text-base text-gray-900; + + @screen sm { + @apply mt-5 text-lg; + } + @screen md { + @apply mt-5 text-xl; + } } - > h3 { - @apply mt-16; - @apply mb-4; - @apply leading-none; - @apply font-bold; - @apply text-2xl; + h2 { + @apply mb-4 text-2xl font-bold leading-tight mt-14; + } + + h3 { + @apply mt-12 mb-4 text-xl font-semibold leading-tight; + } + + h4 { + @apply mt-10 mb-4 text-lg font-semibold leading-tight; + } + + h5 { + @apply mt-8 mb-4 text-base font-semibold leading-tight; + } + + h6 { + @apply mt-6 mb-4 text-sm font-semibold leading-tight; } > a, @@ -84,9 +100,17 @@ details.hide-summary-arrow summary::-webkit-details-marker { } } + table { + @apply w-full my-8 border-t; + } + + tbody { + @apply border-t; + } + tr > td, tr > th { - @apply px-4 py-2 border border-gray-400; + @apply py-4 pr-6 text-sm leading-6 text-left border-b; } th:empty { diff --git a/frappe/templates/components/web_block.html b/frappe/templates/components/web_block.html index d898417970..f0ed8f2df4 100644 --- a/frappe/templates/components/web_block.html +++ b/frappe/templates/components/web_block.html @@ -7,6 +7,7 @@ web_block.css_class ]) -%} +{%- if not web_block.hide_block -%} <{{htmltag}} class="{{ classes }}" data-section-idx="{{ web_block.idx | e }}" data-section-template="{{ web_block.web_template | e }}"> {%- if web_block.add_container -%} @@ -17,3 +18,4 @@ {%- endif -%} {{htmltag}}> +{%- endif -%} diff --git a/frappe/website/doctype/web_page_block/web_page_block.json b/frappe/website/doctype/web_page_block/web_page_block.json index b415567bd0..77f2e25469 100644 --- a/frappe/website/doctype/web_page_block/web_page_block.json +++ b/frappe/website/doctype/web_page_block/web_page_block.json @@ -12,7 +12,8 @@ "column_break_5", "add_container", "add_padding", - "add_shade" + "add_shade", + "hide_block" ], "fields": [ { @@ -54,18 +55,24 @@ "default": "0", "fieldname": "add_shade", "fieldtype": "Check", - "label": "Shaded Section" + "label": "Add Gray Background" }, { "default": "1", "fieldname": "add_container", "fieldtype": "Check", "label": "Add Container" + }, + { + "default": "0", + "fieldname": "hide_block", + "fieldtype": "Check", + "label": "Hide Block" } ], "istable": 1, "links": [], - "modified": "2020-04-19 16:16:44.524042", + "modified": "2020-04-29 15:08:25.976179", "modified_by": "Administrator", "module": "Website", "name": "Web Page Block", diff --git a/frappe/website/doctype/web_template_field/web_template_field.json b/frappe/website/doctype/web_template_field/web_template_field.json index 09335adf3a..900655e207 100644 --- a/frappe/website/doctype/web_template_field/web_template_field.json +++ b/frappe/website/doctype/web_template_field/web_template_field.json @@ -31,7 +31,7 @@ "fieldtype": "Select", "in_list_view": 1, "label": "Fieldtype", - "options": "Attach Image\nCheck\nData\nInt\nSelect\nSmall Text\nText\nMarkdown Editor", + "options": "Attach Image\nCheck\nData\nInt\nSelect\nSmall Text\nText\nMarkdown Editor\nSection Break\nColumn Break", "reqd": 1 }, { @@ -48,7 +48,7 @@ ], "istable": 1, "links": [], - "modified": "2020-04-24 17:05:25.322767", + "modified": "2020-04-29 14:53:23.192395", "modified_by": "Administrator", "module": "Website", "name": "Web Template Field", diff --git a/frappe/website/web_template/hero/hero.html b/frappe/website/web_template/hero/hero.html index a3fb4aa466..e7b69ab782 100644 --- a/frappe/website/web_template/hero/hero.html +++ b/frappe/website/web_template/hero/hero.html @@ -9,22 +9,12 @@
{%- endif -%} {%- if primary_action or secondary_action -%} -