diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-02 23:37:00 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-02 23:37:00 -0400 |
commit | 9c4b8766cbdc2a4c63a03292b58cf35d981e1321 (patch) | |
tree | aa84619601ff14e7ea86b1147827f24a6fa82fa0 /static | |
parent | 85db279e33804c118b019c5f1e7666798df3e1f5 (diff) |
simplemde
Diffstat (limited to 'static')
m--------- | static/font-awesome | 0 | ||||
-rw-r--r-- | static/mde.js | 20 | ||||
m--------- | static/simplemde | 0 | ||||
-rw-r--r-- | static/style.css | 38 |
4 files changed, 56 insertions, 2 deletions
diff --git a/static/font-awesome b/static/font-awesome new file mode 160000 +Subproject a8386aae19e200ddb0f6845b5feeee5eb701368 diff --git a/static/mde.js b/static/mde.js new file mode 100644 index 0000000..7471110 --- /dev/null +++ b/static/mde.js @@ -0,0 +1,20 @@ +(function() { + var textarea = document.getElementsByTagName("textarea")[0]; + var form = textarea.form; + var container = document.createElement('div'); + /*container.innerHTML = + "<p>I know it looks funny in the editor, but to set the page "+ + "title (what appears in the tab name/window bar), put this at "+ + "the top of the page:</p>\n"+ + "<pre>---\ntitle: \"Your Title Here\"\n---\n</pre>";*/ + form.insertBefore(container, textarea); + container.appendChild(textarea); + + var simplemde = new SimpleMDE({ + autoDownloadFontAwesome: false, + element: textarea, + promptURLs: true, + forceSync: true, + showIcons: ["code", "table"], + }); +})(); diff --git a/static/simplemde b/static/simplemde new file mode 160000 +Subproject 6abda7ab68cc20f4aca870eb243747951b90ab0 diff --git a/static/style.css b/static/style.css index 6c63196..cad83c0 100644 --- a/static/style.css +++ b/static/style.css @@ -1,2 +1,36 @@ -.foo { -}
\ No newline at end of file +* { + box-sizing: border-box; +} +body > table { + width: 100%; +} +body > table tr > td:nth-child(3) { + text-align: right; +} +body > form { + display: block; + border: solid 1px black; + margin: 1em 0; + padding: 0.5em; +} +body > form > * { + margin: 0.4em 0; +} +label { + display: block; +} +textarea { + width: 100%; + height: 30em; + font-family: monospace; +} +input[type=text] { + width: 100%; +} +input[type=file] { + display: block; + margin-left: auto; + margin-right: auto; + background: #EEEEEE; + border-radius: 4px; +} |