From 0485d03c4845aeefe30a75d61c3d783c682fe739 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Tue, 21 Dec 2021 20:48:15 +0300 Subject: [PATCH] add general --- templates/General/Question-Answer/back.html | 4 + templates/General/Question-Answer/front.html | 2 + templates/General/README.md | 4 + templates/General/template.css | 126 +++++++++++++++++++ templates/General/template.json | 11 ++ 5 files changed, 147 insertions(+) create mode 100644 templates/General/Question-Answer/back.html create mode 100644 templates/General/Question-Answer/front.html create mode 100644 templates/General/README.md create mode 100644 templates/General/template.css create mode 100644 templates/General/template.json diff --git a/templates/General/Question-Answer/back.html b/templates/General/Question-Answer/back.html new file mode 100644 index 0000000..735c29a --- /dev/null +++ b/templates/General/Question-Answer/back.html @@ -0,0 +1,4 @@ +{{FrontSide}} +
+{{#Answer}}
{{edit:Answer}}
{{/Answer}} +{{#Extra}}
{{edit:Extra}}
{{/Extra}} \ No newline at end of file diff --git a/templates/General/Question-Answer/front.html b/templates/General/Question-Answer/front.html new file mode 100644 index 0000000..cbcda39 --- /dev/null +++ b/templates/General/Question-Answer/front.html @@ -0,0 +1,2 @@ +{{#Tags}}
{{Tags}}
{{/Tags}} +
{{edit:Question}}
\ No newline at end of file diff --git a/templates/General/README.md b/templates/General/README.md new file mode 100644 index 0000000..4f19754 --- /dev/null +++ b/templates/General/README.md @@ -0,0 +1,4 @@ +# General + +A simple note type for learning everything besides Japanese. +I use it instead of the built-in "Basic" note type. diff --git a/templates/General/template.css b/templates/General/template.css new file mode 100644 index 0000000..70cbc45 --- /dev/null +++ b/templates/General/template.css @@ -0,0 +1,126 @@ +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} +.card { + font-family: Noto Sans, Liberation Sans, Arial, Helvetica, Noto Sans CJK JP, Meiryo, Meiryo UI, IPAexGothic, + IPAPGothic, IPAGothic, Sans, sans-serif; + font-size: 20px; + text-align: left; + color: black; + background-color: #fffaf0; +} +li { + margin-left: 1em; +} +.tags { + text-align: center; + display: inline-block; + text-transform: lowercase; + background-color: #333; + color: #fffaf0; + font-weight: bold; + padding: 1px 3px; + margin: 0; + cursor: pointer; + border-radius: 3px; + font-size: 12px; + line-height: 14px; +} +#q:before { + content: "Question"; +} +#a:before { + content: "Answer"; +} +#e:before { + content: "Extra"; +} +#q:before, +#a:before, +#e:before { + display: block; + text-align: center; + color: gray; + font-size: 12px; + font-family: Noto Serif, Liberation Serif, Times New Roman, Serif; +} +img { + filter: sepia(33%); + border-radius: 4px; + max-width: 100%; +} + +/* .replaybutton is an tag with a that has an inside */ +.replaybutton { + margin: 0; + margin-right: 3px; + text-decoration: none; +} +.replaybutton span { + padding: 0; + font-size: 16px; +} +.replaybutton span svg { + fill: #fffaf0; + background: #333; + border-radius: 3px; + vertical-align: top; + min-width: 16px; + min-height: 16px; +} +a.replay-button { + top: -0.125em; + position: relative; +} +a.replay-button svg { + height: 1em; + width: 1em; +} +a.replay-button svg path { + fill: #fffaf0; +} +a.replay-button svg circle { + fill: #333; +} + +/* syntax highlighting for code */ +table.highlighttable { + overflow: auto; + display: block; +} +.linenodiv { + display: none; +} +.night_mode table.highlighttable pre { + background-color: #222; +} +pre { + background-color: rgb(246, 248, 250); + border-radius: 6px; + border: 1px solid #dedede; + color: rgb(36, 41, 46); + padding: 16px; + overflow: auto; + margin: 8px 0; +} +code { + color: #351214; +} + +/* style tables */ +table { + display: block; + border-collapse: collapse; + overflow-x: auto; + max-width: 100%; +} +th, +td { + border: 1px solid #555; +} +th, +td { + padding: 2px; +} diff --git a/templates/General/template.json b/templates/General/template.json new file mode 100644 index 0000000..a806d5e --- /dev/null +++ b/templates/General/template.json @@ -0,0 +1,11 @@ +{ + "modelName": "General", + "inOrderFields": [ + "Question", + "Answer", + "Extra" + ], + "cardTemplates": [ + "Question-Answer" + ] +} \ No newline at end of file