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