File tree 3 files changed +40
-1
lines changed
3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ require ( "./static/styles/highlight-line.less" ) ;
1
2
var $ = require ( "jquery" ) ;
2
3
3
4
var getLines = function ( lineString ) {
Original file line number Diff line number Diff line change 2
2
"name" : " bit-docs-html-highlight-line" ,
3
3
"version" : " 0.2.3" ,
4
4
"description" : " Highlight a line in source code" ,
5
- "main" : " highlight-line .js" ,
5
+ "main" : " index .js" ,
6
6
"scripts" : {
7
7
"preversion" : " npm test" ,
8
8
"test" : " mocha test.js --reporter spec" ,
Original file line number Diff line number Diff line change
1
+ @import " locate://bit-docs-site/styles/variables.less" ;
2
+
3
+ /* *
4
+ * @parent bit-docs-html-highlight-line/static
5
+ * @module bit-docs-html-highlight-line/static/styles/highlight-line.less
6
+ *
7
+ * @description Base styles for highlight tag.
8
+ *
9
+ * @body
10
+ *
11
+ * Adds styling for the `.expand` element.
12
+ *
13
+ * The `.expand` element gets added onload when the `only` option is used with
14
+ * the highlight tag, and the code block has lines before/after the highlight.
15
+ */
16
+ article {
17
+ code {
18
+ .expand {
19
+ color : black ;
20
+ padding : 4px 0px ;
21
+ text-align : center ;
22
+ background-color : #eee ;
23
+ border-top : 1px solid #ccc ;
24
+ border-bottom : 1px solid #ccc ;
25
+ }
26
+ .expand :before {
27
+ width : 15px ;
28
+ height : 15px ;
29
+ margin : 0 auto ;
30
+ display : block ;
31
+ content : ' ⇅ EXPAND ⇅' ;
32
+ }
33
+ .expand :hover {
34
+ opacity : .6 ;
35
+ cursor : pointer ;
36
+ }
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments