diff --git a/docs/_static/try_examples.css b/docs/_static/try_examples.css index b99819e..9e9ec07 100644 --- a/docs/_static/try_examples.css +++ b/docs/_static/try_examples.css @@ -4,6 +4,9 @@ } .try_examples_button { + text-decoration: none; + display: inline-block; + cursor: pointer; background-color: var(--jupyter-light-primary); border: none; padding: 5px 10px; diff --git a/jupyterlite_sphinx/jupyterlite_sphinx.css b/jupyterlite_sphinx/jupyterlite_sphinx.css index ca5d462..c17b869 100644 --- a/jupyterlite_sphinx/jupyterlite_sphinx.css +++ b/jupyterlite_sphinx/jupyterlite_sphinx.css @@ -75,3 +75,9 @@ display: none; } } + +a.try_examples_button { + text-decoration: none; + display: inline-block; + cursor: pointer; +} diff --git a/jupyterlite_sphinx/jupyterlite_sphinx.py b/jupyterlite_sphinx/jupyterlite_sphinx.py index 281117e..bc37e05 100644 --- a/jupyterlite_sphinx/jupyterlite_sphinx.py +++ b/jupyterlite_sphinx/jupyterlite_sphinx.py @@ -143,9 +143,10 @@ def __init__( def html(self): return ( - '" + f'' + f"{self.button_text}" ) @@ -322,9 +323,10 @@ def __init__( def html(self): return ( - '" + f'' + f"{self.button_text}" ) @@ -675,17 +677,23 @@ def run(self): # Button with the onclick event to swap embedded notebook back to examples. go_back_button_html = ( - '" + '' + 'Go Back' ) + full_screen_button_html = ( - '" + f'' + "Open In Tab" ) # Button with the onclick event to swap examples with embedded notebook.