Fixes in the Redactor styling

This commit is contained in:
alekseybobkov 2014-09-18 20:03:59 -07:00
parent d31f2eb97e
commit e383f0bd01
6 changed files with 18 additions and 8 deletions

View File

@ -13044,7 +13044,7 @@ div.popover-overlay {
}
.fancy-layout .field-richeditor {
border: none;
border-left: 1px solid #e0e0e0;
border-left: 1px solid #e0e0e0 !important;
}
.fancy-layout .field-richeditor,
.fancy-layout .field-richeditor .redactor_box,

View File

@ -448,7 +448,7 @@
.field-richeditor {
border: none;
border-left: 1px solid @color-form-field-border;
border-left: 1px solid @color-form-field-border!important;
&, .redactor_box, .redactor_toolbar {
.border-radius(0);

View File

@ -56,6 +56,7 @@
}
.redactor_box_fullscreen {
z-index: 1060 !important;
width: 100%!important;
}
#redactor_modal_overlay,
#redactor_modal,
@ -1226,8 +1227,8 @@ body .redactor_air .redactor_toolbar {
.field-richeditor.stretch .redactor_box {
display: block;
position: relative;
height: 100%;
width: 100%;
height: 100%!important;
width: 100%!important;
overflow: hidden;
}
.field-richeditor.stretch .redactor_box .redactor_toolbar {
@ -1239,6 +1240,10 @@ body .redactor_air .redactor_toolbar {
}
.field-richeditor.stretch .redactor_box .redactor_editor {
height: 100% !important;
width: 100%!important;
left: 0;
top: 0;
position: absolute;
}
.field-richeditor.stretch .redactor_box iframe,
.field-richeditor.stretch .redactor_box textarea {

View File

@ -80,14 +80,14 @@
}
RichEditor.prototype.build = function() {
var $editors = $('textarea', this.$el),
var $editors = $('.redactor_editor', this.$el),
$toolbar = $('.redactor_toolbar', this.$el)
if (!$editors.length)
return
if (this.$el.hasClass('stretch')) {
$editors.css('padding-top', $toolbar.height())
$editors.css('top', $toolbar.height()+1)
}
}

View File

@ -77,6 +77,7 @@
.redactor_box_fullscreen {
z-index: @richeditor-zindex !important;
width: 100%!important;
}
#redactor_modal_overlay,

View File

@ -41,8 +41,8 @@
.redactor_box {
display: block;
position: relative;
height: 100%;
width: 100%;
height: 100%!important;
width: 100%!important;
overflow: hidden;
.redactor_toolbar {
@ -55,6 +55,10 @@
.redactor_editor {
height: 100% !important;
width: 100%!important;
left: 0;
top: 0;
position: absolute;
}
iframe, textarea {