viewmanager refactor part1

bzr revid: al@openerp.com-20120409184445-nri84zeylu6ur21d
This commit is contained in:
Antony Lesuisse
2012-04-09 20:44:45 +02:00
parent bc92baa084
commit d4b103fb4d
6 changed files with 86 additions and 300 deletions
+11 -140
View File
@@ -920,6 +920,17 @@
.openerp2 .oe_view_manager_header .oe_view_manager_switch {
float: right;
}
.openerp2 .oe_view_manager_header .oe_view_manager_buttons {
padding-right: 8px;
float: left;
margin-right: 12px;
}
.openerp2 .oe_view_manager_header .oe_view_manager_sidebar {
display: block;
}
.openerp2 .oe_view_manager_header .oe_view_manager_pager {
float: right;
}
.openerp2 .oe_form_dropdown_section {
position: relative;
display: inline-block;
@@ -1162,149 +1173,9 @@
.openerp2 .oe_searchview .oe_searchview_drawer .oe_searchview_advanced.oe_opened div {
display: block;
}
.openerp2 .searcharea {
position: relative;
float: right;
}
.openerp2 .searcharea .toggle-button {
position: absolute;
top: 10px;
right: 8px;
width: 0;
height: 0;
display: inline-block;
content: "&darr";
vertical-align: top;
border-top: 5px solid #4c4c4c;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
filter: alpha(opacity=50);
opacity: 0.5;
}
.openerp2 .searcharea .toggle-button:hover {
filter: alpha(opacity=80);
opacity: 0.8;
}
.openerp2 .searcharea .searchmenu {
display: none;
position: absolute;
top: 30px;
right: 7px;
border: 1px solid #afafb6;
width: 432px;
overflow-x: hidden;
z-index: 900;
background: white;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.openerp2 .searcharea .searchmenu .dropdown-menu input {
width: 120px;
}
.openerp2 .searcharea .searchmenu input {
width: 25px;
}
.openerp2 .searcharea .searchmenu .toggle:before {
margin-left: 0;
margin-top: 9px;
}
.openerp2 .searcharea .searchmenu .open:before {
margin-top: 14px;
}
.openerp2 .searcharea .searchmenu .menu:last-child {
margin-bottom: 0;
}
.openerp2 .searcharea .searchmenu .menu li {
padding-left: 12px;
margin-right: 8px;
}
.openerp2 .searcharea .searchmenu .custom-filters a:hover:after {
content: "d";
font-family: "mnmliconsRegular" !important;
font-size: 18px;
font-weight: 300 !important;
float: right;
margin-top: -1px;
}
.openerp2 .searcharea .searchmenu a {
height: 14px;
line-height: 14px;
padding: 3px 6px;
color: #4c4c4c;
}
.openerp2 .searcharea .searchmenu a:hover {
text-decoration: none;
background-color: #f0f0fa;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0f0fa), to(#eeeef6));
background-image: -webkit-linear-gradient(top, #f0f0fa, #eeeef6);
background-image: -moz-linear-gradient(top, #f0f0fa, #eeeef6);
background-image: -ms-linear-gradient(top, #f0f0fa, #eeeef6);
background-image: -o-linear-gradient(top, #f0f0fa, #eeeef6);
background-image: linear-gradient(to bottom, #f0f0fa, #eeeef6);
}
.openerp2 .searcharea .searchmenu p {
margin-left: 12px;
}
.openerp2 .searcharea .searchmenu input, .openerp2 .searcharea .searchmenu textarea {
height: 14px;
padding: 2px;
font-size: 11px;
line-height: 18px;
border: 1px solid #cccccc;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.openerp2 .searcharea .searchmenu .column {
width: 48%;
}
.openerp2 .searcharea .searchmenu .full-column {
margin: 8px 0;
padding: 4px;
}
.openerp2 input.searchbox {
width: 410px;
border: 1px solid #ababab;
margin-top: 0;
margin-bottom: 0;
padding: 4px 19px;
font-size: 13px;
background: url("/web/static/src/img/search.png") no-repeat 5px;
background-color: white;
-moz-border-radius: 13px;
-webkit-border-radius: 13px;
border-radius: 13px;
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
}
.openerp2 .search-clear {
position: absolute;
top: 7px;
right: 24px;
width: 12px;
height: 12px;
cursor: pointer;
display: none;
}
.openerp2 .oe_form_header {
padding: 8px;
}
.openerp2 .oe_form_header .oe_form_buttons {
padding-right: 8px;
float: left;
margin-right: 12px;
}
.openerp2 .oe_form_header .oe_form_pager {
float: right;
}
.openerp2 .oe_form_header .oe-sidebar-attachments {
display: none;
}
.openerp2 .oe_form_invalid input, .openerp2 .oe_form_invalid select, .openerp2 .oe_form_invalid textarea {
background-color: #ff6666 !important;
border: 1px solid #dd0000 !important;
+12 -117
View File
@@ -667,7 +667,7 @@ $colour4: #8a89ba
color: #fff
text-shadow: 0 1px 2px rgba(0,0,0,0.4)
// }}}
// ViewManager Header {{{
// ViewManager.header {{{
.oe_view_manager_header
border-top: 1px solid #cacaca
border-bottom: 1px solid #cacaca
@@ -721,13 +721,21 @@ $colour4: #8a89ba
padding: 0 8px
.oe_view_manager_switch
float: right
.oe_view_manager_buttons
padding-right: 8px
float: left
margin-right: 12px
.oe_view_manager_sidebar
display: block
.oe_view_manager_pager
float: right
// }}}
// ViewManager Dropdown {{{
// ViewManager.sidebar {{{
.oe_form_dropdown_section
position: relative
display: inline-block
margin-right: 4px
.oe_dropdown_toggle:after
width: 0
height: 0
@@ -739,11 +747,9 @@ $colour4: #8a89ba
border-right: 4px solid transparent
border-top: 4px solid white
@include opacity(0.5)
margin-top: 7px
margin-left: 6px
border-top-color: #404040
.oe_dropdown_menu
display: none
position: absolute
@@ -951,120 +957,9 @@ $colour4: #8a89ba
div
display: block
// }}}
// SearchView mit {{{
.searcharea
position: relative
float: right
.toggle-button
position: absolute
top: 10px
right: 8px
width: 0
height: 0
display: inline-block
content: "&darr"
vertical-align: top
border-top: 5px solid #4c4c4c
border-left: 5px solid transparent
border-right: 5px solid transparent
@include opacity(0.5)
&:hover
@include opacity(0.8)
.searchmenu
display: none
position: absolute
top: 30px
right: 7px
border: 1px solid #afafb6
width: 432px
overflow-x: hidden
z-index: 900
background: white
@include radius(5px)
@include box-shadow(0 1px 4px rgba(0,0,0,0.3))
.dropdown-menu
input
width: 120px
input
width: 25px
.toggle:before
margin-left: 0
margin-top: 9px
.open:before
margin-top: 14px
.menu
&:last-child
margin-bottom: 0
li
padding-left: 12px
margin-right: 8px
.custom-filters
a:hover:after
content: 'd'
font-family: "mnmliconsRegular" !important
font-size: 18px
font-weight: 300 !important
float: right
margin-top: -1px
a
height: 14px
line-height: 14px
padding: 3px 6px
color: #4c4c4c
&:hover
text-decoration: none
@include vertical-gradient(#f0f0fa, #eeeef6)
p
margin-left: 12px
input, textarea
height: 14px
padding: 2px
font-size: 11px
line-height: 18px
border: 1px solid #ccc
@include radius(3px)
.column
width: 48%
.full-column
margin: 8px 0
padding: 4px
input.searchbox
width: 410px
border: 1px solid #ababab
margin-top: 0
margin-bottom: 0
padding: 4px 19px
font-size: 13px
background: url('/web/static/src/img/search.png') no-repeat 5px
background-color: white
@include radius(13px)
@include box-shadow(0 1px 2px rgba(0,0,0,0.2) inset)
.search-clear
position: absolute
top: 7px
right: 24px
width: 12px
height: 12px
cursor: pointer
display: none
// }}}
// FormView.header {{{
// FormView.body {{{
.oe_form_header
padding: 8px
.oe_form_buttons
padding-right: 8px
float: left
margin-right: 12px
.oe_form_pager
float: right
// FIXME
.oe-sidebar-attachments
display: none
// }}}
// FormView.body {{{
.oe_form_invalid
input, select, textarea
background-color: #F66 !important