1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-16 03:30:13 -04:00

make prompts unselectable

This commit is contained in:
Noam Yorav-Raphael 2024-04-08 23:58:04 +03:00 committed by Jan Tojnar
parent a2210a8712
commit faab265365

View file

@ -15,4 +15,14 @@
color: var(--links);
font-weight: bold;
font-size: 2rem;
}
}
/*
Make prompts unselectable in console sections.
This relies on highlight.js applying certain classes on the prompts.
For more details, see https://highlightjs.readthedocs.io/en/latest/css-classes-reference.html#stylable-scopes
*/
.hljs-meta.prompt_ {
user-select: none;
-webkit-user-select: none;
}