[FIX] various css fixes (advanced search)
authorGéry Debongnie <ged@odoo.com>
Thu, 23 Oct 2014 08:54:06 +0000 (10:54 +0200)
committerGéry Debongnie <ged@odoo.com>
Wed, 29 Oct 2014 07:38:18 +0000 (08:38 +0100)
* dashboard did not display properly kanban in ie
* kanban did not extend to the bottom of the available screen
* custom filters did not display anything different when they were
public (not private)
* some small css problems

addons/board/static/src/css/dashboard.css
addons/board/static/src/css/dashboard.sass
addons/web/static/src/css/base.css
addons/web/static/src/css/base.sass
addons/web/static/src/js/search.js
addons/web_kanban/static/src/css/kanban.css
addons/web_kanban/static/src/css/kanban.sass

index 0230410..2b708ff 100644 (file)
 .openerp .oe_dashboard .oe_action .oe_content {
   padding: 0 12px 12px 12px;
 }
-.openerp .oe_dashboard .oe_action .oe_content .oe-view-manager-views {
-  position: relative;
-}
 .openerp .oe_dashboard .oe_action .oe_content .oe-view-manager {
   display: block;
 }
 .openerp .oe_dashboard .oe_action .oe_content .oe-view-manager-content {
   display: block;
+  position: static;
+}
+.openerp .oe_dashboard .oe_action .oe_content .oe-view-manager-view-kanban {
+  position: static;
 }
 .openerp .oe_dashboard .oe_action .oe_content .oe_list_content > thead {
   border-bottom: 1px;
index f412b1d..1b3e023 100644 (file)
         height: 16px !important
       .oe_content
         padding: 0 12px 12px 12px
-        .oe-view-manager-views
-          position: relative
         .oe-view-manager
           display: block
         .oe-view-manager-content
           display: block
+          position: static
+        .oe-view-manager-view-kanban
+          position: static
         .oe_list_content
           > thead
             border-bottom: 1px
index 7e3e78d..6478289 100644 (file)
 .openerp .oe_leftbar .oe_footer {
   background: #f0eeee;
   text-align: center;
+  flex-shrink: 0;
 }
 .openerp .oe_leftbar .oe_footer a {
   font-weight: bold;
-  color: black;
 }
 .openerp .oe_leftbar .oe_footer a span {
   color: #a24689;
 }
 .openerp .oe_application {
   height: 100%;
+  width: 100%;
   flex-grow: 1;
 }
 .openerp .oe-view-manager {
 }
 .openerp .oe-view-manager .oe-view-manager-content {
   overflow: auto;
+  flex-grow: 1;
+  position: relative;
 }
 .openerp .oe-view-manager .oe-view-manager-debug {
   margin-right: 5px;
 .openerp .oe-view-manager-header .dropdown-menu li a {
   padding: 3px 25px;
 }
+.openerp .oe-view-manager-header .dropdown-menu .oe_searchview_custom_public a:after {
+  font-family: FontAwesome;
+  content: "";
+  color: #666;
+  margin-left: 3px;
+}
 .openerp .oe-view-manager-header .selected {
   display: block;
 }
   margin-left: -21px;
   cursor: pointer;
 }
-.openerp .oe-search-options span.fa-trash-o {
+.openerp .oe-search-options span.remove-filter {
   position: absolute;
   top: 6px;
   right: 10px;
index 1047548..531ef54 100644 (file)
@@ -737,9 +737,9 @@ $sheet-padding: 16px
         .oe_footer
             background: #f0eeee
             text-align: center
+            flex-shrink: 0
             a
                 font-weight: bold
-                color: black
                 span
                     color: #a24689
     // }}}
@@ -845,6 +845,7 @@ $sheet-padding: 16px
         text-decoration: underline
     .oe_application
         height: 100%
+        width: 100%
         flex-grow: 1
     // }}}
     // ViewManager common {{{
@@ -855,6 +856,8 @@ $sheet-padding: 16px
         flex-direction: column
         .oe-view-manager-content
             overflow: auto
+            flex-grow: 1
+            position: relative
         .oe-view-manager-debug
             margin-right: 5px
     .oe-view-manager-header
@@ -870,6 +873,12 @@ $sheet-padding: 16px
                 position: relative
                 a
                     padding: 3px 25px
+            .oe_searchview_custom_public
+                a:after
+                    font-family: FontAwesome
+                    content: "\f0c0"
+                    color: #666
+                    margin-left: 3px
         .selected
             display: block
             a
@@ -1161,7 +1170,7 @@ $sheet-padding: 16px
             .fa-calendar
                 margin-left: -21px
                 cursor: pointer
-        span.fa-trash-o
+        span.remove-filter
             position: absolute
             top: 6px
             right: 10px
index 416e646..8c495fe 100644 (file)
@@ -1742,7 +1742,7 @@ instance.web.search.FavoriteMenu = instance.web.Widget.extend({
             this.$filters[key].addClass(filter.user_id ? 'oe_searchview_custom_private'
                                          : 'oe_searchview_custom_public')
             $('<span>')
-                .addClass('fa fa-trash-o')
+                .addClass('fa fa-trash-o remove-filter')
                 .click(function (event) {
                     event.stopImmediatePropagation(); 
                     self.remove_filter(filter, $filter, key);
index e20f644..09da8ce 100644 (file)
@@ -1,6 +1,14 @@
+.oe-view-manager-view-kanban {
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  right: 0;
+}
+
 .openerp .oe_kanban_view {
   background: white;
-  height: inherit;
+  height: 100%;
 }
 .openerp .oe_kanban_view .oe_kanban_column_higlight {
   background: #eeddf6 !important;
index 9c95d45..ca5a138 100644 (file)
     transition: $transition
 // }}}
 
+.oe-view-manager-view-kanban
+    position: absolute
+    top: 0
+    bottom: 0
+    left: 0
+    right: 0
 .openerp .oe_kanban_view
     // KanbanView {{{
     //background: url(data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAKElEQVQIHWP8DwTv379nAAFBQUEGhnfv3oHEwADEZgJLIRGMIClkLQCr3x2Htp/lLwAAAABJRU5ErkJggg==)
     background: white
-    height: inherit
+    height: 100%
     .oe_kanban_column_higlight
         background: #eeddf6 !important
     .oe_view_nocontent