summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/less/web_editor.backend.less
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-02-24 11:51:43 +0100
committerqsm-odoo <qsm@odoo.com>2016-02-24 13:09:48 +0100
commit5b65befcd889139152c590490fb8965c9f4b5279 (patch)
tree8c82983ec486274372db96a70620805e3ea80454 /addons/web_editor/static/src/less/web_editor.backend.less
parent40334b3342df66ff93e511a97107e6df6c209e21 (diff)
[REF] web,web_editor,website,report,mass_mailing,mail: LESS
* Convert some CSS to LESS * Split/Join LESS files * Remove duplicates between website and web_editor * UI improvements * Allow simple customizations thanks to LESS var&mixins for website
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.backend.less')
-rw-r--r--addons/web_editor/static/src/less/web_editor.backend.less143
1 files changed, 70 insertions, 73 deletions
diff --git a/addons/web_editor/static/src/less/web_editor.backend.less b/addons/web_editor/static/src/less/web_editor.backend.less
index e9043dc138e..0ff97e327aa 100644
--- a/addons/web_editor/static/src/less/web_editor.backend.less
+++ b/addons/web_editor/static/src/less/web_editor.backend.less
@@ -1,88 +1,85 @@
.oe_form_field_html_text {
- .note-editable {
- min-height: 180px;
- font: initial !important;
- font-family: inherit !important;
- line-height: initial !important;
- color: initial !important;
- p {
- margin: initial;
+ .note-editable {
+ min-height: 180px;
+ font: initial !important;
+ font-family: inherit !important;
+ line-height: initial !important;
+ color: initial !important;
+ p {
+ margin: initial;
+ font-family: 'Lucida Grande', Helvetica, Verdana, Arial, sans-serif;
+ -webkit-margin-before: 0;
+ font-size: 13px;
+ }
+ a, a:hover {
+ color: initial;
+ }
}
- a, a:hover {
- color: initial;
+ .o_readonly {
+ min-height: 1em;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ border: 0;
}
}
-.oe_form_field_html_text .o_readonly {
- min-height: 1em;
+.oe_form_field_html iframe {
+ display: block;
width: 100%;
- margin: 0;
- padding: 0;
border: 0;
+ padding: 0;
+ margin: 0;
+ min-height: 300px;
+ min-height: -webkit-calc(100vh - 170px);
+ min-height: calc(100vh - 170px);
}
-.oe_form_field_html_text .note-editable p {
- font-family: 'Lucida Grande', Helvetica, Verdana, Arial, sans-serif;
- -webkit-margin-before: 0;
- font-size: 13px;
-}
-
-.oe_form_field_html iframe {
- display: block;
- width: 100%;
- border: 0;
- padding: 0;
- margin: 0;
- min-height: 300px;
- min-height: -webkit-calc(100vh - 170px);
- min-height: calc(100vh - 170px);
-}
-.o_form_FieldTextHtml_fullscreen{
- .oe_form_field_html.o_form_fullscreen_ancestor iframe {
- position: absolute !important;
- left: 0 !important;
- right: 0 !important;
- top: 0 !important;
- bottom: 0 !important;
- width: 100% !important;
- min-height: 100% !important;
- z-index: 1001 !important;
- border: 0;
- }
- * {
- display: none;
- }
- .o_form_fullscreen_ancestor {
- display: block !important;
- position: static !important;
- top: 0 !important;
- left: 0 !important;
- overflow: visible !important;
- width: auto !important;
- overflow: hidden !important;
- }
+.o_form_FieldTextHtml_fullscreen {
+ .oe_form_field_html.o_form_fullscreen_ancestor iframe {
+ position: absolute !important;
+ left: 0 !important;
+ right: 0 !important;
+ top: 0 !important;
+ bottom: 0 !important;
+ width: 100% !important;
+ min-height: 100% !important;
+ z-index: 1001 !important;
+ border: 0;
+ }
+ * {
+ display: none;
+ }
+ .o_form_fullscreen_ancestor {
+ display: block !important;
+ position: static !important;
+ top: 0 !important;
+ left: 0 !important;
+ overflow: visible !important;
+ width: auto !important;
+ overflow: hidden !important;
+ }
}
.openerp .oe_form .oe_form_field_html_translate textarea {
- min-width: 60px;
- width: 100%;
- color: #4c4c4c;
- font: normal 13px "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
+ min-width: 60px;
+ width: 100%;
+ color: #4c4c4c;
+ font: normal 13px "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
.openerp .oe_form_readonly .oe_form .oe_form_field_html_translate textarea {
- border:0;
- background: #fff;
+ border: 0;
+ background: #fff;
}
.openerp .oe_form_editable .oe_form .oe_form_field_html_translate {
- > button {
- float: right;
- margin: -6px -3px 0 0;
- }
- > .note-editable {
- border: 1px solid #ccc;
- min-height: 22px;
- border-radius: 3px;
- }
-}
-
-.openerp .oe_form_editable .oe_form .oe_form_field_html_translate .note-editable [contentEditable='true']:hover {
- .box-shadow(#DDCC33 0 0 5px 2px inset);
+ > button {
+ float: right;
+ margin: -6px -3px 0 0;
+ }
+ > .note-editable {
+ border: 1px solid #ccc;
+ min-height: 22px;
+ border-radius: 3px;
+ }
+ .note-editable [contentEditable='true']:hover {
+ box-shadow: #DDCC33 0 0 5px 2px inset;
+ }
}