Skip to content

Commit edff482

Browse files
authoredMar 26, 2019
Merge pull request jupyter-book#161 from choldgraf/css
hide cells updates
2 parents ee7828c + 6b4f64a commit edff482

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎jupyter_book/book_template/_includes/js/copy-button.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
return
3434
}
3535

36-
const codeCells = document.querySelectorAll('div.highlighter-rouge:not(.output) pre')
36+
const codeCells = document.querySelectorAll('div.c-textbook__content > div.highlighter-rouge > div.highlight > pre, div.input_area pre')
3737
codeCells.forEach((codeCell, index) => {
3838
const id = codeCellId(index)
3939
codeCell.setAttribute('id', id)

‎jupyter_book/book_template/_sass/components/_components.hidecells.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ input[type="checkbox"] {
4747
@include transition(0.25s);
4848
}
4949

50-
.plusminus:hover {
50+
div.cell:hover .plusminus {
5151
background: rgb(122, 130, 136);
5252
@include transition(0.25s);
5353
}
@@ -73,4 +73,3 @@ input[type="checkbox"] {
7373
input:checked ~ .plusminus span.pm_v {
7474
@include transform(rotate(-90deg));
7575
}
76-

0 commit comments

Comments
 (0)
Please sign in to comment.