Skip to content

Commit 16a0e01

Browse files
committed
Fix rendering of icons on devices
1 parent 705caca commit 16a0e01

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Scipy Lecture Notes
3535
margin-right: -20px;
3636
margin-top: -10px;
3737
border-radius: 6px;
38+
font-family: FontAwesome, sans-serif;
39+
min-width: 200pt;
3840
}
3941
4042
div.sidebar ul {

themes/scipy_lectures/static/nature.css_t

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
@import url("basic.css");
1212
@import url("default.css");
1313

14+
/* For FontAwesome */
15+
@font-face {
16+
font-family: 'FontAwesome';
17+
src: url('http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/fonts/fontawesome-webfont.eot?v=4.4.0');
18+
src: url('http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'), url('http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'), url('http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'), url('http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'), url('http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');
19+
font-weight: normal;
20+
font-style: normal;
21+
}
22+
23+
1424
body {
1525
font-size: 110%;
1626
line-height: 1.45;
@@ -785,6 +795,8 @@ div.warning .first {
785795
div.warning:before {
786796
content: "\f071";
787797
margin-right: .5ex;
798+
font-family: FontAwesome;
799+
text-rendering: auto;
788800
}
789801

790802
/************* Code examples *****************/

0 commit comments

Comments
 (0)