Skip to content

Commit

Permalink
Making non-notebook images to not expand to the entire width, as sugg…
Browse files Browse the repository at this point in the history
…ested by @choldgraf in jupyter-book#65. This applies both to template and built version in docs folder
  • Loading branch information
darribas committed Dec 31, 2018
1 parent 270e601 commit 4ea8c1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/_sass/components/_components.textbook__page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,16 @@ blockquote {

.output_png img,p img
{
width:100% !important;
max-width: 500px;
display: block;
margin-left: auto;
margin-right: auto;
}

.output_png img {
width: 100% !important;
}

.hl-ipython3 pre::before,.output_subarea pre::before,.output_html::before,.output_png::before
{
color:#ccc !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,16 @@ blockquote {

.output_png img,p img
{
width:100% !important;
max-width: 500px;
display: block;
margin-left: auto;
margin-right: auto;
}

.output_png img {
width: 100% !important;
}

.hl-ipython3 pre::before,.output_subarea pre::before,.output_html::before,.output_png::before
{
color:#ccc !important;
Expand Down

0 comments on commit 4ea8c1b

Please sign in to comment.