Skip to content

Instantly share code, notes, and snippets.

@agelastic
Created November 20, 2017 01:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agelastic/742ae140f64bc3376c9ffa9c01a2dd61 to your computer and use it in GitHub Desktop.
Save agelastic/742ae140f64bc3376c9ffa9c01a2dd61 to your computer and use it in GitHub Desktop.
Anki styling for Chinese cards
.card {
font-family: arial;
font-size: 20px;
text-align: center;
color: black;
background-color: white;
}
.card { word-wrap: break-word; }
.win .chinese { font-family: "MS Mincho", "MS 明朝"; }
.mac .chinese { font-family: "STFangsong"}
.linux .chinese { font-family: "Kochi Mincho", "東風明朝"; }
.mobile .chinese {font-family: "PingFangSC-Regular";}
.chinese { font-size: 50px;}
.comment {font-size: 15px;}
.tags {color:gray;text-align:right;font-size:10pt;}
.note {color:gray;font-size:12pt;margin-top:20pt;}
.hint {font-size:15pt;}
//.answer { background-color:bisque; border:dotted;border-width:1px}
.tone1 {color: red;}
.tone2 {color: orange;}
.tone3 {color: green;}
.tone4 {color: blue;}
.tone5 {color: gray;}
.mac .btm {
position: absolute;
bottom: 0;
color:blue
}
.mobile .btm {
display:none
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment