Skip to content

Commit be799ab

Browse files
committed
Add docs for static/styles/highlight-line.less
1 parent 73efba7 commit be799ab

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

static/styles/highlight-line.less

+21-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
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+
*/
116
article {
217
code {
318
.expand {
4-
background-color: #eee;
5-
text-align: center;
19+
color: black;
620
padding: 4px 0px;
21+
text-align: center;
22+
background-color: #eee;
723
border-top: 1px solid #ccc;
824
border-bottom: 1px solid #ccc;
9-
color: black;
1025
}
1126
.expand:before {
12-
content: '⇅ EXPAND ⇅';
13-
display: block;
1427
width: 15px;
1528
height: 15px;
1629
margin: 0 auto;
30+
display: block;
31+
content: '⇅ EXPAND ⇅';
1732
}
18-
.expand:hover{
33+
.expand:hover {
1934
opacity: .6;
2035
cursor: pointer;
2136
}

0 commit comments

Comments
 (0)