[IMP] web_editor: review snippets thumbs design

Part of https://github.com/odoo/odoo/pull/55089
task-2157252

Co-authored-by: qsm-odoo <qsm@odoo.com>
This commit is contained in:
stefanorigano (SRI)
2020-07-30 10:12:58 +00:00
committed by qsm-odoo
co-authored by qsm-odoo
parent cc665d51e8
commit c0a11148e0
@@ -71,11 +71,10 @@ body.editor_enable.editor_has_snippets {
.oe_snippet_thumbnail_img {
width: 100%;
height: 0;
padding-bottom: 75%;
background-size: cover;
height: 60px;
background-repeat: no-repeat;
background-size: contain;
background-position: center center;
text-align: center;
overflow: hidden;
}
@@ -160,16 +159,12 @@ body.editor_enable.editor_has_snippets {
}
.o_panel_body {
display: flex; // Needed for too long snippet names
flex-wrap: wrap;
margin-left: -$o-we-sidebar-blocks-content-snippet-spacing;
&::after {
content: "";
display: table;
clear: left;
}
> .oe_snippet {
float: left;
flex: 0 0 auto;
width: percentage(1 / 3);
background-clip: padding-box;
border-left: $o-we-sidebar-blocks-content-snippet-spacing solid transparent;
@@ -180,10 +175,6 @@ body.editor_enable.editor_has_snippets {
cursor: copy;
cursor: grab;
&:nth-child(3n+1) {
clear: left;
}
.oe_snippet_thumbnail_title {
display: block;
padding: $o-we-sidebar-blocks-content-spacing / 2;