Skip to content

Commit d690b86

Browse files
Add copy button to code blocks for improved documentation usability
1 parent 82b9b83 commit d690b86

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs_theme/css/copy-button.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
padding: 2px 6px;
77
cursor: pointer;
88

9-
background: #f7f7f9; /* code block bg */
10-
border: 1px solid #e1e1e8; /* code block border */
9+
background: #f7f7f9;
10+
border: 1px solid #e1e1e8;
1111
border-radius: 3px;
1212

13-
color: #dc322f !important; /* fallback if no span */
13+
color: #dc322f !important;
1414

1515
box-shadow: 0 1px 1px rgba(0,0,0,0.04);
1616
}
1717

18-
/* Separate rule for the span inside the button */
1918
.copy-block-button span {
2019
color: #dc322f !important;
2120
}

0 commit comments

Comments
 (0)