diff --git a/addons/website/__manifest__.py b/addons/website/__manifest__.py index e97d99a39c8..d5ec473daa1 100644 --- a/addons/website/__manifest__.py +++ b/addons/website/__manifest__.py @@ -50,6 +50,7 @@ 'views/snippets/s_company_team.xml', 'views/snippets/s_call_to_action.xml', 'views/snippets/s_references.xml', + 'views/snippets/s_faq_collapse.xml', 'views/website_views.xml', 'views/website_visitor_views.xml', 'views/res_config_settings_views.xml', diff --git a/temp_scss b/addons/website/static/src/scss/website.scss similarity index 96% rename from temp_scss rename to addons/website/static/src/scss/website.scss index 1f73c37c41e..5fa38c7bc97 100644 --- a/temp_scss +++ b/addons/website/static/src/scss/website.scss @@ -410,42 +410,6 @@ table.table_desc tr td { } } -// FAQ -.s_faq_collapse { - .accordion .card { - .card-header { - cursor: pointer; - display: inline-block; - width: 100%; - padding: .5em 0; - border-radius: 0; - outline: none; - &:before { - content:'\f056'; - font-family: 'FontAwesome'; - display: inline-block; - margin: 0 .5em 0 .75em; - color: $gray-600; - } - &.collapsed:before { - content:'\f055'; - font-family: 'FontAwesome'; - } - &:hover, - &:focus { - text-decoration: none; - } - } - .card-body { - padding: 1em 2.25em; - } - } - .card-body p:last-child, - .card-body ul:last-child { - margin-bottom: 0; - } -} - // Carousel -> TODO: should be versioned in 000.scss file but how ? .s_carousel, .s_quotes_carousel { diff --git a/addons/website/static/src/snippets/s_faq_collapse/000.scss b/addons/website/static/src/snippets/s_faq_collapse/000.scss new file mode 100644 index 00000000000..af236dea178 --- /dev/null +++ b/addons/website/static/src/snippets/s_faq_collapse/000.scss @@ -0,0 +1,35 @@ + +.s_faq_collapse { + .accordion .card { + .card-header { + cursor: pointer; + display: inline-block; + width: 100%; + padding: .5em 0; + border-radius: 0; + outline: none; + &:before { + content:'\f056'; + font-family: 'FontAwesome'; + display: inline-block; + margin: 0 .5em 0 .75em; + color: $gray-600; + } + &.collapsed:before { + content:'\f055'; + font-family: 'FontAwesome'; + } + &:hover, + &:focus { + text-decoration: none; + } + } + .card-body { + padding: 1em 2.25em; + } + } + .card-body p:last-child, + .card-body ul:last-child { + margin-bottom: 0; + } +} diff --git a/addons/website/views/snippets/s_faq_collapse.xml b/addons/website/views/snippets/s_faq_collapse.xml new file mode 100644 index 00000000000..7cb20fad7b6 --- /dev/null +++ b/addons/website/views/snippets/s_faq_collapse.xml @@ -0,0 +1,53 @@ + + + + + + + + diff --git a/temp_xml b/addons/website/views/snippets/snippets.xml similarity index 92% rename from temp_xml rename to addons/website/views/snippets/snippets.xml index e8eef757d14..c863716563b 100644 --- a/temp_xml +++ b/addons/website/views/snippets/snippets.xml @@ -1,49 +1,6 @@ - -