[IMP] web_editor, website: preserve tabs in modals

This commit is contained in:
stefanorigano
2017-07-10 13:37:40 +02:00
committed by qsm-odoo
parent 9ac73d6873
commit 330e0cccd4
3 changed files with 28 additions and 2 deletions
@@ -215,8 +215,8 @@ body .modal {
width: 80%;
.modal-body {
.nav-tabs .active > a:not([href="#editor-media-icon"]) {
background-color: @o-we-color-paper;
.nav-tabs .active > a[href="#editor-media-icon"] {
background-color: white;
}
li.search {
@@ -159,6 +159,31 @@
}
}
.o-w-preserve-tabs() {
.nav-tabs {
border-bottom: 1px solid @gray-lighter;
> li {
> a {
line-height: 1.42857143;
color: @o-we-color-light;
&:hover {
border-color: @gray-lighter;
}
}
&.active > a {
&, &:hover, &:focus {
color: @o-we-color-normal;
background-color: @o-we-color-paper;
border-color: @gray-lighter;
border-bottom-color: transparent;
}
}
}
}
}
.o-w-preserve-btn() {
.btn:not(.o_btn_preview) {
border-width: 1px;
@@ -43,6 +43,7 @@ body .modal {
.o-w-preserve-btn();
.o-w-preserve-wells();
.o-w-preserve-modals();
.o-w-preserve-tabs();
button.close {
.o-w-close-icon(12px);