Andrew Tomaka
6933084926
Line numbers are not supported by highlight.js. This is hacked in through JavaScript. At page load, the number of new line characters are counted in the code element. Then, JavaScript loops through and adds a number and line break to an empty div that is floated left. This gives the appearence of line numbers.
26 lines
542 B
SCSS
26 lines
542 B
SCSS
// Place all the styles related to the pastes controller here.
|
|
// They will automatically be included in application.css.
|
|
// You can use Sass (SCSS) here: http://sass-lang.com/
|
|
.paste {
|
|
.line-numbers {
|
|
float: left;
|
|
padding: 10px;
|
|
margin: 1px 10px 0 0;
|
|
border-right: 1px solid;
|
|
|
|
line-height: 1.5;
|
|
|
|
font-size: 12px;
|
|
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
|
|
text-align: right;
|
|
}
|
|
pre {
|
|
margin: 0;
|
|
padding: 10px;
|
|
.code {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
}
|