Skip to content

Commit

Permalink
fonts are now always fetched via the network
Browse files Browse the repository at this point in the history
motivation:
- less traffic is piped via the app
- less local customization
- less coupling to choices of remark
- easier and more intuitive customization

disadvantage:
- in complete offline mode the fonts may not be available and
  the slides may use default font instead,
  but today there is even network on planes
  • Loading branch information
bast committed Oct 20, 2018
1 parent 009dbd7 commit 4e16b9c
Show file tree
Hide file tree
Showing 27 changed files with 8 additions and 171 deletions.
168 changes: 0 additions & 168 deletions cicero/static/engines/remark-0.13.0/fonts.css

This file was deleted.

4 changes: 4 additions & 0 deletions cicero/static/engines/remark-0.13.0/vendor.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

body { font-family: 'Droid Serif'; }

h1, h2, h3 {
Expand Down
1 change: 0 additions & 1 deletion cicero/static/engines/remark-0.14.0/fonts.css

This file was deleted.

1 change: 0 additions & 1 deletion cicero/static/engines/remark-legacy/fonts.css

This file was deleted.

4 changes: 4 additions & 0 deletions cicero/static/engines/remark-legacy/vendor.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import url(https://fonts.googleapis.com/css?family=Droid+Serif);
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

body {
font-family: 'Droid Serif';
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion cicero/templates/render.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<meta name="description" content="cicero.xyz: serving slides written in markdown." />
<link rel="icon" type="image/png" href="{{ url_for('static', filename='img/icon.png') }}" />
<title>{{ title }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='engines/' + engine + '/fonts.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='engines/' + engine + '/vendor.css') }}">

<style>
Expand Down

0 comments on commit 4e16b9c

Please sign in to comment.