Skip to content

Commit

Permalink
Hides copy button in cmd outputs. (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymatthews authored Aug 6, 2024
1 parent a07ad38 commit 0a82afe
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions themes/hextra/assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/* Creates easy-to-read introduction to each page. */
/* ----------------------------------------------- */
.lead {
font-weight: 100;
font-size: 20px;
margin-top: 0px;
}
/* ----------------------------------------------- */



/* Signal outbound links that will take users away from this site. */
/* --------------------------------------------------------------- */
Expand All @@ -19,11 +24,24 @@ article a[href^="https://"]::after
background-size: contain;
display: inline-block;
}
/* --------------------------------------------------------------- */



/* Exclude links within elements with the hextra-cards class */
/* Exclude links within elements with the hextra-cards class. */
/* ---------------------------------------------------------- */
.hextra-cards a[href^="http"]::after,
.hextra-cards a[href^="https://"]::after {
content: none;
background-image: none;
}
/* --------------------------------------------------------------- */
/* ---------------------------------------------------------- */



/* Hide copy button in codeblocks without the `language-XYZ` class. */
/* ---------------------------------------------------------------- */
.hextra-code-block > pre:not([class^="language-"]) + .hextra-code-copy-btn-container {
display: none;
}
/* ---------------------------------------------------------------- */

0 comments on commit 0a82afe

Please sign in to comment.