Skip to content

Commit

Permalink
hide copy-button in sphinx-immaterial theme (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed May 24, 2023
1 parent e1179c2 commit 05957b0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/nbsphinx/_static/nbsphinx-code-cells.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ div.nblast.container {
}

/* input prompt */
div.nbinput.container div.prompt pre {
div.nbinput.container div.prompt pre,
div.nbinput.container div.prompt pre > code {
color: #307FC1;
}

/* output prompt */
div.nboutput.container div.prompt pre {
div.nboutput.container div.prompt pre,
div.nboutput.container div.prompt pre > code {
color: #BF5B3D;
}

Expand Down Expand Up @@ -204,8 +206,9 @@ div.nboutput.container div.output_area > div[class^='highlight']{
overflow-y: hidden;
}

/* hide copybtn icon on prompts (needed for 'sphinx_copybutton') */
.prompt .copybtn {
/* hide copybtn icon on prompts (needed for 'sphinx_copybutton' ext and `sphinx_immaterial` theme) */
.prompt .copybtn,
.prompt .md-clipboard.md-icon {
display: none;
}

Expand Down

0 comments on commit 05957b0

Please sign in to comment.