move styling from js to css

This commit is contained in:
Matthias BUSSONNIER 2014-07-16 19:01:39 +02:00
parent 09e866a750
commit a97f4f69cc
2 changed files with 3 additions and 2 deletions

View File

@ -84,8 +84,8 @@ define([
var input_area = $('<div/>').addClass('input_area');
this.code_mirror = new CodeMirror(input_area.get(0), this.cm_config);
// The tabindex=-1 makes this div focusable.
var render_area = $('<div/>').addClass('text_cell_render border-box-sizing').
addClass('rendered_html').attr('tabindex','-1');
var render_area = $('<div/>').addClass('text_cell_render rendered_html')
.attr('tabindex','-1');
inner_cell.append(input_area).append(render_area);
cell.append(inner_cell);
this.element = cell;

View File

@ -17,6 +17,7 @@ div.text_cell_render {
border-style: none;
padding: 0.5em 0.5em 0.5em @code_padding;
color: @text-color;
.border-box-sizing();
}
a.anchor-link:link {