fixed styling in firefox
This commit is contained in:
parent
75ce4e33dd
commit
aa0d6e935e
2 changed files with 7 additions and 3 deletions
|
|
@ -4,13 +4,16 @@
|
|||
}
|
||||
|
||||
.ace_editor .ace_gutter {
|
||||
width: 20px;
|
||||
display: inline-block;
|
||||
width: 25px !important;
|
||||
display: block;
|
||||
float: left;
|
||||
text-align: right;
|
||||
padding: 0 3px 0 0;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.ace-row { clear: both; }
|
||||
|
||||
*.ace_gutter-cell {
|
||||
-moz-user-select: -moz-none;
|
||||
-khtml-user-select: none;
|
||||
|
|
|
|||
|
|
@ -71,9 +71,10 @@ exports.render = function(input, mode, theme) {
|
|||
|
||||
for(var ix = 0; ix < length; ix++) {
|
||||
var lineTokens = tokens[ix].tokens;
|
||||
stringBuilder.push("<div class='ace-row'>");
|
||||
stringBuilder.push("<span class='ace_gutter ace_gutter-cell' unselectable='on'>" + (ix+1) + "</span>");
|
||||
textLayer.$renderLine(stringBuilder, 0, lineTokens, true);
|
||||
stringBuilder.push("<br>");
|
||||
stringBuilder.push("</div>");
|
||||
}
|
||||
|
||||
// let's prepare the whole html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue