diff options
| author | qsm-odoo <qsm@odoo.com> | 2015-11-02 13:40:36 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2015-11-02 16:02:10 +0100 |
| commit | c52e814d24176e756341f9442c7b93f0b462bcbd (patch) | |
| tree | b466425a31f5384b3b56443cb6d883932de9ffd1 /addons/web_editor/static/src/css | |
| parent | d0c9caf1478a88bfaabe42557c637e4b59e16313 (diff) | |
[FIX] web_editor: snippet options menu layout
Layout of snippet options buttons was wrong (spaces / linebreak / ...)
Diffstat (limited to 'addons/web_editor/static/src/css')
| -rw-r--r-- | addons/web_editor/static/src/css/snippets.css | 30 | ||||
| -rw-r--r-- | addons/web_editor/static/src/css/snippets.sass | 27 |
2 files changed, 33 insertions, 24 deletions
diff --git a/addons/web_editor/static/src/css/snippets.css b/addons/web_editor/static/src/css/snippets.css index b4d74eecac6..e203e514e87 100644 --- a/addons/web_editor/static/src/css/snippets.css +++ b/addons/web_editor/static/src/css/snippets.css @@ -405,23 +405,27 @@ } .oe_overlay .oe_overlay_options { position: absolute; - left: 50% !important; - text-align: center; - top: -20px; + width: 100%; + top: -35px; z-index: 1002; } .oe_overlay .oe_overlay_options > .btn-group { - left: -50%; - white-space: nowrap; -} -.oe_overlay .oe_overlay_options > .btn-group > a { + display: -ms-flexbox; + display: -moz-box; + display: -webkit-box; + display: -webkit-flex; + display: flex; + -moz-justify-content: center; + -webkit-justify-content: center; + justify-content: center; +} +.oe_overlay .oe_overlay_options > .btn-group > * { cursor: pointer; - display: inline-block; - float: none; - margin: 0 -3px; -} -.oe_overlay .oe_overlay_options > .btn-group > div { - float: left; + -ms-flex: 0 0 auto; + -moz-flex: 0 0 auto; + -webkit-box-flex: 0; + -webkit-flex: 0 0 auto; + flex: 0 0 auto; } .oe_overlay .oe_overlay_options .btn, .oe_overlay .oe_overlay_options a { cursor: pointer; diff --git a/addons/web_editor/static/src/css/snippets.sass b/addons/web_editor/static/src/css/snippets.sass index ed5bd46a525..710c358a527 100644 --- a/addons/web_editor/static/src/css/snippets.sass +++ b/addons/web_editor/static/src/css/snippets.sass @@ -311,20 +311,25 @@ .oe_overlay_options position: absolute - left: 50% !important - text-align: center - top: -20px + width: 100% + top: -35px z-index: 1002 > .btn-group - left: -50% - white-space: nowrap - > a + display: -ms-flexbox + display: -moz-box + display: -webkit-box + display: -webkit-flex + display: flex + -moz-justify-content: center + -webkit-justify-content: center + justify-content: center + > * cursor: pointer - display: inline-block - float: none - margin: 0 -3px - > div - float: left + -ms-flex: 0 0 auto + -moz-flex: 0 0 auto + -webkit-box-flex: 0 + -webkit-flex: 0 0 auto + flex: 0 0 auto .btn, a cursor: pointer .dropdown |
