diff options
| author | Géry Debongnie <ged@odoo.com> | 2014-06-12 10:39:49 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2014-06-12 10:39:49 +0200 |
| commit | b9135264b9c42cd2de4ed155dd6d8b21cffdd3a3 (patch) | |
| tree | a9b411c9a772c96234618e523128ba4e886d8c3c /addons/web/static/src/css | |
| parent | fe209f9e7ae3cd449e07c00cb46e1936ddd35660 (diff) | |
[FIX] fix scrolling in left menu in Firefox
and possibly also in IE
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 43 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 80 |
2 files changed, 71 insertions, 52 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index e90f6ff432f..7da07716922 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -994,24 +994,22 @@ background: #f0eeee; border-right: 1px solid #afafb6; text-shadow: none; - padding-bottom: 16px; } .openerp .oe_leftbar > div { height: 100%; - overflow-y: auto; - overflow-x: hidden; -} -.openerp a.oe_logo { - position: relative; + display: table; width: 220px; - display: block; + position: relative; +} +.openerp .oe_leftbar > div a.oe_logo { + display: table-row; text-align: center; } -.openerp a.oe_logo img { +.openerp .oe_leftbar > div a.oe_logo img { margin: 14px 0; border: 0; } -.openerp a.oe_logo .oe_logo_edit { +.openerp .oe_leftbar > div a.oe_logo .oe_logo_edit { margin: 14px 0; position: absolute; top: 1px; @@ -1026,22 +1024,35 @@ -ms-box-sizing: border-box; box-sizing: border-box; } -.openerp a.oe_logo:hover .oe_logo_edit_admin { +.openerp .oe_leftbar > div a.oe_logo:hover .oe_logo_edit_admin { display: block; } -.openerp .oe_footer { - position: fixed; +.openerp .oe_leftbar > div > div { + display: table-row; + height: 100%; +} +.openerp .oe_leftbar > div > div > div { + position: relative; + height: 100%; +} +.openerp .oe_leftbar > div > div > div > div.oe_secondary_menus_container { + position: absolute; + top: 0; bottom: 0; - padding: 4px 0; + left: 0; + right: 0; + overflow-x: hidden; + overflow-y: auto; +} +.openerp .oe_leftbar > div .oe_footer { background: #f0eeee; - width: 220px; text-align: center; } -.openerp .oe_footer a { +.openerp .oe_leftbar > div .oe_footer a { font-weight: bold; color: black; } -.openerp .oe_footer a span { +.openerp .oe_leftbar > div .oe_footer a span { color: #a24689; } .openerp .oe_secondary_menu_section { diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 07453d98af1..0e0675971eb 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -844,44 +844,52 @@ $sheet-padding: 16px background: #f0eeee border-right: 1px solid $tag-border text-shadow: none - padding-bottom: 16px > div height: 100% - overflow-y: auto - overflow-x: hidden - a.oe_logo - position: relative - width: 220px - display: block - text-align: center - img - margin: 14px 0 - border: 0 - .oe_logo_edit - margin: 14px 0 - position: absolute - top: 1px - padding: 4px - width: 100% - display: none - text-align: center - color: #eee - background: rgba(37,37,37,0.9) - @include box-sizing(border) - &:hover .oe_logo_edit_admin - display: block - .oe_footer - position: fixed - bottom: 0 - padding: 4px 0 - background: #f0eeee - width: 220px - text-align: center - a - font-weight: bold - color: black - span - color: #a24689 + display: table + width: 220px + position: relative + a.oe_logo + display: table-row + text-align: center + img + margin: 14px 0 + border: 0 + .oe_logo_edit + margin: 14px 0 + position: absolute + top: 1px + padding: 4px + width: 100% + display: none + text-align: center + color: #eee + background: rgba(37,37,37,0.9) + @include box-sizing(border) + &:hover .oe_logo_edit_admin + display: block + > div + display: table-row + height: 100% + > div + position: relative + height: 100% + > div.oe_secondary_menus_container + position: absolute + top: 0 + bottom: 0 + left: 0 + right: 0 + overflow-x: hidden + overflow-y: auto + .oe_footer + background: #f0eeee + text-align: center + a + font-weight: bold + color: black + span + color: #a24689 // }}} // Webclient.leftbar items {{{ |
