Skip to content

Commit 91703be

Browse files
committed
css: workaround ff bug with copy
1 parent 3048af1 commit 91703be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/css/custom.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
src: local('DM Sans'), url(../fonts/DMSans.ttf) format('truetype');
1111
}
1212

13+
/* Copied from https://github.com/antinomyhq/antinomyhq.github.io/pull/216 */
14+
/* Workaround for https://github.com/facebook/docusaurus/issues/10495 */
15+
/* Firefox copy-paste fix: Force code block lines to behave as block elements */
16+
/* This helps Firefox handle text selection correctly in code blocks */
17+
.prism-code .token-line {
18+
display: block;
19+
user-select: text;
20+
-moz-user-select: text;
21+
-webkit-user-select: text;
22+
}
23+
1324
$f3d_black: #141414;
1425
$f3d_white: #F4F4F4;
1526
$f3d_blue: #788BFF;

0 commit comments

Comments
 (0)