1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

add code block line numbering option to

This commit is contained in:
Rokt33r
2016-05-04 00:47:22 +09:00
parent 831bec5baf
commit f904fd00e5
6 changed files with 36 additions and 19 deletions

View File

@@ -382,6 +382,9 @@ infoButton()
color lighten(inactiveTextColor, 10%)
user-select none
font-size 14px
&.lineNumbered
.lineNumber
display block
.CodeEditor
absolute top left right bottom
border-top solid 1px borderColor

View File

@@ -135,19 +135,18 @@ marked()
&>pre
border none
margin -5px
&>span
&>span.lineNumber
font-family Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, monospace
display block
display none
float left
margin 0 0.5em 0 -0.5em
border-right 1px solid
text-align right
font-size 0.9em
line-height 1.65em
&>span
display block
padding 0 .5em 0 1em
&>.cl
display block
clear both
table
width 100%
margin 15px 0 25px