Skip to content

Commit 586d7bf

Browse files
committed
some more fixes for the rendered notebook
1 parent a2a1130 commit 586d7bf

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

docs/examples/code-cells.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,20 @@
355355
"\n",
356356
"\n",
357357
"Latex(\n",
358-
" r\"This is a \\LaTeX{} equation \"\n",
359-
" r\"This is a \\LaTeX{} equation \"\n",
360-
" r\"This is a \\LaTeX{} equation \"\n",
361-
" r\"This is a \\LaTeX{} equation: $a^2 + b^2 = c^2$\"\n",
358+
" r\"A lot of extra text \"\n",
359+
" r\"to test wrapping \"\n",
360+
" r\"when rendered to HTML. \"\n",
361+
" r\"This is an equation: $a^2 + b^2 = c^2$\"\n",
362362
")"
363363
]
364364
},
365+
{
366+
"cell_type": "markdown",
367+
"metadata": {},
368+
"source": [
369+
"Some elements are repeated in the following equation to make it longer. This makes it easier to test whether the equation looks good on a mobile screen, for example, where the width of the equation does not fit within the width of the screen:"
370+
]
371+
},
365372
{
366373
"cell_type": "code",
367374
"execution_count": null,

src/pydata_sphinx_theme/assets/styles/nbsphinx-pydata-theme.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,19 @@ div.nboutput.container {
185185
}
186186
}
187187

188+
.widget-slider {
189+
// Fix accessibility contrast failure. (This was added primarily to
190+
// prevent the theme docs from having an accessibility violation, but
191+
// putting it here extends this fix to other sites that use this theme.)
192+
.noUi-handle {
193+
border-color: var(--pst-gray-600);
194+
}
195+
196+
.noUi-connects {
197+
background: var(--pst-gray-600);
198+
}
199+
}
200+
188201
// Dark theme special-cases
189202
html[data-theme="dark"] & {
190203
&.rendered_html:not(:has(table.dataframe, .xr-wrap)),

0 commit comments

Comments
 (0)