diff options
| author | ddm <ddm@openerp.com> | 2013-08-30 13:21:24 +0200 |
|---|---|---|
| committer | ddm <ddm@openerp.com> | 2013-08-30 13:21:24 +0200 |
| commit | 3db7d635c00ea31454ad2d96872318b8cc36ad57 (patch) | |
| tree | 61ec0a809101c80e8899b0addb69e160dbef9018 /addons/website/static/src/css | |
| parent | 75f8fe3d1bdece074fac3b6d077cf5be056d2ce0 (diff) | |
Mobile preview + SEO: Bootstrap 3
bzr revid: ddm@openerp.com-20130830112124-ht5wnngxa8fwlrdh
Diffstat (limited to 'addons/website/static/src/css')
| -rw-r--r-- | addons/website/static/src/css/editor.css | 50 | ||||
| -rw-r--r-- | addons/website/static/src/css/editor.sass | 92 |
2 files changed, 52 insertions, 90 deletions
diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index 15a7c6aeb6e..fadad2f7d9e 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -229,14 +229,8 @@ left: 0px; } -/* ---- MODAL DIALOGS ---- */ -.oe_stop_scrolling { - height: 100%; - overflow: hidden; -} - /* ---- MOBILE PREVIEW ---- */ -.oe_mobile_preview.modal { +.oe_mobile_preview.modal .modal-content { height: 660px; background-color: black; border: 2px solid; @@ -249,54 +243,40 @@ right: 0; max-width: 330px; } -.oe_mobile_preview.modal .modal-header { +.oe_mobile_preview.modal .modal-content .modal-header { background-color: black; border-bottom: 0; border-top-left-radius: 10px; border-top-right-radius: 10px; } -.oe_mobile_preview.modal .modal-header .oe_mobile_preview_title { +.oe_mobile_preview.modal .modal-content .modal-header .modal-title { color: #1a1a1a; } -.oe_mobile_preview.modal .modal-body { +.oe_mobile_preview.modal .modal-content .modal-header .close { + color: lightgrey; + opacity: 1; +} +.oe_mobile_preview.modal .modal-content .modal-header .close:hover { + color: #e00101; + opacity: 1; +} +.oe_mobile_preview.modal .modal-content .modal-body { background-color: black; max-height: 600px; padding: 0; margin: 0; } -.oe_mobile_preview.modal .modal-footer { - background-color: black; -} - -.oe_mobile_viewport { +.oe_mobile_preview.modal .modal-content .modal-body .oe_mobile_viewport { width: 320px; height: 568px; padding: 5px; border: none; } - -.oe_mobile_preview_header .close { - color: lightgrey; - opacity: 1; -} -.oe_mobile_preview_header .close:hover { - color: #e00101; - opacity: 1; +.oe_mobile_preview.modal .modal-content .modal-footer { + background-color: black; } /* ---- SEO TOOLS ---- */ -.oe_seo_configuration.modal { - width: 100%; - left: 0; - margin-left: 0; - top: 0 !important; - margin-top: 0 !important; - height: 100%; -} -.oe_seo_configuration .modal-body { - max-height: 100%; - height: 100%; -} .oe_seo_configuration ul { list-style: none; } diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index d74fb57234b..dadf36a7cd4 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -200,72 +200,54 @@ .oe_handle.nw,.oe_handle.w,.oe_handle.sw left: 0px -/* ---- MODAL DIALOGS ---- */ - -.oe_stop_scrolling - height: 100% - overflow: hidden - /* ---- MOBILE PREVIEW ---- */ $mobile_preview_background: #000000 $mobile_preview_border: #1A1A1A $icon_close: #E00101 -.oe_mobile_preview.modal - height: 660px - background-color: $mobile_preview_background - border: 2px solid - border-radius: 10px - border-color: $mobile_preview_border - margin: auto - top: 0 - left: 0 - bottom: 0 - right: 0 - max-width: 330px - .modal-header - background-color: $mobile_preview_background - border-bottom: 0 - border-top-left-radius: 10px - border-top-right-radius: 10px - .oe_mobile_preview_title - color: $mobile_preview_border - .modal-body +.oe_mobile_preview + &.modal .modal-content + height: 660px background-color: $mobile_preview_background - max-height: 600px - padding: 0 - margin: 0 - .modal-footer - background-color: $mobile_preview_background - -.oe_mobile_viewport - width: 320px - height: 568px - padding: 5px - border: none - -.oe_mobile_preview_header - .close - color: lightgrey - opacity: 1 - .close:hover - color: $icon_close - opacity: 1 + border: 2px solid + border-radius: 10px + border-color: $mobile_preview_border + margin: auto + top: 0 + left: 0 + bottom: 0 + right: 0 + max-width: 330px + .modal-header + background-color: $mobile_preview_background + border-bottom: 0 + border-top-left-radius: 10px + border-top-right-radius: 10px + .modal-title + color: $mobile_preview_border + .close + color: lightgrey + opacity: 1 + .close:hover + color: $icon_close + opacity: 1 + .modal-body + background-color: $mobile_preview_background + max-height: 600px + padding: 0 + margin: 0 + .oe_mobile_viewport + width: 320px + height: 568px + padding: 5px + border: none + .modal-footer + background-color: $mobile_preview_background /* ---- SEO TOOLS ---- */ $remove_color: $icon_close .oe_seo_configuration - &.modal - width: 100% - left: 0 - margin-left: 0 - top: 0!important - margin-top: 0!important - height: 100% - .modal-body - max-height: 100% - height: 100% ul list-style: none .oe_remove |
