diff options
| author | Xavier Morel <xmo@openerp.com> | 2013-10-04 16:50:46 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2013-10-04 16:50:46 +0200 |
| commit | 0448dff01119d3314f9ebac1b02acc94176f2078 (patch) | |
| tree | 80f1a92d0ffe26b5abe56c6129a9664049b6dc43 /addons/website/static/src/css/editor.sass | |
| parent | e826d0e7f8c5899be157a288c79f729da026d5b2 (diff) | |
| parent | a7206d62fa5e858e6f0c884cb4f7c387d328167b (diff) | |
[MERGE] from parent
bzr revid: xmo@openerp.com-20131004145046-7cab234xeotx9v7t
Diffstat (limited to 'addons/website/static/src/css/editor.sass')
| -rw-r--r-- | addons/website/static/src/css/editor.sass | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 4f962f02151..c8854b210ec 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -26,9 +26,7 @@ .navbar.navbar-inverse .cke_top background: transparent border: none - box-shadow: none - -webkit-box-shadow: none - -moz-box-shadow: none + +box-shadow(none) /* ---- OpenERP Style ---- */ @@ -42,13 +40,13 @@ margin: 0 z-index: 20000 @include background(#414141, linear-gradient(#646060, #262626)) - box-sizing: border-box + +box-sizing(border-box) li display: inline color: #eee &:hover background: rgba(0,0,0,0.2) - text-shadow: black 0px 0px 3px + +text-shadow(black 0px 0px 3px) color: white .oe_website_editorbar .oe_rte_toolbar @@ -145,7 +143,7 @@ table.editorbar-panel right: 0px top: 50px background: rgb(40,40,40) - box-shadow: 0px 10px 10px -10px black inset + +box-shadow(0px 10px 10px -10px black inset) z-index: 1010 overflow: hidden &:hover @@ -162,14 +160,15 @@ table.editorbar-panel padding: 2px 10px !important width: 100% display: block + border: 0 position: fixed z-index: 1 - .pill-content + border: 0 + .tab-content margin-top: 24px display: inline-block white-space: nowrap > div - display: inline-block background: rgb(0,0,0) padding: 5px label @@ -192,8 +191,7 @@ table.editorbar-panel margin-top: 0px position: relative overflow: hidden - -webkit-user-select: none - user-select: none + +user-select(none) cursor: move pointer-events: none .oe_snippet_thumbnail @@ -207,7 +205,7 @@ table.editorbar-panel font-size: 12px display: block .oe_snippet_thumbnail_img - box-shadow: inset 0px 0px 0px 3px #333333 + +box-shadow(inset 0px 0px 0px 3px #333333) span, div line-height: 18px & > :not(.oe_snippet_thumbnail) @@ -247,7 +245,7 @@ table.editorbar-panel .oe_drop_zone, .oe_drop_zone_style background: rgba(153, 0, 255, 0.17) - border-radius: 3px + +border-radius(3px) &.oe_hover background: rgba(0, 255, 133, 0.22) z-index: 1001 @@ -256,6 +254,7 @@ table.editorbar-panel color: white height: 48px margin-bottom: 32px + padding-top: 12px /* ---- SNIPPET MANIPULATOR ---- */ @@ -263,15 +262,15 @@ table.editorbar-panel display: none position: absolute background: transparent - border-radius: 3px + +border-radius(3px) @include transition(opacity 100ms linear) - box-sizing: border-box + +box-sizing(border-box) pointer-events: none &.oe_active display: block border-style: dashed border-width: 1px - box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.3), 0px 0px 0px 1px rgba(255,255,255,0.3) inset + +box-shadow(0px 0px 0px 1px rgba(255,255,255,0.3), 0px 0px 0px 1px rgba(255,255,255,0.3) inset) border-color: rgba(153, 0, 255, 0.5) .oe_handle display: block !important @@ -283,7 +282,7 @@ table.editorbar-panel display: block background: rgba(255, 255, 255, 1) border: solid 1px rgba(153, 0, 255, 1) - border-radius: 8px + +border-radius(8px) width: 16px height: 16px margin: -8px @@ -330,7 +329,7 @@ table.editorbar-panel top: 50% left: 50% display: block - box-sizing: border-box + +box-sizing(border-box) width: 8px height: 8px margin: -4px @@ -380,7 +379,7 @@ $icon_close: #E00101 height: 660px background-color: $mobile_preview_background border: 2px solid $mobile_preview_border - border-radius: 10px + +border-radius(10px) margin: auto top: 0 left: 0 @@ -390,16 +389,16 @@ $icon_close: #E00101 .modal-header background-color: $mobile_preview_background border-bottom: 0 - border-top-left-radius: 10px - border-top-right-radius: 10px + +border-top-left-radius(10px) + +border-top-right-radius(10px) .modal-title color: $mobile_preview_border .close color: lightgrey - opacity: 1 + +opacity(1) .close:hover color: $icon_close - opacity: 1 + +opacity(1) .modal-body background-color: $mobile_preview_background max-height: 600px @@ -429,9 +428,9 @@ $highlighted_text_color: #ffffff cursor: pointer .oe_seo_keyword padding: .2em .4em .2em .5em - border-radius: .4em + +border-radius(.4em) .keyword-in-title - background-color: $in_title_color + background-color: $in_title_color+pointer color: $highlighted_text_color .keyword-in-description background-color: $in_description_color @@ -446,6 +445,10 @@ $ace_width: 720px $editorbar_height: 40px // TODO Fix => might break with themes $navbar_height: 51px +@mixin pointer-events($type: none) + $type: unquote($type) + @include experimental(pointer-events, $type,-moz, -webkit, not -o, not -ms, -khtml, official) + @mixin editor-font font-size: 14px @@ -453,7 +456,7 @@ $navbar_height: 51px line-height: normal .oe_ace_view_editor @include transition(all 0.2s ease-in) - opacity: 0.3 + +opacity(0.3) position: fixed top: $navbar_height right: 0 @@ -481,11 +484,10 @@ $navbar_height: 51px left: 0 width: $ace_width &:hover - opacity: 1 + +opacity(1) &.oe_ace_open width: $ace_width &.oe_ace_closed width: 0 - opacity: 0 - + +opacity(0) // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: |
