Skip to content

Instantly share code, notes, and snippets.

@zabbarob
Created May 7, 2013 22:45
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save zabbarob/5536786 to your computer and use it in GitHub Desktop.
Save zabbarob/5536786 to your computer and use it in GitHub Desktop.
Anki cards, CSS and HTML templates.
@font-face {
font-family: junicode;
src: url('_junicode.ttf');
}
.card, table {
font-family: Helvetica, sans-serif, junicode;
font-size: 20px;
text-align: center;
color: #d03030;
background-color: #fafaf5;
}
table {
margin: auto;
border-collapse: collapse;
}
.deck, .hint, table.declension td:first-child {
font-size: 12px;
color: lightgrey;
}
.deck { font-size: 9px; }
.letter { font-size: 32px; }
.code {
font-family: Inconsolata, Courier New, monospace;
font-size: 16px;
}
table.declension { text-align: left; }
table.declension td:first-child { text-align: right; }
table.i-umlaut td {
border: 1px solid lightgray;
height: 2em;
width: 4.5em;
}
{{FrontSide}}
<hr>
{{Front}}
{{Back}}
<div class="deck">{{Deck}}</div>
{{FrontSide}}
<hr>
{{Back}}
{{Front}}
<div class="deck">{{Deck}}</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment