File tree Expand file tree Collapse file tree 2 files changed +33
-16
lines changed Expand file tree Collapse file tree 2 files changed +33
-16
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ div.body {
7
7
8
8
div .body p {
9
9
font-size : 15px ;
10
+ line-height : 20px ;
10
11
}
11
12
12
13
span .inputnumrole {
@@ -17,11 +18,17 @@ span.outputnumrole {
17
18
color : # D84315
18
19
}
19
20
20
- .intro {
21
- background-color : # d8ebf3 ;
22
- padding : 12px ;
23
- border : 1px solid # 9dcde1 ;
24
- border-radius : 6px ;
25
- margin-top : 32px ;
26
- margin-bottom : 32px ;
21
+ button {
22
+ border-radius : 5px ;
23
+ border-width : 0 ;
24
+ padding : 6px 10px 6px 10px ;
25
+ cursor : pointer;
26
+ margin-right : 12px ;
27
+ color : # ffffff ;
28
+ font-size : 10pt ;
29
+ background-image : linear-gradient (to bottom, # FFA47D 0% , # FF7D45 100% )
30
+ }
31
+
32
+ # spacer {
33
+ margin-top : 24px ;
27
34
}
Original file line number Diff line number Diff line change 1
1
{% - extends ' display_priority.tpl' -%}
2
2
3
3
{% block header %}
4
+
4
5
{ # Remove the exec_ prefix #}
5
6
{% set nb_name = resources.metadata.name[5:] %}
6
- `Download tutorial notebook <../_static/{ { nb_name } }/{ { nb_name } }.ipynb>`_ -
7
- `Interactive tutorial notebook <https: //beta.mybinder.org /v2 /gh /astropy /astropy-tutorials /master?filepath =/tutorials/notebooks/{{ nb_name }} /{ { nb_name } } .ipynb >`_
7
+
8
+ .. raw:: html
9
+
10
+ <a href =" ../_static/{ { nb_name } } /{ { nb_name } } .ipynb" ><button id =" download" >Download tutorial notebook</button ></a >
11
+ <a href =" https://beta.mybinder.org/v2/gh/astropy/astropy-tutorials/master?filepath=/tutorials/notebooks/{ { nb_name } } /{ { nb_name } } .ipynb" ><button id =" binder" >Interactive tutorial notebook</button ></a >
12
+
13
+ <div id =" spacer" ></div >
8
14
9
15
.. role:: inputnumrole
10
16
.. role:: outputnumrole
11
17
12
18
.. _{ {nb_name} }:
13
19
{% endblock %}
14
20
21
+ {% block footer %}
22
+
23
+ .. raw:: html
24
+
25
+ <div id =" spacer" ></div >
26
+
27
+ <a href =" ../_static/{ { nb_name } } /{ { nb_name } } .ipynb" ><button id =" download" >Download tutorial notebook</button ></a >
28
+ <a href =" https://beta.mybinder.org/v2/gh/astropy/astropy-tutorials/master?filepath=/tutorials/notebooks/{ { nb_name } } /{ { nb_name } } .ipynb" ><button id =" binder" >Interactive tutorial notebook</button ></a >
29
+
30
+ {% endblock %}
31
+
15
32
{% block in_prompt %}
16
33
17
34
:inputnumrole:`In[{ { cell[' execution_count' ] } }]:`
87
104
{% endblock data_html %}
88
105
89
106
{% block markdowncell scoped %}
90
- {% if cell.source.startswith(' # Introduction' ) %}
91
- .. rst-class:: intro
92
-
93
- { { cell.source | markdown2rst } }
94
- {% else %}
95
107
{ { cell.source | markdown2rst } }
96
- {% endif %}
97
-
98
108
{% endblock markdowncell %}
99
109
100
110
{% - block rawcell scoped -%}
You can’t perform that action at this time.
0 commit comments