[FIX] fix display issue in safari
authorGéry Debongnie <ged@odoo.com>
Mon, 27 Oct 2014 09:05:07 +0000 (10:05 +0100)
committerGéry Debongnie <ged@odoo.com>
Wed, 29 Oct 2014 07:38:19 +0000 (08:38 +0100)
safari needs to use css rules prefixed with -webkit-

addons/web/static/src/css/base.css
addons/web/static/src/css/base.sass

index e7442d1..495d95e 100644 (file)
@@ -84,6 +84,7 @@
 .openerp.openerp_webclient_container {
   height: calc(100% - 34px);
   display: -ms-flexbox;
+  display: -webkit-flex;
   display: flex;
 }
 @media (max-width: 768px) {
 }
 .openerp .oe_leftbar {
   display: -ms-flexbox;
+  display: -webkit-flex;
   display: flex;
   -ms-flex-direction: column;
+  -webkit-flex-direction: column;
   flex-direction: column;
+  -webkit-justify-content: space-between;
   justify-content: space-between;
   -ms-flex: 0 0 auto;
+  -webkit-flex-shrink: 0;
   flex-shrink: 0;
+  -webkit-flex-grow: 0;
   flex-grow: 0;
   width: 220px;
   height: 100%;
 }
 .openerp .oe_leftbar a.oe_logo {
   text-align: center;
+  -webkit-flex-shrink: 0;
   flex-shrink: 0;
 }
 .openerp .oe_leftbar a.oe_logo img {
   display: block;
 }
 .openerp .oe_leftbar .oe_secondary_menus_container {
+  -webkit-flex-grow: 1;
   flex-grow: 1;
   overflow-y: auto;
 }
 .openerp .oe_leftbar .oe_footer {
   background: #f0eeee;
   text-align: center;
+  -webkit-flex-shrink: 0;
   flex-shrink: 0;
 }
 .openerp .oe_leftbar .oe_footer a {
 }
 .openerp .oe_application {
   height: 100%;
+  -webkit-flex-grow: 1;
   flex-grow: 1;
   -ms-flex-negative: 1;
   display: inline-block\9;
 .openerp .oe-view-manager {
   width: 100%;
   height: 100%;
+  display: -webkit-flex;
   display: flex;
+  -webkit-flex-direction: column;
   flex-direction: column;
 }
 .openerp .oe-view-manager .oe-view-manager-content {
   overflow: auto;
+  -webkit-flex-grow: 1;
   flex-grow: 1;
   position: relative;
 }
 .openerp .oe-view-manager-header {
   background-color: #f0eeee;
   border-bottom: 1px solid #afafb6;
+  -webkit-flex-shrink: 0;
   flex-shrink: 0;
   width: 100%;
   -webkit-user-select: none;
index ff1dfba..f97d404 100644 (file)
@@ -200,6 +200,7 @@ $sheet-padding: 16px
     &.openerp_webclient_container
         height: calc(100% - 34px)
         display: -ms-flexbox
+        display: -webkit-flex
         display: flex
     @media (max-width: 768px)
         &.openerp_webclient_container
@@ -707,12 +708,17 @@ $sheet-padding: 16px
     // Webclient.leftbar {{{
     .oe_leftbar
         display: -ms-flexbox
+        display: -webkit-flex
         display: flex
         -ms-flex-direction: column
+        -webkit-flex-direction: column
         flex-direction: column
+        -webkit-justify-content: space-between
         justify-content: space-between
         -ms-flex: 0 0 auto
+        -webkit-flex-shrink: 0
         flex-shrink: 0
+        -webkit-flex-grow: 0
         flex-grow: 0
         width: 220px
         height: 100%
@@ -723,6 +729,7 @@ $sheet-padding: 16px
         vertical-align: top\9
         a.oe_logo
             text-align: center
+            -webkit-flex-shrink: 0
             flex-shrink: 0
             img
                 margin: 14px 0
@@ -741,11 +748,13 @@ $sheet-padding: 16px
             &:hover .oe_logo_edit_admin
                 display: block
         .oe_secondary_menus_container
+            -webkit-flex-grow: 1
             flex-grow: 1
             overflow-y: auto
         .oe_footer
             background: #f0eeee
             text-align: center
+            -webkit-flex-shrink: 0
             flex-shrink: 0
             a
                 font-weight: bold
@@ -854,6 +863,7 @@ $sheet-padding: 16px
         text-decoration: underline
     .oe_application
         height: 100%
+        -webkit-flex-grow: 1
         flex-grow: 1
         -ms-flex-negative: 1
         display: inline-block\9
@@ -866,10 +876,13 @@ $sheet-padding: 16px
     .oe-view-manager
         width: 100%
         height: 100%
+        display: -webkit-flex
         display: flex
+        -webkit-flex-direction: column
         flex-direction: column
         .oe-view-manager-content
             overflow: auto
+            -webkit-flex-grow: 1
             flex-grow: 1
             position: relative
             a
@@ -891,6 +904,7 @@ $sheet-padding: 16px
     .oe-view-manager-header
         background-color: rgb(240, 238, 238)
         border-bottom: 1px solid #afafb6
+        -webkit-flex-shrink: 0
         flex-shrink: 0
         width: 100%
         -webkit-user-select: none