[IMP] website: snippet: css auto hide
bzr revid: chm@openerp.com-20130916115148-wx6a1ux1iq0dupyg
This commit is contained in:
@@ -125,6 +125,7 @@ table.editorbar-panel td.selected {
|
||||
|
||||
/* ---- SNIPPET EDITOR ---- */
|
||||
#oe_snippets {
|
||||
display: none;
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
@@ -147,6 +148,10 @@ table.editorbar-panel td.selected {
|
||||
height: 140px;
|
||||
}
|
||||
|
||||
#website-top-navbar:hover #oe_snippets {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.oe_snippet {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
||||
@@ -116,7 +116,9 @@ table.editorbar-panel
|
||||
|
||||
/* ---- SNIPPET EDITOR ---- */
|
||||
|
||||
|
||||
#oe_snippets
|
||||
display: none
|
||||
position: fixed
|
||||
left: 0px
|
||||
right: 0px
|
||||
@@ -135,6 +137,9 @@ table.editorbar-panel
|
||||
.pill-content
|
||||
height: 140px
|
||||
|
||||
#website-top-navbar:hover #oe_snippets
|
||||
display: block
|
||||
|
||||
.oe_snippet
|
||||
display: inline-block
|
||||
vertical-align: top
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
website.EditorBar.include({
|
||||
edit: function () {
|
||||
window.snippets = this.snippets = new website.snippet.BuildingBlock(this);
|
||||
this.snippets.insertAfter(this.$el);
|
||||
this.snippets.show();
|
||||
this.snippets.appendTo(this.$el);
|
||||
return this._super.apply(this, arguments);
|
||||
},
|
||||
save: function () {
|
||||
@@ -96,14 +95,10 @@
|
||||
$el.css($target.offset());
|
||||
},
|
||||
show: function () {
|
||||
this.$el.css('margin-top', '0px');
|
||||
$('body').trigger('resize');
|
||||
$("body").css('padding-top', '220px');
|
||||
this.$el.css("display", "");
|
||||
},
|
||||
hide: function () {
|
||||
this.$el.css('margin-top', '-170px');
|
||||
$("body").css('padding-top', '50px');
|
||||
$('body').trigger('resize');
|
||||
this.$el.hide();
|
||||
},
|
||||
|
||||
bind_snippet_click_editor: function () {
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
<!-- Snippets -->
|
||||
|
||||
<t t-name="website.snippets">
|
||||
<div id='oe_snippets' style="margin-top: -170px">
|
||||
<div id='oe_snippets'>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a data-toggle="pill" href="#snippet_structure">Structure</a></li>
|
||||
<li class=""><a data-toggle="pill" href="#snippet_content">Content</a></li>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="website.editorbar">
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div id="website-top-navbar" class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div id="website-top-view">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-edit-collapse">
|
||||
|
||||
Reference in New Issue
Block a user