From f8243ffc842caa4688c646af9e7a4973ab77c80c Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Fri, 19 Dec 2014 15:39:34 +0100 Subject: [PATCH] [IMP] Add classnames to snippets body and replace mb*, mt* from snippet body's root by proper styling on the classes Backport of 7f07d10 and 6adcccd --- addons/website/static/src/css/snippets.css | 42 +++++++++++++++++ addons/website/static/src/css/snippets.sass | 33 ++++++++++++++ addons/website/views/snippets.xml | 50 ++++++++++----------- 3 files changed, 100 insertions(+), 25 deletions(-) diff --git a/addons/website/static/src/css/snippets.css b/addons/website/static/src/css/snippets.css index 1084e30ed25..83e5a83a38c 100644 --- a/addons/website/static/src/css/snippets.css +++ b/addons/website/static/src/css/snippets.css @@ -786,3 +786,45 @@ table.table_desc tr td:last-child { .oe_snippet.o_block_quotes_slider .oe_snippet_thumbnail_img { background-image: url("/website/static/src/img/blocks/block_quotes_slider.png"); } + +/* snippets default margins */ +.s_banner { + margin-bottom: 32px; +} + +.s_big_message { + margin-top: 16px; + margin-bottom: 16px; +} + +.s_text_block { + margin-top: 16px; + margin-bottom: 16px; +} + +.s_features { + margin-top: 16px; +} + +.s_big_picture { + margin-top: 16px; + margin-bottom: 16px; +} + +.s_three_columns { + margin-top: 16px; + margin-bottom: 16px; +} + +.s_references { + margin-top: 16px; + margin-bottom: 32px; +} + +.s_quotes_slider { + margin-bottom: 0px; +} + +.s_features_grid { + margin-bottom: 16px; +} diff --git a/addons/website/static/src/css/snippets.sass b/addons/website/static/src/css/snippets.sass index 1e876e697eb..6aba0d51daf 100644 --- a/addons/website/static/src/css/snippets.sass +++ b/addons/website/static/src/css/snippets.sass @@ -638,3 +638,36 @@ table.table_desc tr td &.o_block_quotes_slider .oe_snippet_thumbnail_img background-image: url('/website/static/src/img/blocks/block_quotes_slider.png') // }}} + +/* snippets default margins */ +.s_banner + margin-bottom: 32px + +.s_big_message + margin-top: 16px + margin-bottom: 16px + +.s_text_block + margin-top: 16px + margin-bottom: 16px + +.s_features + margin-top: 16px + +.s_big_picture + margin-top: 16px + margin-bottom: 16px + +.s_three_columns + margin-top: 16px + margin-bottom: 16px + +.s_references + margin-top: 16px + margin-bottom: 32px + +.s_quotes_slider + margin-bottom: 0px + +.s_features_grid + margin-bottom: 16px diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 16d92e25524..9e040b57eb7 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -14,7 +14,7 @@
-