├── iA Writer └── Chicago │ ├── .gitignore │ ├── Chicago.iatemplate │ └── Contents │ │ ├── Resources │ │ ├── .Rhistory │ │ ├── title.html │ │ ├── document.html │ │ ├── header.html │ │ ├── box.svg │ │ ├── box-night-mode-ios.svg │ │ ├── box-night-mode-osx.svg │ │ ├── check.svg │ │ ├── check-night-mode-ios.svg │ │ ├── check-night-mode-osx.svg │ │ ├── master.js │ │ ├── style.css │ │ └── core.css │ │ └── Info.plist │ ├── Example.iatemplate │ └── Contents │ │ ├── Resources │ │ ├── style.css │ │ ├── document.html │ │ ├── title.html │ │ ├── header.html │ │ └── footer.html │ │ └── Info.plist │ ├── Info.png │ ├── Pages.png │ ├── Markup.txt │ ├── Markup.html │ └── README.md ├── PopClip ├── ShowPopclip.scpt └── Wikify.popclipext │ ├── script.rb │ └── Config.plist ├── .DS_Store ├── Marked ├── .DS_Store └── css │ ├── academic-review.css │ ├── academic-cv.css │ ├── industry-cv.css │ ├── amj-academic.css │ └── chicago-academic.css ├── OmniOutliner ├── Dark MD.otemplate ├── Tutoring.otemplate ├── Forked │ ├── Dracula.otemplate │ ├── Bear Panic Mode.otemplate │ └── Bear Solarized.otemplate ├── Dark Alternating.otemplate ├── Literature Review.otemplate └── Comprehensive Paper Summary.otemplate ├── Obsidian ├── CSS snippets │ ├── iA Writter Quattro V.css │ ├── Remove Yaml Front Matter from embeds.css │ ├── Bigger link popup preview.css │ ├── Hide Markdown Syntax.css │ ├── Hide URLs in Edit mode.css │ ├── enlarging images on hover.css │ ├── Bullet Point Relationship Lines.css │ ├── iA Writer header.css │ ├── Image zoom in preview.css │ ├── Outliner For The Outline and File Explorer.css │ ├── show line number.css │ ├── Checkboxes.css │ ├── Blockquote.css │ ├── clutter free edit.css │ ├── round checkboxes.css │ ├── Replace header hashes (#) by H[1-6].css │ └── Andy Matuschak mode.css ├── Autoamtion Scripts │ └── copy markdown link.js └── Amethyst_with iA Writer Fonts.css ├── README.md ├── Ulysses └── True Black - Notes from Highlights.ultheme ├── Zettlr ├── Zotero as Zettelkasten.md ├── Simple.css ├── zettlr - paperstyle theme.md ├── zettlr - iA Writer Like Theme.md ├── Bear-like.md ├── zettlr - bear theme.md ├── zettlr - Dark theme.md └── Ayu-light.css ├── Zotero ├── SyncBookendswithZotero.sh ├── Translators for QuickCopy │ ├── zotselect-link.js │ ├── copy-link-to-selected-item.js │ ├── attachmentLink.js │ └── Roam-QuickCopy2MD.js ├── ZotfileAnnotation.css └── zotero-mdnotes │ └── Mdnotes Custom Preferences - "Titles" for different item types.js ├── Markdown Tools ├── FindAndReplace │ ├── Update Date Edited.scpt │ └── Update Date Edited.kmmacros └── Settings for MarkDownload - Markdown Web Clipper.md ├── Bookends ├── Change PDF Metadata multiple and Send to DEVONthink.scpt └── BatchEditPDFMetaData.scpt ├── DEVONthink Pro ├── New Zettel Note___Alt-Cmd-Z.templatescriptd │ └── Contents │ │ ├── Resources │ │ ├── Scripts │ │ │ └── main.scpt │ │ └── %myDoc%.md │ │ └── Info.plist └── copy alliases and selected text.scpt ├── Web └── download-and-localize-website.sh ├── Deckset ├── Apple Business Class.dstheme ├── Meta Business Class.dstheme ├── Simple Dark Mode.dstheme ├── Simple Dark Highlight.dstheme ├── Simple Dark Cool Highlight.dstheme └── San Francisco in IC Blue.dstheme ├── .gitignore └── KeyboardMaestro └── Enable WikiLink.kmmacros /iA Writer/Chicago/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /PopClip/ShowPopclip.scpt: -------------------------------------------------------------------------------- 1 | tell application "PopClip" to appear -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/.Rhistory: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Example.iatemplate/Contents/Resources/style.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/.DS_Store -------------------------------------------------------------------------------- /Marked/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/Marked/.DS_Store -------------------------------------------------------------------------------- /iA Writer/Chicago/Info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/iA Writer/Chicago/Info.png -------------------------------------------------------------------------------- /iA Writer/Chicago/Pages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/iA Writer/Chicago/Pages.png -------------------------------------------------------------------------------- /OmniOutliner/Dark MD.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Dark MD.otemplate -------------------------------------------------------------------------------- /Obsidian/CSS snippets/iA Writter Quattro V.css: -------------------------------------------------------------------------------- 1 | div.markdown-source-view { 2 | font-family: iA Writer Quattro V; 3 | } -------------------------------------------------------------------------------- /OmniOutliner/Tutoring.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Tutoring.otemplate -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # themes 2 | themes and scripts made or adapted for Marked 2, Deckset, OmniOutliner, iThoughtsX, and more... 3 | -------------------------------------------------------------------------------- /OmniOutliner/Forked/Dracula.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Forked/Dracula.otemplate -------------------------------------------------------------------------------- /OmniOutliner/Dark Alternating.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Dark Alternating.otemplate -------------------------------------------------------------------------------- /OmniOutliner/Literature Review.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Literature Review.otemplate -------------------------------------------------------------------------------- /OmniOutliner/Forked/Bear Panic Mode.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Forked/Bear Panic Mode.otemplate -------------------------------------------------------------------------------- /OmniOutliner/Forked/Bear Solarized.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Forked/Bear Solarized.otemplate -------------------------------------------------------------------------------- /OmniOutliner/Comprehensive Paper Summary.otemplate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/OmniOutliner/Comprehensive Paper Summary.otemplate -------------------------------------------------------------------------------- /Ulysses/True Black - Notes from Highlights.ultheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/Ulysses/True Black - Notes from Highlights.ultheme -------------------------------------------------------------------------------- /Zettlr/Zotero as Zettelkasten.md: -------------------------------------------------------------------------------- 1 | [https://forum.zettlr.com/discussion/94/zotero-as-zettelkasten](https://forum.zettlr.com/discussion/94/zotero-as-zettelkasten) -------------------------------------------------------------------------------- /Zotero/SyncBookendswithZotero.sh: -------------------------------------------------------------------------------- 1 | /Users/xulelin/bookends-api/examples/bookends-zotero-sync users/5393328 --target=bookends --key=PtOqixOOijxm1uX0nJ55YKF1 2 | -------------------------------------------------------------------------------- /Markdown Tools/FindAndReplace/Update Date Edited.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/Markdown Tools/FindAndReplace/Update Date Edited.scpt -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Remove Yaml Front Matter from embeds.css: -------------------------------------------------------------------------------- 1 | /* Remove embed yaml front matter by Thery */ 2 | .markdown-embed-content > .language-yaml { display: none; } -------------------------------------------------------------------------------- /Bookends/Change PDF Metadata multiple and Send to DEVONthink.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/Bookends/Change PDF Metadata multiple and Send to DEVONthink.scpt -------------------------------------------------------------------------------- /DEVONthink Pro/New Zettel Note___Alt-Cmd-Z.templatescriptd/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linxule/themes-scripts/HEAD/DEVONthink Pro/New Zettel Note___Alt-Cmd-Z.templatescriptd/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /iA Writer/Chicago/Example.iatemplate/Contents/Resources/document.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |   8 | 9 | -------------------------------------------------------------------------------- /Web/download-and-localize-website.sh: -------------------------------------------------------------------------------- 1 | ## Download a whole website + directory + convert to local links 2 | 3 | wget -e robots=off -r -np -l -k -x -P /Users/xulelin/Downloads/chaordic https://web.archive.org/web/20080222023409/http://www.chaordic.org/ --no-check-certificate 4 | -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Bigger link popup preview.css: -------------------------------------------------------------------------------- 1 | /* Bigger link popup preview by cannibalox */ 2 | .popover.hover-popover { 3 | transform: scale(0.8); /* makes the content smaller */ 4 | max-height: 800px; /* was 300 */ 5 | min-height: 100px; 6 | width: 500px; /* was 400 */ 7 | } 8 | -------------------------------------------------------------------------------- /PopClip/Wikify.popclipext/script.rb: -------------------------------------------------------------------------------- 1 | #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby 2 | 3 | prefix = "[[" 4 | suffix = "]]" 5 | input = ENV['POPCLIP_TEXT'] 6 | 7 | space = input.match(/^([\s\n]*)\S.*?([\s\n]*)$/m) 8 | print "#{space[1]}#{prefix}#{input.strip}#{suffix}#{space[2]}" 9 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Example.iatemplate/Contents/Resources/title.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

 

9 |

 

10 | 11 | 12 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Example.iatemplate/Contents/Resources/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

  -  

9 | 10 | 11 | -------------------------------------------------------------------------------- /DEVONthink Pro/New Zettel Note___Alt-Cmd-Z.templatescriptd/Contents/Resources/%myDoc%.md: -------------------------------------------------------------------------------- 1 | # %myDoc% 2 | 3 | 4 | ## Comments / Questions 5 | 6 | --- 7 | 8 | # Admin 9 | 10 | - DTLink: [%myDoc%]() 11 | - Date: %year%/%month%/%day%/ %hour%:%minute% 12 | - Created from: %clipboard% 13 | - Tags: #zz-todo 14 | 15 | ## Links 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/title.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

 

9 |

 

10 |

 

11 | 12 | 13 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Example.iatemplate/Contents/Resources/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

  /  

9 | 10 | 11 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/document.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |   10 | 11 | -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Hide Markdown Syntax.css: -------------------------------------------------------------------------------- 1 | /* Hide Markdown Syntax */ 2 | /* Hide Bold, Italic, Strikethrough Syntax */ 3 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-strong, 4 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-em, 5 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-strikethrough, 6 | { display: none; } -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |

10 | 11 | 12 | -------------------------------------------------------------------------------- /Markdown Tools/Settings for MarkDownload - Markdown Web Clipper.md: -------------------------------------------------------------------------------- 1 | # Settings for MarkDownload - Markdown Web Clipper 2 | 3 | [Link to GitHub](https://github.com/deathau/markdownload) 4 | ## Template for Filename 5 | {date:YYYYMMDDHHmmss} {title} 6 | ## Front Matter Template 7 | \# {date:YYYYMMDDHHmmss} {title} 8 | 9 | Date Added: [[{date:YYYY-MM-DD}]] 10 | Link: [{pageTitle}]({baseURI}) 11 | 12 | > {excerpt} -------------------------------------------------------------------------------- /Deckset/Apple Business Class.dstheme: -------------------------------------------------------------------------------- 1 | {"type":0,"identifier":"business class","customizations":{"quote":{"quoteLineHeight":1,"quoteAuthorLineHeight":1,"quoteTextAlignment":0,"quoteAuthorTextAlignment":0,"quoteTextScale":1,"quoteColor":{"red":0.39215686274509803,"green":0.82352941176470584,"blue":1},"quoteAuthorTextScale":1,"quoteAuthorColor":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331}}}} -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Hide URLs in Edit mode.css: -------------------------------------------------------------------------------- 1 | /* Hide URLs in Edit mode - source death_au @ https://forum.obsidian.md/t/hide-or-truncate-urls-in-editor-using-css/359/2*/ 2 | div:not(.CodeMirror-activeline) > .CodeMirror-line .cm-string.cm-url:not(.cm-formatting) { 3 | font-size: 0; 4 | } 5 | div:not(.CodeMirror-activeline) > .CodeMirror-line .cm-string.cm-url:not(.cm-formatting)::after { 6 | content: '🔗'; 7 | font-size: 1rem; 8 | } -------------------------------------------------------------------------------- /Obsidian/CSS snippets/enlarging images on hover.css: -------------------------------------------------------------------------------- 1 | /* Enlarge image on hover by den */ 2 | /* experiment with values 3 | 4 | .markdown-preview-view img { 5 | display: block; 6 | margin-top: 20pt; 7 | margin-bottom: 20pt; 8 | margin-left: auto; 9 | margin-right: auto; 10 | width: 50%; 11 | transition:transform 0.25s ease; 12 | } 13 | 14 | .markdown-preview-view img:hover { 15 | -webkit-transform:scale(1.8); 16 | transform:scale(2); 17 | } -------------------------------------------------------------------------------- /DEVONthink Pro/copy alliases and selected text.scpt: -------------------------------------------------------------------------------- 1 | tell application id "DNtp" 2 | activate 3 | 4 | 5 | set sourceName to name of content record 6 | set sourceAliases to aliases of (content record of think window 1) 7 | 8 | set theContent to display name editor info "Insert note text" default answer the clipboard 9 | 10 | 11 | set the clipboard to ("[[" & sourceAliases & "]][[" & sourceName & "]]" & return & return & "> " & theContent & return) 12 | 13 | 14 | end tell -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Bullet Point Relationship Lines.css: -------------------------------------------------------------------------------- 1 | /* Bullet Point Relationship Lines in Editor */ 2 | 3 | .cm-hmd-list-indent .cm-tab, 4 | ul ul, 5 | ol ul, 6 | ul ol, 7 | ol ol 8 | { position: inherit; } 9 | 10 | .cm-hmd-list-indent .cm-tab::before, 11 | ul ul::before, 12 | ol ul::before, 13 | ul ol::before, 14 | ol ol::before 15 | { 16 | content: ' '; 17 | border-left: 0.1em solid var(--background-modifier-border); 18 | position: absolute; 19 | height: 100%; 20 | } 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .trash/ 2 | .DS_Store 3 | Zotero/.DS_Store 4 | .DS_Store 5 | .DS_Store 6 | .DS_Store 7 | .DS_Store 8 | Zotero/.DS_Store 9 | .DS_Store 10 | Obsidian/.DS_Store 11 | Marked/.DS_Store 12 | DEVONthink Pro/.DS_Store 13 | DEVONthink Pro/New Zettel Note___Alt-Cmd-Z.templatescriptd/.DS_Store 14 | DEVONthink Pro/New Zettel Note___Alt-Cmd-Z.templatescriptd/Contents/.DS_Store 15 | DEVONthink Pro/New Zettel Note___Alt-Cmd-Z.templatescriptd/Contents/Resources/.DS_Store 16 | .DS_Store 17 | Obsidian/.DS_Store 18 | .DS_Store 19 | .DS_Store 20 | -------------------------------------------------------------------------------- /Obsidian/CSS snippets/iA Writer header.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | margin-top: calc((60 / 23) * 1em); /* 60px @23px */ 3 | margin-bottom: calc((60 / 23) * 1em); /* 60px @23px */ 4 | font-size: calc((23 / 18) * 1em); /* 1.2778em = 23px @ font-size: 18px */ 5 | line-height: calc(30 / 23); /* 1.304 = 30px @ font-size: 23px */ 6 | } 7 | 8 | h2 { 9 | margin-top: calc((60 / 21) * 1em); /* 60px @21px */ 10 | margin-bottom: calc((30 / 18) * 1em); /* 30px @21px */ 11 | font-size: calc((21 / 18) * 1em); /* 1.1667em = 21px @ font-size: 18px */ 12 | line-height: calc(30 / 21); /* 1.4286 = 30px @ font-size: 21px */ 13 | } -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Image zoom in preview.css: -------------------------------------------------------------------------------- 1 | /* Image zoom in preview by kepano */ 2 | .markdown-preview-view .internal-embed img { 3 | cursor:zoom-in;} 4 | 5 | .markdown-preview-view .internal-embed img:active { 6 | cursor:zoom-out; 7 | display:block; 8 | z-index:100; 9 | position:fixed; 10 | max-height:100%; 11 | max-width:100%; 12 | height:100%; 13 | width:100%; 14 | object-fit: contain; 15 | margin:0 auto; 16 | text-align:center; 17 | top: 50%; 18 | transform: translateY(-50%); 19 | padding:0; 20 | left:0; 21 | right:0; 22 | bottom:0; 23 | background:var(--background-primary);} -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Outliner For The Outline and File Explorer.css: -------------------------------------------------------------------------------- 1 | /* connecting lines outliner */ 2 | .outline .collapsible-item-children { 3 | margin-left: 20px; 4 | border-left: 1px solid var(--text-muted); 5 | border-radius: 4px; 6 | transition:all 0.5s ease-in-out; 7 | } 8 | 9 | .outline .collapsible-item-children:hover { 10 | border-left-color: var(--text-normal); 11 | } 12 | 13 | /* change font color outline */ 14 | div.collapsible-item-inner { 15 | color: var(--base3); 16 | } 17 | 18 | /* indent wrapped titles outliner*/ 19 | .outline .collapsible-item-inner { 20 | margin-left: 10px; 21 | text-indent: -10px; 22 | } 23 | -------------------------------------------------------------------------------- /Zettlr/Simple.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --c-primary: #0077C8; 3 | } 4 | 5 | #editor * { 6 | font-family: SF Mono, 'JetBrains Mono', 'Inconsolata Regular', monospace; 7 | font-size:1.0em; 8 | } 9 | 10 | #editor .cm-header-1, 11 | #editor .cm-header-2, 12 | #editor .cm-header-3, 13 | #editor .cm-header-4, 14 | #editor .cm-header-5, 15 | #editor .cm-header-6, 16 | #editor .cm-formatting-header{ 17 | color: var(--c-primary); 18 | font-family: 'SF Pro Text', sans-serif; 19 | font-weight:600; 20 | font-size:1.25em; 21 | } 22 | 23 | .CodeMirror-line:not(:last-child)::after { 24 | content: "¶"; 25 | color: #DDD; 26 | font-weight:200; 27 | } 28 | 29 | #editor .CodeMirror-code .mute { 30 | opacity: .6; 31 | } -------------------------------------------------------------------------------- /Obsidian/CSS snippets/show line number.css: -------------------------------------------------------------------------------- 1 | /* show line number. to counter WYSIWYG*/ 2 | .cm-s-obsidian .CodeMirror-linenumber { 3 | opacity : 1 !important; 4 | } 5 | 6 | /*-- show # markup--*/ 7 | .cm-formatting.cm-formatting-header.cm-formatting-header-1.cm-header.cm-header-1, 8 | .cm-formatting.cm-formatting-header.cm-formatting-header-2.cm-header.cm-header-2, 9 | .cm-formatting.cm-formatting-header.cm-formatting-header-3.cm-header.cm-header-3, 10 | .cm-formatting.cm-formatting-header.cm-formatting-header-4.cm-header.cm-header-4, 11 | .cm-formatting.cm-formatting-header.cm-formatting-header-5.cm-header.cm-header-5, 12 | .cm-formatting.cm-formatting-header.cm-formatting-header-6.cm-header.cm-header-6 13 | {font-size:0px;} -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Checkboxes.css: -------------------------------------------------------------------------------- 1 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-meta, 2 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-property { 3 | color: transparent; 4 | position: relative; 5 | } 6 | 7 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-meta:after, 8 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-property:after { 9 | content: "☐"; 10 | position: absolute; 11 | top: 0px; 12 | left: 0px; 13 | color: var(--text-normal); 14 | font-size: 24px; 15 | } 16 | 17 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-task.cm-property:after { 18 | content: "☑"; 19 | } -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Blockquote.css: -------------------------------------------------------------------------------- 1 | /* Blockquote: in edit mode with left border rendered instead of > */ 2 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting.cm-formatting-quote, 3 | div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-hmd-indent-in-quote { 4 | display: inline !important; 5 | color: transparent !important; 6 | } 7 | 8 | div:not(.CodeMirror-activeline)>.HyperMD-quote { 9 | /* background-color:rgb(238, 234, 234); */ 10 | border-left: 3px solid var(--text-selection); 11 | border-color: red !important; 12 | border-radius: 0 8px 8px 0; 13 | /* font-size: 17px; */ 14 | /* line-height: 1.5em; */ 15 | margin-left: 5px; 16 | /* padding: 12px 10px 15px 8.5px; */ 17 | display: inline-block; 18 | } -------------------------------------------------------------------------------- /Zotero/Translators for QuickCopy/zotselect-link.js: -------------------------------------------------------------------------------- 1 | { 2 | "translatorID":"04623cf0-313c-11df-9aae-0800200c9a66", 3 | "translatorType":2, 4 | "label":"ZotSelect Link", 5 | "creator":"Scott Campbell, Avram Lyon", 6 | "target":"html", 7 | "minVersion":"2.0", 8 | "maxVersion":"", 9 | "priority":200, 10 | "inRepository":false, 11 | "displayOptions":{"exportCharset":"UTF-8"}, 12 | "lastUpdated":"2012-07-17 22:27:00" 13 | } 14 | 15 | function doExport() { 16 | var item; 17 | while(item = Zotero.nextItem()) { 18 | Zotero.write("[Zotero Link](zotero://select/items/"); 19 | var library_id = item.libraryID ? item.libraryID : 0; 20 | Zotero.write(library_id+"_"+item.key+")"); 21 | Zotero.write(item.creators[0].lastName+". "+item.date+". "+item["title"]); 22 | } 23 | } -------------------------------------------------------------------------------- /Zettlr/zettlr - paperstyle theme.md: -------------------------------------------------------------------------------- 1 | /* Paperstyle custom CSS */ 2 | 3 | /* Add Monospace font */ 4 | body.darwin { font-family: 'Menlo Regular', monospace; } 5 | 6 | #editor.fullscreen, .CodeMirror-fullscreen { top: 0px; } 7 | 8 | /* Set the surrounding background color */ 9 | body #editor { background-color: #333; } /* Light mode */ 10 | body.dark #editor { background-color: black; } /* Dark mode */ 11 | 12 | /* Set the background colour of the writing area (light mode) */ 13 | body #editor .CodeMirror-sizer, body #editor .CodeMirror-gutter { 14 | background-color: white; 15 | height: 100%; /* Necessary for shorter texts */ 16 | } 17 | 18 | /* Here for dark mode */ 19 | body.dark #editor .CodeMirror-sizer, body.dark #editor .CodeMirror-gutter { 20 | background-color: #333; 21 | } -------------------------------------------------------------------------------- /DEVONthink Pro/New Zettel Note___Alt-Cmd-Z.templatescriptd/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIdentifier 6 | com.apple.ScriptEditor.id.5F929A2B-BAD4-465F-ACB9-E7D681369BF8 7 | WindowState 8 | 9 | bundleDividerCollapsed 10 | 11 | bundlePositionOfDivider 12 | 0.0 13 | dividerCollapsed 14 | 15 | eventLogLevel 16 | 2 17 | name 18 | ScriptWindowState 19 | positionOfDivider 20 | 796 21 | savedFrame 22 | 595 93 775 1037 0 0 1920 1177 23 | selectedTab 24 | log 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Obsidian/CSS snippets/clutter free edit.css: -------------------------------------------------------------------------------- 1 | /* Clutter free edit mode by pihentagy */ 2 | /* inline formatting, link targets and [[ ]] disappears if not active line*/ 3 | div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting, 4 | div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-string.cm-url, 5 | /* still show double brackets */ 6 | /* div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-link */ 7 | { display: none; } 8 | 9 | /* hide all html tags -- IT IS COMMENTED OUT BY DEFAULT */ 10 | div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-tag{ display: none; } 11 | 12 | 13 | /* except list markers */ span.cm-formatting-list, 14 | /*code block backticks */ span.cm-formatting-code-block.cm-hmd-codeblock, 15 | /* optionally header hashes */ span.cm-formatting-header 16 | { display: inline !important; } 17 | 18 | /* and task checkboxes */ 19 | span.cm-formatting-task { display: inline !important; font-family: monospace; } 20 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Markup.txt: -------------------------------------------------------------------------------- 1 | # Heading 1 2 | ## Heading 2 3 | ### Heading 3 4 | #### Heading 4 5 | ##### Heading 5 6 | ###### Heading 6 7 | 8 | ![Image](Info.png) 9 | 10 | Paragraph with **strong**, *emphasis*, ~~strikethrough~~, `code`, a footnote[^Footnote content.], and a [link](https://ia.net/writer). 11 | 12 | - List item with [table reference][table-identifier] 13 | - [ ] Task list item 14 | 15 | --- 16 | 17 | 1. Ordered list item 18 | 1. [x] Ordered task list item 19 | 20 | > Block quote 21 | 22 | ```swift 23 | print("Hello World!") 24 | ``` 25 | 26 | | | Grouping || 27 | | First Column | Second Column | Third Column | 28 | | ------------ | :-----------: | -----------: | 29 | | Cell | *Long Cell* || 30 | | Cell | **Cell** | Cell | 31 | [Table Caption][table-identifier] 32 | 33 | Citation from a book.[p. 42][#book] 34 | 35 | [#book]: John Doe. *A Totally Fake Book*. Vanity Press, 2006. -------------------------------------------------------------------------------- /PopClip/Wikify.popclipext/Config.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Actions 6 | 7 | 8 | Script Interpreter 9 | /usr/bin/ruby 10 | Shell Script File 11 | script.rb 12 | Title 13 | [[]] 14 | After 15 | paste-result 16 | Requirements 17 | 18 | paste 19 | 20 | 21 | 22 | 23 | Extension Description 24 | Add [[]] around selection to create Wiki-style links 25 | Extension Identifier 26 | com.xule.popclip.extension.Wikify 27 | Extension Name 28 | Wikify 29 | Version 30 | 2 31 | 32 | 33 | -------------------------------------------------------------------------------- /Zettlr/zettlr - iA Writer Like Theme.md: -------------------------------------------------------------------------------- 1 | /* iA Writer Like Theme for Zettlr */ 2 | 3 | :root { 4 | --c-primary-shade: #f0f0f0; 5 | } 6 | 7 | body.dark ::-webkit-scrollbar-thumb { 8 | background-color: #777; 9 | } 10 | 11 | #editor { 12 | font-family: 'SF Mono', Crimson; 13 | } 14 | 15 | body #editor .cm-formatting.quote { 16 | padding-left: 5px !important; 17 | border-left: 1px solid #F27983 !important; 18 | } 19 | 20 | .CodeMirror-wrap pre.CodeMirror-line { 21 | font-weight: lighter; 22 | } 23 | 24 | .CodeMirror .size-header-1, 25 | .CodeMirror .size-header-2, 26 | .CodeMirror .size-header-3, 27 | .CodeMirror .size-header-4, 28 | .CodeMirror .size-header-5, 29 | .CodeMirror .size-header-6 30 | { 31 | font-size: 1em; 32 | } 33 | 34 | .size-header-1 .CodeMirror-line > span, 35 | .size-header-2 .CodeMirror-line > span, 36 | .size-header-3 .CodeMirror-line > span, 37 | .size-header-4 .CodeMirror-line > span, 38 | .size-header-5 .CodeMirror-line > span, 39 | .size-header-6 .CodeMirror-line > span 40 | { 41 | border-bottom: 2px solid; 42 | padding-bottom: 2px;} 43 | 44 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleInfoDictionaryVersion 8 | 6.0 9 | CFBundleIdentifier 10 | com.linxule.chicago 11 | CFBundleName 12 | Chicago Style 13 | CFBundleShortVersionString 14 | 2.0 15 | CFBundleVersion 16 | 1 17 | IATemplateDocumentFile 18 | document 19 | IATemplateFooterHeight 20 | 80 21 | IATemplateHeaderHeight 22 | 65 23 | IATemplateHeaderFile 24 | header 25 | IATemplateDescription 26 | This template aims to apply the requirements specified for Chicago Manual of Style. 27 | IATemplateAuthor 28 | Xule Lin 29 | IATemplateAuthorURL 30 | https://linxule.com 31 | 32 | 33 | -------------------------------------------------------------------------------- /Bookends/BatchEditPDFMetaData.scpt: -------------------------------------------------------------------------------- 1 | -- Batch Edit. Might break. 2 | -- Set the metadata fields for PDF. Need to install exiftool 3 | -- **add BibTex citekey to PDF's Finder's comment** 4 | tell application "Bookends" 5 | -- also can be -> set theIDs to get id of publication items of group item "XXX" 6 | set theIDs to «event ToySRUID» "Selection" 7 | repeat with theID in paragraphs of theIDs 8 | tell front library window 9 | try 10 | -- Get properties of selected reference 11 | set theRefs to (publication items whose id is theID) 12 | set theRef to first item of theRefs 13 | set theCitation to user1 of theRef 14 | set theAbstract to abstract of theRef 15 | set theAuthor to authors of theRef 16 | set theTitle to title of theRef 17 | set theJournal to journal of theRef 18 | set theFile to the first attachment item of theRef 19 | set thePath to the path of theFile 20 | 21 | do shell script "/usr/local/bin/exiftool -title=" & quoted form of theTitle & " -author=" & quoted form of theAuthor & " -subject=" & quoted form of theJournal & " -MDItemFinderComment=" & "@" & quoted form of theCitation & " -overwrite_original " & quoted form of thePath 22 | end try 23 | end tell 24 | end repeat 25 | end tell 26 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Example.iatemplate/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleInfoDictionaryVersion 8 | 6.0 9 | CFBundleIdentifier 10 | com.example.template 11 | CFBundleName 12 | Example 13 | CFBundleShortVersionString 14 | 1.0 15 | CFBundleVersion 16 | 1 17 | IATemplateDocumentFile 18 | document 19 | IATemplateTitleFile 20 | title 21 | IATemplateFooterFile 22 | footer 23 | IATemplateFooterHeight 24 | 90 25 | IATemplateHeaderFile 26 | header 27 | IATemplateHeaderHeight 28 | 90 29 | IATemplateDescription 30 | Example template. 31 | IATemplateAuthor 32 | Example 33 | IATemplateAuthorURL 34 | https://example.com 35 | 36 | 37 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/box.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Checkbox 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/box-night-mode-ios.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Checkbox 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/box-night-mode-osx.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Checkbox 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Obsidian/CSS snippets/round checkboxes.css: -------------------------------------------------------------------------------- 1 | /* Round checkboxes in preview and editor by rsdimitrov*/ 2 | input[type=checkbox], .cm-formatting-task { 3 | -webkit-appearance: none; 4 | appearance: none; 5 | border-radius: 50%; 6 | border: 1px solid var(--text-faint); 7 | padding: 0; 8 | vertical-align: middle; 9 | } 10 | 11 | .cm-s-obsidian span.cm-formatting-task { 12 | color: transparent !important; 13 | width: 1.25em !important; 14 | height: 1.25em; 15 | display: inline-block; 16 | } 17 | 18 | input[type=checkbox]:focus{ 19 | outline:0; 20 | } 21 | input[type=checkbox]:checked, .cm-formatting-task.cm-property { 22 | background-color: var(--text-accent-hover); 23 | border: 1px solid var(--text-accent-hover); 24 | background-position: center; 25 | background-size: 70%; 26 | background-repeat: no-repeat; 27 | background-image: url('data:image/svg+xml; utf8, '); 28 | } 29 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/check.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Checked Checkbox 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/check-night-mode-ios.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Checked Checkbox 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/check-night-mode-osx.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Checked Checkbox 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Replace header hashes (#) by H[1-6].css: -------------------------------------------------------------------------------- 1 | /* Custom font-size for headers */ 2 | :root { 3 | --h1: 1em; 4 | --h2: 1em; 5 | --h3: 1em; 6 | --h4: 1em; 7 | --h5: 1em; 8 | --h6: 1em; 9 | } 10 | 11 | /* Replace Header Hashes(#) with H[1-6]*/ 12 | /*-- hide # markup if not active--*/ 13 | div:not(.CodeMirror-activeline)> pre .cm-formatting.cm-formatting-header.cm-formatting-header-1.cm-header.cm-header-1, 14 | div:not(.CodeMirror-activeline)> pre .cm-formatting.cm-formatting-header.cm-formatting-header-2.cm-header.cm-header-2, 15 | div:not(.CodeMirror-activeline)> pre .cm-formatting.cm-formatting-header.cm-formatting-header-3.cm-header.cm-header-3, 16 | div:not(.CodeMirror-activeline)> pre .cm-formatting.cm-formatting-header.cm-formatting-header-4.cm-header.cm-header-4, 17 | div:not(.CodeMirror-activeline)> pre .cm-formatting.cm-formatting-header.cm-formatting-header-5.cm-header.cm-header-5, 18 | div:not(.CodeMirror-activeline)> pre .cm-formatting.cm-formatting-header.cm-formatting-header-6.cm-header.cm-header-6 19 | {font-size:0px !important;} 20 | 21 | /*-- display H1-h6 instead when inactive--*/ 22 | div:not(.CodeMirror-activeline)>pre.HyperMD-header-1:before { 23 | content: "H1"; 24 | color: var(--text-faint); 25 | font-size: var(--h1); 26 | padding-right: var(--h1); 27 | } 28 | div:not(.CodeMirror-activeline)>pre.HyperMD-header-2:before { 29 | content: "H2"; 30 | color: var(--text-faint); 31 | font-size: var(--h2); 32 | padding-right: var(--h2); 33 | } 34 | div:not(.CodeMirror-activeline)>pre.HyperMD-header-3:before { 35 | content: "H3"; 36 | color: var(--text-faint); 37 | font-size: var(--h3); 38 | padding-right: var(--h3); 39 | } 40 | div:not(.CodeMirror-activeline)>pre.HyperMD-header-4:before { 41 | content: "H4"; 42 | color: var(--text-faint); 43 | font-size: var(--h4); 44 | padding-right: var(--h4); 45 | } 46 | div:not(.CodeMirror-activeline)>pre.HyperMD-header-5:before { 47 | content: "H5"; 48 | color: var(--text-faint); 49 | font-size: var(--h5); 50 | padding-right: var(--h5); 51 | } 52 | div:not(.CodeMirror-activeline)>pre.HyperMD-header-6:before { 53 | content: "H6"; 54 | color: var(--text-faint); 55 | font-size: var(--h6); 56 | padding-right: var(--h6); 57 | } 58 | -------------------------------------------------------------------------------- /Zotero/Translators for QuickCopy/copy-link-to-selected-item.js: -------------------------------------------------------------------------------- 1 | { 2 | "translatorID":"04623cf0-313c-11df-9aae-0800200c9a66", 3 | "translatorType":2, 4 | "label":"ZotSelect Link", 5 | "creator":"Scott Campbell, Avram Lyon, Nathan Schneider, Xule Lin", 6 | "target":"html", 7 | "minVersion":"2.0", 8 | "maxVersion":"", 9 | "priority":200, 10 | "inRepository":false, 11 | "displayOptions":{"exportCharset":"UTF-8"}, 12 | "lastUpdated":"2010-07-19 03:03:00" 13 | } 14 | 15 | /* original html output */ 16 | function doExport() { 17 | var item; 18 | while(item = Zotero.nextItem()) { 19 | Zotero.write(''); 27 | 28 | var creatorsS = item.creators[0].lastName; 29 | if (item.creators.length>2) 30 | creatorsS += " et al."; 31 | else if (item.creators.length==2) 32 | creatorsS += " & " + item.creators[1].lastName; 33 | 34 | var date = Zotero.Utilities.strToDate(item.date); 35 | var dateS = (date.year) ? date.year : item.date; 36 | 37 | Zotero.write('(' + creatorsS + ' ' + dateS + ')
'); 38 | } 39 | } 40 | 41 | /* my adaptation for markdown output */ 42 | /* output format: [Title (Author et al. year)](zotero-select-link) */ 43 | 44 | function doExport() { 45 | var item; 46 | while(item = Zotero.nextItem()) { 47 | 48 | var titleS = (item.title); 49 | Zotero.write( "[" + titleS); 50 | 51 | var creatorsS = item.creators[0].lastName; 52 | if (item.creators.length>2) 53 | creatorsS += " et al."; 54 | else if (item.creators.length==2) 55 | creatorsS += " ; " + item.creators[1].lastName; 56 | 57 | var date = Zotero.Utilities.strToDate(item.date); 58 | var dateS = (date.year) ? date.year : item.date; 59 | 60 | Zotero.write(" (" + creatorsS + " " + dateS + ")]"); 61 | 62 | var library_id = item.libraryID ? item.libraryID : 0; 63 | Zotero.write("(zotero://select/items/" + library_id + "_" + item.key + ")"); 64 | 65 | 66 | } 67 | } 68 | 69 | 70 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Markup.html: -------------------------------------------------------------------------------- 1 |

Heading 1

2 | 3 |

Heading 2

4 | 5 |

Heading 3

6 | 7 |

Heading 4

8 | 9 |
Heading 5
10 | 11 |
Heading 6
12 | 13 |
14 | Image 15 |
Image
16 |
17 | 18 |

Paragraph with strong, emphasis, strikethrough, code, a footnote1, and a link.

19 | 20 | 24 | 25 |
26 | 27 |
    28 |
  1. Ordered list item
  2. 29 |
  3. Ordered task list item
  4. 30 |
31 | 32 |
33 |

Block quote

34 |
35 | 36 |
print("Hello World!")
37 | 
38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
Table Caption
Grouping
First ColumnSecond ColumnThird Column
CellLong Cell
CellCellCell
71 | 72 |

Citation from a book.[p. 42, 2]

73 | 74 |
75 |
76 |
    77 | 78 |
  1. 79 |

    Footnote content. ↩︎

    80 |
  2. 81 | 82 |
  3. John Doe. A Totally Fake Book. Vanity Press, 2006.

    83 |
  4. 84 | 85 |
86 |
87 | -------------------------------------------------------------------------------- /Zotero/Translators for QuickCopy/attachmentLink.js: -------------------------------------------------------------------------------- 1 | { 2 | "translatorID":"975f6cae-bd74-4304-8da0-6ebd380170a1", 3 | "translatorType":"export", 4 | "label":"attachmentLink", 5 | "creator":"Xule Lin", 6 | "target":"html", 7 | "minVersion":"3.0", 8 | "maxVersion":"", 9 | "priority":200, 10 | "inRepository":false, 11 | "displayOptions":{"exportCharset":"UTF-8"}, 12 | "lastUpdated":"2020-06-24 22:30:00" 13 | } 14 | 15 | /* 16 | Zotero PDF(s):: [Author(s)_Year_Title](zotero://open-pdf/library/item/) 17 | - open-pdf can be changed to select to locate the item in Zotero library 18 | 19 | Description: Use keyboard to copy the fomartted links to the Zotero attachment. 20 | 1. Add to ~/zotero/translator 21 | 2. In Config Editor, choose the desired quickcopy and paste the following value: 22 | export=975f6cae-bd74-4304-8da0-6ebd380170a1 23 | 24 | MIT License 25 | Copyright (c) 2020 Xule Lin 26 | Permission is hereby granted, free of charge, to any person obtaining a copy 27 | of this software and associated documentation files (the "Software"), to deal 28 | in the Software without restriction, including without limitation the rights 29 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 30 | copies of the Software, and to permit persons to whom the Software is 31 | furnished to do so, subject to the following conditions: 32 | The above copyright notice and this permission notice shall be included in all 33 | copies or substantial portions of the Software. 34 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 35 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 36 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 37 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 38 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 39 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 40 | SOFTWARE. 41 | */ 42 | 43 | function doExport() { 44 | var item; 45 | while(item = Zotero.nextItem()) { 46 | var itemLinks = []; 47 | if (item.getAttachments().length > 0) { 48 | var attachments = Zotero.Items.get(item.getAttachments()), 49 | attachmentLinks = []; 50 | for (let attachment of attachments) { 51 | let attachmentType = attachment.attachmentContentType; 52 | if (attachmentType == "application/pdf" || attachmentType == "application/epub+zip") { 53 | let attName = attachment._displayTitle, attExt = attachment.attachmentFilename.split('.').pop(); 54 | if (attName.length > 30) attName = `${attName.substr(0, 25)}....${attExt}`; 55 | if (attachment.attachmentLinkMode == 2); 56 | let mimeURI = (attachmentType == "application/pdf") ? "open-pdf" : "select"; 57 | let attString = `[${attName}](zotero://${mimeURI}/library/items/${attachment.key})`; 58 | attachmentLinks.push(attString); 59 | } 60 | } 61 | Zotero.write(attachmentLinks.join(", ")); 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/master.js: -------------------------------------------------------------------------------- 1 | window.addEventListener('load', function() { 2 | 3 | var splitFootnotesAndCitations = function() { 4 | var originalContainer = document.body.getElementsByClassName('footnotes') 5 | if (originalContainer.length == 0) { return } 6 | 7 | var footnoteContainer = document.createElement('div') 8 | footnoteContainer.setAttribute('class', 'footnotes') 9 | var footnoteList = document.createElement('ol') 10 | footnoteContainer.appendChild(footnoteList) 11 | 12 | var citationContainer = document.createElement('div') 13 | citationContainer.setAttribute('class', 'citations') 14 | var citationList = document.createElement('ul') 15 | citationContainer.appendChild(citationList) 16 | 17 | var appendixContainer = document.createElement('div') 18 | appendixContainer.setAttribute('class', 'appendix') 19 | 20 | var destinationForItemClassName = function(className) { 21 | switch (className) { 22 | case 'citation': return citationList 23 | default: return footnoteList 24 | } 25 | } 26 | 27 | // Separate citations and footnotes. 28 | var originalListItems = originalContainer[0].getElementsByTagName('ol')[0].getElementsByTagName('li') 29 | for (var i = 0, l = originalListItems.length; i < l; i++) { 30 | var item = originalListItems[0] 31 | destinationForItemClassName(item.className).appendChild(item) 32 | } 33 | 34 | // Sort citation content. 35 | var citationListItems = citationList.getElementsByTagName('li') 36 | var citationContent = [] 37 | for (var i = 0, l = citationListItems.length; i < l; i++) { 38 | citationContent.push(citationListItems[i].innerHTML) 39 | } 40 | citationContent.sort(function (a, b) {return a.toLowerCase().localeCompare(b.toLowerCase());}); 41 | // Apply sorted content to citation elements in place. 42 | for (var i = 0, l = citationListItems.length; i < l; i++) { 43 | citationListItems[i].innerHTML = citationContent[i] 44 | } 45 | 46 | // Add footnotes page(s) and citation page(s) to appendix 47 | var footnoteListItems = footnoteList.getElementsByTagName('li') 48 | console.log(footnoteListItems.length) 49 | if (footnoteListItems.length > 0){ 50 | footnoteList.insertAdjacentHTML('beforebegin', '

Notes

') 51 | appendixContainer.appendChild(footnoteContainer) 52 | } 53 | 54 | if (citationListItems.length > 0) { 55 | citationList.insertAdjacentHTML('beforebegin', '

Works Cited

') 56 | appendixContainer.appendChild(citationContainer) 57 | } 58 | 59 | originalContainer[0].parentNode.replaceChild(appendixContainer, originalContainer[0]) 60 | } 61 | 62 | var relabelFootnotes = function() { 63 | var footnoteMarkerlist = document.body.getElementsByClassName('footnote') 64 | for (var i = 0, l = footnoteMarkerlist.length; i < l; i++) { 65 | footnoteMarkerlist[i].innerHTML = i + 1 66 | } 67 | } 68 | 69 | document.body.addEventListener('ia-writer-change', function() { 70 | splitFootnotesAndCitations() 71 | relabelFootnotes() 72 | }) 73 | }) 74 | -------------------------------------------------------------------------------- /Deckset/Meta Business Class.dstheme: -------------------------------------------------------------------------------- 1 | {"creationDate":1592956094.454248,"baseTheme":{"variantIdentifier":"scheme1","identifier":"business class"},"importDate":1592956094.454248,"baseCustomizations":{"link":{"textScale":1,"underlineStyle":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":0.34901960784313724,"blue":0.1803921568627451}},"list":{"color":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331},"bulletCharacter":"-","alignment":0},"headerStrong":{"textScale":1,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":1,"green":1,"blue":1}},"footer":{"textScale":0.79999995231628418,"textAlignment":1,"lineHeight":1,"font":{"familyName":"Roboto","fullName":"Roboto-Regular","memberName":"Regular"},"color":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331}},"textStrong":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"quote":{"quoteLineHeight":1.8000001907348633,"quoteAuthorLineHeight":1.8000001907348633,"quoteTextAlignment":0,"quoteAuthorFont":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"quoteAuthorTextAlignment":1,"quoteTextScale":0.49999991059303284,"quoteColor":{"red":0.27450980392156865,"green":0.27450980392156865,"blue":0.27450980392156865},"quoteAuthorTextScale":0.5,"quoteFont":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"quoteAuthorColor":{"red":0.27450980392156865,"green":0.27450980392156865,"blue":0.27450980392156865}},"header":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331}},"headerEmphasis":{"textScale":1,"textAlignment":2,"lineHeight":1.9809969663619995,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":1,"green":1,"blue":1}},"text":{"textScale":0.79999995231628418,"textAlignment":0,"lineHeight":1.3000000715255737,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331}},"textEmphasis":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331}},"slideNumber":{"textScale":0.79999995231628418,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Roboto","fullName":"Roboto-Regular","memberName":"Regular"},"color":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331}},"footnote":{"textScale":0.79999995231628418,"textAlignment":0,"color":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331},"lineHeight":1.2000000476837158,"separatorColor":{"red":0.33333333333333331,"green":0.33333333333333331,"blue":0.33333333333333331},"separatorHeight":1,"separatorMargin":0.5,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"}}},"name":"Meta Business Class","customizations":{},"type":1,"identifier":"E499E91F-264C-46B7-A41D-AD1905994CB3"} -------------------------------------------------------------------------------- /Zotero/ZotfileAnnotation.css: -------------------------------------------------------------------------------- 1 | -[ZotFile - Advanced PDF management for Zotero](http://zotfile.com/#extract-pdf-annotations) 2 | -**Extract Annotation Color** (thanks to [RAG2ko](https://github.com/RAG2ko)) 3 | -Zotfile now extracts the color of annotations. The color can be used in two ways: (a) To format extracted annotations: Just add some css styling to the hidden options for formatting. For example, change `formatAnnotationHighlight` to `

"%(content)" (%(cite))

`. The wildcard `%(color)` is replaced by the annotation color (you can also use %(color_category) for the color category—reddish is red etc). This styling has the same effect but looks a little better: `

"%(content)" (%(cite))

` (b) To create separate notes for color categories: The hidden option `pdfExtraction.colorNotes` allows you to create a separate note for each color category (yellow, red, green etc annotations). 4 | -**Improved formatting of extracted annotations with hidden options** (`formatNoteTitle`, `formatAnnotationNote`, `formatAnnotationHighlight`, `formatAnnotationUnderline`) 5 | -The available wildcards are `%(content)` for the highlights text, `%(cite)` for the in-text citation of the zotero item, `%(page)` for the page of the annotation, `%(uri)` for the uri that open the pdf on the correct page, `%(label)` for the text label displayed in the title bar of the annotation pop-up commonly used for the user who added the annotation, and `%(color)` 6 | -/ 7 | -`%(color_category)` for the annotation color as described above. The default for `formatAnnotationHighlight` is `

"%(content)" (%(cite))

`. WARNING: I removed the old settings. You will have to change the new settings if you want to customize the format of the note with extracted annotations. 8 | 9 | --- 10 | 11 | extensions.zotfile.pdfExtraction.formatAnnotationNote;

%(content)

%(cite)

12 | 13 | extensions.zotfile.pdfExtraction.formatAnnotationUnderline;

%(content)

%(cite)

14 | 15 | extensions.zotfile.pdfExtraction.formatNoteTitle;

%(title): %(date)

16 | 17 | 18 | ## Custom Header for Color Categories 19 | 20 | ### Add/Modify to colorCategories 21 | extensions.zotfile.pdfExtraction.colorCategories; 22 | {"Black": "#000000", "White": "#FFFFFF", "Dark Gray": "#666666", "Gray": "#808080", "KeyInsights": "#FF0000", "Orange": "#FF6600", "Yellow": "#FFFF00", "Green": "#00FF00", "Cyan": "#00FFFF", "Blue": "#0000FF", "Magenta": "#ff00ff", "Darkmagenta": "#800080"} 23 | 24 | default: {"Black": "#000000", "White": "#FFFFFF", "Gray": "#808080", "Red": "#FF0000", "Orange": "#FFA500", "Yellow": "#FFFF00", "Green": "#00FF00", "Cyan": "#00FFFF", "Blue": "#0000FF", "Magenta": "#FF00FF"} 25 | 26 | ### Add %(color)/%(color_category) to AnnotationHilight (also other addition) 27 | extensions.zotfile.pdfExtraction.formatAnnotationHighlight; 28 | ## %(color)

%(content)

%(cite)

29 | 30 | 31 | ### Then replace with category names 32 | [{"regex":"\#\FF0000\b","replacement":"\[\[\bKeyInsights\b\]\]"}] -------------------------------------------------------------------------------- /Deckset/Simple Dark Mode.dstheme: -------------------------------------------------------------------------------- 1 | {"baseCustomizations":{"footer":{"textScale":1.5000001192092896,"textAlignment":1,"lineHeight":0.10000000149011612,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"table":{"margin":34,"separatorColor":{"red":1,"green":1,"blue":1},"separatorHeight":1.5},"slideNumber":{"textScale":1,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"footnote":{"textScale":0.69999992847442627,"textAlignment":0,"color":{"red":1,"green":1,"blue":1},"lineHeight":1,"separatorColor":{"red":0.58513993019999999,"green":0.58520787949999997,"blue":0.5851007104},"separatorHeight":0.5,"separatorMargin":2,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"}},"link":{"textScale":1,"underlineStyle":1,"lineHeight":1.1000000238418579,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":0.25490196078431371,"green":0.61176470588235299,"blue":1}},"headerStrong":{"textScale":1,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":1,"green":1,"blue":1}},"quote":{"quoteLineHeight":1,"quoteAuthorLineHeight":1,"quoteTextAlignment":2,"quoteAuthorFont":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"quoteAuthorTextAlignment":1,"quoteTextScale":1,"quoteColor":{"red":1,"green":1,"blue":1},"quoteAuthorTextScale":1,"quoteFont":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"quoteAuthorColor":{"red":1,"green":1,"blue":1}},"code":{"colorMode":"auto","colors":[{"red":0,"green":0.48627450980392156,"blue":0.98431372549019602},{"red":0.58823529411764708,"green":0.58823529411764708,"blue":0.58823529411764708},{"red":0.99215686274509807,"green":0.14509803921568629,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0}],"lineHeight":2.0000002384185791,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"seed":3},"headerEmphasis":{"textScale":1,"textAlignment":2,"lineHeight":0.9999997615814209,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":1,"green":1,"blue":1}},"list":{"color":{"red":1,"green":1,"blue":1},"bulletCharacter":"•","alignment":0},"text":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"textEmphasis":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":1,"green":1,"blue":1}},"background":{"color":{"red":0.11764705882352941,"green":0.11764705882352941,"blue":0.11764705882352941}},"textStrong":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":1,"green":1,"blue":1}},"header":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":0.59607843137254901,"green":0.59607843137254901,"blue":0.61568627450980395}},"math":{"color":{"red":1,"green":1,"blue":1},"alignment":2,"textScale":1}},"creationDate":1592950242.2620831,"importDate":1592950242.2620831,"baseTheme":{"identifier":"simple","variantIdentifier":"scheme2"},"name":"Apple Dark Mode","type":1,"customizations":{},"identifier":"C0C47E3D-C757-40C9-920C-13D6E9DC720B"} -------------------------------------------------------------------------------- /Deckset/Simple Dark Highlight.dstheme: -------------------------------------------------------------------------------- 1 | {"baseTheme":{"identifier":"simple","variantIdentifier":"scheme2"},"importDate":1592950242.2620831,"creationDate":1592950242.2620831,"customizations":{},"name":"Apple Dark Mode","identifier":"C0C47E3D-C757-40C9-920C-13D6E9DC720B","baseCustomizations":{"link":{"textScale":1,"underlineStyle":1,"lineHeight":1.1000000238418579,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":0.25490196078431371,"green":0.61176470588235299,"blue":1}},"table":{"margin":34,"separatorColor":{"red":1,"green":1,"blue":1},"separatorHeight":1.5},"footnote":{"textScale":0.69999992847442627,"textAlignment":0,"color":{"red":1,"green":1,"blue":1},"lineHeight":1,"separatorColor":{"red":0.58513993019999999,"green":0.58520787949999997,"blue":0.5851007104},"separatorHeight":0.5,"separatorMargin":2,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"}},"textStrong":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":1,"green":1,"blue":1}},"header":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":0.59607843137254901,"green":0.59607843137254901,"blue":0.61568627450980395}},"code":{"colorMode":"auto","colors":[{"red":0,"green":0.48627450980392156,"blue":0.98431372549019602},{"red":0.58823529411764708,"green":0.58823529411764708,"blue":0.58823529411764708},{"red":0.99215686274509807,"green":0.14509803921568629,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0}],"lineHeight":2.0000002384185791,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"seed":3},"list":{"color":{"red":1,"green":1,"blue":1},"bulletCharacter":"•","alignment":0},"headerEmphasis":{"textScale":1,"textAlignment":2,"lineHeight":2,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":1,"green":1,"blue":1}},"background":{"color":{"red":0.11764705882352941,"green":0.11764705882352941,"blue":0.11764705882352941}},"textEmphasis":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":1,"green":1,"blue":1}},"quote":{"quoteLineHeight":1,"quoteAuthorLineHeight":1,"quoteTextAlignment":2,"quoteAuthorFont":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"quoteAuthorTextAlignment":1,"quoteTextScale":1,"quoteColor":{"red":1,"green":1,"blue":1},"quoteAuthorTextScale":1,"quoteFont":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"quoteAuthorColor":{"red":1,"green":1,"blue":1}},"footer":{"textScale":1.5000001192092896,"textAlignment":1,"lineHeight":0.10000000149011612,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"math":{"color":{"red":1,"green":1,"blue":1},"alignment":2,"textScale":1},"text":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"headerStrong":{"textScale":1,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":1,"green":0.62352941176470589,"blue":0.039215686274509803}},"slideNumber":{"textScale":1,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}}},"type":1} -------------------------------------------------------------------------------- /Deckset/Simple Dark Cool Highlight.dstheme: -------------------------------------------------------------------------------- 1 | {"creationDate":1592951070.1145759,"importDate":1592954171.1530461,"baseCustomizations":{"slideNumber":{"textScale":1,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"textEmphasis":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":1,"green":1,"blue":1}},"code":{"colorMode":"auto","colors":[{"red":0,"green":0.48627450980392156,"blue":0.98431372549019602},{"red":0.58823529411764708,"green":0.58823529411764708,"blue":0.58823529411764708},{"red":0.99215686274509807,"green":0.14509803921568629,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0}],"lineHeight":2.0000002384185791,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"seed":3},"background":{"color":{"red":0.11764705882352941,"green":0.11764705882352941,"blue":0.11764705882352941}},"quote":{"quoteLineHeight":1,"quoteAuthorLineHeight":1,"quoteTextAlignment":2,"quoteAuthorFont":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"quoteAuthorTextAlignment":1,"quoteTextScale":1,"quoteColor":{"red":1,"green":1,"blue":1},"quoteAuthorTextScale":1,"quoteFont":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"quoteAuthorColor":{"red":1,"green":1,"blue":1}},"math":{"color":{"red":1,"green":1,"blue":1},"alignment":2,"textScale":1},"headerStrong":{"textScale":1,"textAlignment":2,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":0.25490196078431371,"green":0.61176470588235299,"blue":1}},"table":{"margin":34,"separatorColor":{"red":1,"green":1,"blue":1},"separatorHeight":1.5},"header":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":0.59607843137254901,"green":0.59607843137254901,"blue":0.61568627450980395}},"headerEmphasis":{"textScale":1,"textAlignment":2,"lineHeight":2,"font":{"familyName":"Meta","fullName":"Meta-Italic","memberName":"Italic"},"color":{"red":1,"green":1,"blue":1}},"footnote":{"textScale":0.69999992847442627,"textAlignment":0,"color":{"red":1,"green":1,"blue":1},"lineHeight":1,"separatorColor":{"red":0.58513993019999999,"green":0.58520787949999997,"blue":0.5851007104},"separatorHeight":0.5,"separatorMargin":2,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"}},"link":{"textScale":1,"underlineStyle":1,"lineHeight":1.1000000238418579,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":0.25490196078431371,"green":0.61176470588235299,"blue":1}},"textStrong":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Bold","memberName":"Bold"},"color":{"red":1,"green":1,"blue":1}},"footer":{"textScale":1.5000001192092896,"textAlignment":1,"lineHeight":0.10000000149011612,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}},"list":{"color":{"red":1,"green":1,"blue":1},"bulletCharacter":"•","alignment":0},"text":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"Meta","fullName":"Meta-Regular","memberName":"Regular"},"color":{"red":1,"green":1,"blue":1}}},"baseTheme":{"identifier":"simple","variantIdentifier":"scheme2"},"name":"Simple Dark Highlight","identifier":"C80EF111-E072-467E-9413-6075FEBCF876","customizations":{},"type":1} -------------------------------------------------------------------------------- /Obsidian/CSS snippets/Andy Matuschak mode.css: -------------------------------------------------------------------------------- 1 | /* everything under .mod-root now. Don't want Andy messing with sidebars */ 2 | /* also, Andy only makes sense for vertical splits, at the root level, right? */ 3 | .mod-root.workspace-split.mod-vertical { 4 | overflow-x:auto; 5 | --header-width: 36px; /* <- 36px is the header height in the default theme */ 6 | } 7 | .mod-root.workspace-split.mod-vertical > div { 8 | min-width: calc(700px + var(--header-width)); /* <-- 700px is the default theme's "readable" max-width */ 9 | box-shadow: 0px 0px 20px 20px rgba(0,0,0,0.25); 10 | position:sticky; 11 | left:0; 12 | } 13 | /* shift sticky position, so titles will stack up to the left / 14 | / This will currently stack to a maximum of 10 before resetting */ 15 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-8) { left: calc(var(--header-width) * 0); } 16 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-7) { left: calc(var(--header-width) * 1); } 17 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-6) { left: calc(var(--header-width) * 2); } 18 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-5) { left: calc(var(--header-width) * 3); } 19 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-4) { left: calc(var(--header-width) * 4); } 20 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-3) { left: calc(var(--header-width) * 5); } 21 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-2) { left: calc(var(--header-width) * 6); } 22 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-1) { left: calc(var(--header-width) * 7); } 23 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n+0) { left: calc(var(--header-width) * 8); } 24 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n+1) { left: calc(var(--header-width) * 9); } 25 | /* now it's time for the fancy vertical titles */ 26 | /* first we'll add a bit of gap for the title to sit inside of */ 27 | .workspace-leaf-content { 28 | padding-left: var(--header-width); 29 | position: relative; 30 | } 31 | /* this is where the magic happens */ 32 | .view-header { 33 | writing-mode: vertical-lr; 34 | border-right: 1px solid var(--background-secondary-alt); 35 | border-left: 2px solid var(--background-secondary-alt); 36 | border-top: none; 37 | border-bottom: none; 38 | height: auto; 39 | width: var(--header-width); 40 | position: absolute; 41 | left:0; 42 | top:0; 43 | bottom:0; 44 | } 45 | /* active titles have different border colours */ 46 | .workspace-leaf.mod-active .view-header { 47 | border-right: 2px solid var(--interactive-accent); 48 | border-bottom: none; 49 | } 50 | /* unset the title container height and swap padding */ 51 | .view-header-title-container { 52 | height: unset; 53 | padding-left: unset; 54 | padding-top: 5px; 55 | } 56 | /* fix the long-title-obscuring shadows */ 57 | .view-header-title-container:after { 58 | width: 100%; 59 | height: 30px; 60 | top:unset; 61 | bottom: 0; 62 | background: linear-gradient(to bottom, transparent, var(--background-secondary)); 63 | } 64 | .workspace-leaf.mod-active .view-header-title-container:after { 65 | background: linear-gradient(to bottom, transparent, var(--background-primary-alt)); 66 | } 67 | /* swap the padding/margin around for the header and actions icons */ 68 | .view-header-icon, .view-actions { 69 | padding: 10px 5px; 70 | } 71 | .view-action { 72 | margin: 8px 0; 73 | } 74 | /* get rid of the gap left by the now-missing horizontal title */ 75 | .view-content { 76 | height: 100%; 77 | } 78 | /* make the fake drop target overlay have a background so you can see it. / 79 | / TODO: figure out how the fake target overlay works so we can put the title back, too */ 80 | .workspace-fake-target-overlay { 81 | background-color: var(--background-primary); 82 | } -------------------------------------------------------------------------------- /Obsidian/Autoamtion Scripts/copy markdown link.js: -------------------------------------------------------------------------------- 1 | //Based on https://forum.obsidian.md/t/compatibility-with-hook-productivity-on-mac-os/2021/30?u=linxule by technicalpickles 2 | // Used in KeyboardMaestro and Hook 3 | // to Get Obsidian File Name 4 | 5 | //Consolidated version to use in Hook 6 | //JavaScript 7 | (() => { 8 | 'use strict'; 9 | 10 | const main = () => { 11 | const app = Application.currentApplication() 12 | app.includeStandardAdditions = true 13 | 14 | const homeDirectory = app.pathTo("home folder").toString() 15 | 16 | const obsidianJSONPath = `${homeDirectory}/Library/Application Support/obsidian/obsidian.json` 17 | const obsidianData = JSON.parse(app.read(Path(obsidianJSONPath))) 18 | 19 | const workspaceJSONPath = `/Users/xulelin/Dropbox/Notes/.obsidian/workspace` 20 | ObjC.import('Foundation') 21 | 22 | const readFile = function (path, encoding) { 23 | !encoding && (encoding = $.NSUTF8StringEncoding) 24 | 25 | const fm = $.NSFileManager.defaultManager 26 | const data = fm.contentsAtPath(path) 27 | const str = $.NSString.alloc.initWithDataEncoding(data, encoding) 28 | return ObjC.unwrap(str) 29 | } 30 | 31 | const workspaceData = JSON.parse(readFile(workspaceJSONPath,$.NSUTF8StringEncoding)) 32 | 33 | const currentDocument = workspaceData["lastOpenFiles"][0] 34 | 35 | 36 | 37 | 38 | const slashParts = currentDocument.split("/") 39 | 40 | 41 | const basename = slashParts[slashParts.length - 1] 42 | var title="" 43 | if (basename) { 44 | title = basename.replace(/\.md$/, '') 45 | } 46 | const uri = `[${title}](obsidian://open?vault=Notes&file=${encodeURIComponent( currentDocument)})` 47 | return uri ; 48 | 49 | 50 | } 51 | 52 | return main(); 53 | 54 | })() 55 | 56 | 57 | // Stand-alone version used in KeyboardMaestro 58 | //JavaScript 59 | (() => { 60 | 'use strict'; 61 | 62 | const main = () => { 63 | const app = Application.currentApplication() 64 | app.includeStandardAdditions = true 65 | 66 | const homeDirectory = app.pathTo("home folder").toString() 67 | 68 | const obsidianJSONPath = `${homeDirectory}/Library/Application Support/obsidian/obsidian.json` 69 | const obsidianData = JSON.parse(app.read(Path(obsidianJSONPath))) 70 | 71 | const workspaceJSONPath = `/Users/xulelin/Dropbox/Notes/.obsidian/workspace` 72 | const workspaceData = JSON.parse(app.read(Path(workspaceJSONPath))) 73 | 74 | const currentDocument = workspaceData["lastOpenFiles"][0] 75 | const slashParts = currentDocument.split("/") 76 | 77 | 78 | const basename = slashParts[slashParts.length - 1] 79 | if (basename) { 80 | const title = basename.replace(/\.md$/, '') 81 | return title 82 | } 83 | } 84 | 85 | return main(); 86 | })() 87 | 88 | 89 | // to Get Obsidian URI 90 | //JavaScript 91 | (() => { 92 | 'use strict'; 93 | 94 | const main = () => { 95 | const app = Application.currentApplication() 96 | app.includeStandardAdditions = true 97 | 98 | const homeDirectory = app.pathTo("home folder").toString() 99 | 100 | const obsidianJSONPath = `${homeDirectory}/Library/Application Support/obsidian/obsidian.json` 101 | const obsidianData = JSON.parse(app.read(Path(obsidianJSONPath))) 102 | 103 | 104 | const vaultId = obsidianData["open"] 105 | 106 | const workspaceJSONPath = `/Users/xulelin/Dropbox/Notes/.obsidian/workspace` 107 | const workspaceData = JSON.parse(app.read(Path(workspaceJSONPath))) 108 | 109 | const currentDocument = workspaceData["lastOpenFiles"][0] 110 | 111 | const uri = `obsidian://open?vault=Notes&file=${encodeURIComponent(currentDocument)}` 112 | return uri; 113 | } 114 | 115 | return main(); 116 | 117 | })() -------------------------------------------------------------------------------- /Markdown Tools/FindAndReplace/Update Date Edited.kmmacros: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Activate 7 | Normal 8 | CreationDate 9 | 612104362.73582494 10 | Macros 11 | 12 | 13 | Actions 14 | 15 | 16 | KeyCode 17 | 0 18 | MacroActionType 19 | SimulateKeystroke 20 | Modifiers 21 | 256 22 | ReleaseAll 23 | 24 | TargetApplication 25 | 26 | TargetingType 27 | Front 28 | 29 | 30 | KeyCode 31 | 8 32 | MacroActionType 33 | SimulateKeystroke 34 | Modifiers 35 | 256 36 | ReleaseAll 37 | 38 | TargetApplication 39 | 40 | TargetingType 41 | Front 42 | 43 | 44 | MacroActionType 45 | SetVariableToText 46 | Text 47 | Date Edited: [[%ICUDateTime%yyyy-MM-dd%]] 48 | Variable 49 | Date Edited 50 | 51 | 52 | Action 53 | IgnoreCaseRegEx 54 | Destination 55 | Clipboard 56 | MacroActionType 57 | SearchReplace 58 | Replace 59 | %Variable%Date Edited% 60 | Search 61 | \bDate Edited\b\: \[\[(\d\d\d\d)-(\d\d??)-(\d\d?)]] 62 | Source 63 | Clipboard 64 | 65 | 66 | KeyCode 67 | 9 68 | MacroActionType 69 | SimulateKeystroke 70 | Modifiers 71 | 256 72 | ReleaseAll 73 | 74 | TargetApplication 75 | 76 | TargetingType 77 | Front 78 | 79 | 80 | CreationDate 81 | 621442817.76178801 82 | ModificationDate 83 | 621450513.235811 84 | Name 85 | UpdateDE 86 | Triggers 87 | 88 | 89 | FireType 90 | Pressed 91 | KeyCode 92 | 2 93 | MacroTriggerType 94 | HotKey 95 | Modifiers 96 | 2304 97 | 98 | 99 | MacroTriggerType 100 | TypedString 101 | SimulateDeletes 102 | 103 | TypedString 104 | de[ 105 | 106 | 107 | UID 108 | 6652E2F7-22C7-4DE6-88ED-D6BEC8A4A05D 109 | 110 | 111 | Name 112 | Global TextExpand 113 | ToggleMacroUID 114 | 3F6A4C67-0F45-414F-A0B3-6816BF0AB885 115 | UID 116 | 699A55E2-6862-4C7A-9771-A2F9C237EB66 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /Deckset/San Francisco in IC Blue.dstheme: -------------------------------------------------------------------------------- 1 | {"baseCustomizations":{"text":{"textScale":1,"textAlignment":0,"lineHeight":1.1000000238418579,"font":{"familyName":"SF Pro","fullName":"SFPro-Regular","memberName":"Regular"},"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522}},"textStrong":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"SF Pro","fullName":"SFPro-Semibold","memberName":"Semibold"},"color":{"red":0.92549019610000005,"green":0.45098039220000002,"blue":0}},"table":{"margin":20,"separatorColor":{"red":0.61568627450000002,"green":0.61568627450000002,"blue":0.61568627450000002},"separatorHeight":1},"code":{"colorMode":"manual","colors":[{"red":0,"green":0.48627450980392156,"blue":0.98431372549019602},{"red":0.58823529411764708,"green":0.58823529411764708,"blue":0.58823529411764708},{"red":0.99215686274509807,"green":0.14509803921568629,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0},{"red":0,"green":0.86274509803921573,"blue":0}],"lineHeight":1,"seed":0},"textEmphasis":{"textScale":0.69999992847442627,"textAlignment":0,"lineHeight":1,"font":{"familyName":"SF Pro","fullName":"SFPro-Thin","memberName":"Thin"},"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522}},"list":{"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522},"bulletCharacter":"‣","alignment":0},"quote":{"quoteLineHeight":1.2000000476837158,"quoteAuthorLineHeight":1.0000001192092896,"quoteTextAlignment":0,"quoteAuthorFont":{"familyName":"SF Mono","fullName":"SFMono-RegularItalic","memberName":"Regular Italic"},"quoteAuthorTextAlignment":1,"quoteTextScale":1,"quoteColor":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522},"quoteAuthorTextScale":1,"quoteFont":{"familyName":"SF Mono","fullName":"SFMono-Regular","memberName":"Regular"},"quoteAuthorColor":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522}},"link":{"textScale":0.40000000596046448,"underlineStyle":1,"lineHeight":0.79999995231628418,"font":{"familyName":"SF Pro","fullName":"SFPro-Light","memberName":"Light"},"color":{"red":0.61568627450000002,"green":0.61568627450000002,"blue":0.61568627450000002}},"background":{"color":{"red":0,"green":0.24313725489999999,"blue":0.4549019608}},"slideNumber":{"textScale":0.49999991059303284,"textAlignment":0,"lineHeight":0.10000000149011612,"font":{"familyName":"SF Pro","fullName":"SFPro-Thin","memberName":"Thin"},"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522}},"headerEmphasis":{"textScale":1,"textAlignment":0,"lineHeight":1.1000000238418579,"font":{"familyName":"SF Pro","fullName":"SFPro-BlackItalic","memberName":"Black Italic"},"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522}},"header":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"SF Pro","fullName":"SFPro-Heavy","memberName":"Heavy"},"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522}},"footer":{"textScale":0.5,"textAlignment":2,"lineHeight":0.10000000149011612,"font":{"familyName":"SF Pro","fullName":"SFPro-Thin","memberName":"Thin"},"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522}},"footnote":{"textScale":0.39999991655349731,"textAlignment":0,"color":{"red":1,"green":0.99999994039535522,"blue":0.99999994039535522},"lineHeight":1.0000001192092896,"separatorColor":{"red":1,"green":1,"blue":1},"separatorHeight":0,"separatorMargin":1.639127766850379e-08,"font":{"familyName":"SF Pro","fullName":"SFPro-Light","memberName":"Light"}},"headerStrong":{"textScale":1,"textAlignment":0,"lineHeight":1,"font":{"familyName":"SF Pro","fullName":"SFPro-Black","memberName":"Black"},"color":{"red":0.92549019610000005,"green":0.45098039220000002,"blue":0}},"math":{"color":{"red":0.21568627450980393,"green":0.21568627450980393,"blue":0.21568627450980393},"alignment":2,"textScale":1}},"customizations":{},"identifier":"D3EEEA7D-BA6E-4FFB-83BA-360A18C6AED5","importDate":1669640953.54286,"name":"San Francisco in IC Blue","creationDate":1667227390.1684961,"type":1,"baseTheme":{"identifier":"simple","variantIdentifier":"scheme1"}} -------------------------------------------------------------------------------- /Zotero/zotero-mdnotes/Mdnotes Custom Preferences - "Titles" for different item types.js: -------------------------------------------------------------------------------- 1 | /* To add these "title" types manually, here are the settings & values copied out of Zotero: */ 2 | /* Related discussion on GitHub https://github.com/argenos/zotero-mdnotes/issues/42 */ 3 | 4 | # Mdnotes Custom Preferences 5 | 6 | ## Titles of Item 7 | * publicationTitle 8 | * extensions.mdnotes.placeholder.publicationTitle;{"content":"{{bullet}} Publication: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 9 | * programTitle 10 | * extensions.mdnotes.placeholder.programTitle;{"content":"{{bullet}} Program: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 11 | * websiteTitle 12 | * extensions.mdnotes.placeholder.websiteTitle;{"content":"{{bullet}} Website: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 13 | * blogTitle 14 | * extensions.mdnotes.placeholder.blogTitle;{"content":"{{bullet}} Blog: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 15 | * bookTitle 16 | * extensions.mdnotes.placeholder.bookTitle;{"content":"{{bullet}} Book: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 17 | * encyclopediaTitle 18 | * extensions.mdnotes.placeholder.encyclopediaTitle;{"content":"{{bullet}} Encyclopedia: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 19 | * forumTitle 20 | * extensions.mdnotes.placeholder.forumTitle;{"content":"{{bullet}} Forum: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 21 | * shortTitle 22 | * extensions.mdnotes.placeholder.shortTitle;{"content":"{{bullet}} Short Title: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki"} 23 | * extensions.mdnotes.placeholder.shortTitle;{"content":"{{field_contents}}", "field_contents": "{{content}}", "link_style": "no-links"} 24 | * ==used with citekey for Note Name== 25 | 26 | 27 | ## Modified items 28 | 29 | - title 30 | - extensions.mdnotes.placeholder.title;{"content":"{{field_contents}}", "field_contents": "{{content}}", "link_style": "no-links"} 31 | - citekey 32 | - extensions.mdnotes.placeholder.citekey;{"content":"{{field_contents}}", "field_contents": "{{content}}", "link_style": "no-links"} 33 | - notes 34 | - extensions.mdnotes.placeholder.notes;{"content":"## Notes\n\n- {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki", "list_separator": "\n- "} 35 | - tags 36 | - extensions.mdnotes.placeholder.tags;{"content":"{{bullet}} Tags: {{field_contents}}", "field_contents": "{{content}}", "link_style": "wiki", "list_separator": ", ", "remove_spaces": "true"} 37 | 38 | ## Wildcards 39 | 40 | ### Zotfile examples 41 | { 42 | "a": "author", 43 | "A": {"field": "author", "operations":[{"function":"exec","regex": "\\w{1}"},{"function":"toUpperCase"}]}, 44 | "F": "authorLastF", 45 | "I": "authorInitials", 46 | "d": "editor", 47 | "D": {"field": "editor", "operations":[{"function":"exec","regex": "\\w{1}"},{"function":"toUpperCase"}]}, 48 | "L": "editorLastF", 49 | "l": "editorInitials", 50 | "t": "titleFormated", 51 | "h": "shortTitle", 52 | "j": "publicationTitle", 53 | "s": "journalAbbreviation", 54 | "p": "publisher", 55 | "w": {"default": "publisher", "audioRecording": "label", "bill": "legislativeBody", "case": "court", "computerProgram": "company", "film": "distributor", "journalArticle": "publicationTitle", "magazineArticle": "publicationTitle", "newspaperArticle": "publicationTitle", "patent": "issuingAuthority", "presentation": "meetingName", "radioBroadcast": "network", "report": "institution", "thesis": "university", "tvBroadcast": "network"}, 56 | "n": "patentNumber", 57 | "i": "assignee", 58 | "y": {"field": {"default": "date", "patent": "issueDate"}, "operations":[{"function":"exec","regex": "\\d{4}"}]}, "v": "volume", 59 | "e": "issue", 60 | "T": "itemType", 61 | "f": "pages", 62 | "x": "extra", 63 | "c": "collectionPaths", 64 | "g": "authorLastG", 65 | "q":"lastAuthor", 66 | "Q":"lastAuthor_lastInitial", 67 | "u":"lastAuthor_lastf", 68 | "U":"lastAuthor_initials", 69 | "b":"citekey" 70 | } -------------------------------------------------------------------------------- /Zettlr/Bear-like.md: -------------------------------------------------------------------------------- 1 | /********** Root **********/ 2 | 3 | :root { 4 | /*colors*/ 5 | --editor-background: rgba(251, 251, 251); 6 | --editor-textcolor: rgba(70, 70, 70); 7 | --editor-selectedtextcolor: rgb(204, 230, 255); 8 | } 9 | 10 | /*** Minimalist Mode. Comment this section out for Normal Mode ***/ 11 | 12 | #editor, 13 | #sidebar { 14 | top: 0px; 15 | } 16 | 17 | #document-tabs { 18 | height: 0px; 19 | border-bottom: 0px !important; 20 | } 21 | 22 | body #file-tree #directories-dirs-header { 23 | padding-top: 31px; 24 | padding-bottom: 21px; 25 | } 26 | 27 | /********** End Minimalist Mode **********/ 28 | 29 | /********** Toolbar **********/ 30 | body.dark #toolbar .searchbar input, 31 | body #toolbar .searchbar input { 32 | background-color: white; 33 | border: 1px solid lightgrey; 34 | } 35 | 36 | /********** Body CodeMirror **********/ 37 | 38 | body .CodeMirror { 39 | /*set text clour*/ 40 | color: var(--editor-textcolor) !important; 41 | font-size: 1em; 42 | } 43 | 44 | body .CodeMirror-selected { 45 | background-color: var(--editor-selectedtextcolor) !important; 46 | } 47 | 48 | /********** Editor **********/ 49 | #editor * { 50 | font-family: 'Avenir', sans-serif; 51 | } 52 | 53 | body #editor, 54 | body.dark #editor { 55 | background-color: var(--editor-background); 56 | } 57 | 58 | #editor .cm-strong { 59 | color: black; 60 | font-weight: 500; 61 | } 62 | 63 | #editor .cm-em { 64 | color: black; 65 | } 66 | 67 | /***** Sidebar Resize (small section to left of editor) *****/ 68 | 69 | body #sidebar-resize, 70 | body.dark #sidebar-resize { 71 | background-color: var(--editor-background) !important; 72 | } 73 | 74 | /********** File Tree **********/ 75 | 76 | #file-tree { 77 | font-family: 'Avenir', sans-serif; 78 | } 79 | 80 | body #file-tree div.list-item.selected { 81 | color: var(--c-primary); 82 | background-color: transparent; 83 | border-left: 4px solid var(--c-primary); 84 | } 85 | 86 | body.dark #file-tree div.list-item.selected { 87 | color: var(--c-primary); 88 | background-color: transparent; 89 | border-left: 4px solid var(--c-primary); 90 | } 91 | 92 | body #file-tree div.list-item.project { 93 | color: var(--grey-4); 94 | } 95 | 96 | body.dark #file-tree div.list-item.project { 97 | color: white; 98 | } 99 | 100 | body #file-tree div.list-item.project.selected, 101 | body.dark #file-tree div.list-item.project.selected { 102 | color: var(--c-primary); 103 | } 104 | 105 | body #file-tree #directories-dirs-header { 106 | color: var(--editor-textcolor); 107 | } 108 | 109 | body.dark #file-tree #directories-dirs-header { 110 | color: white; 111 | } 112 | 113 | /********** File Lists **********/ 114 | 115 | #file-list { 116 | background-color: var(--editor-background) !important; 117 | box-shadow: 0px 0px var(--editor-background) !important; 118 | border-right: 1px solid lightgrey; 119 | font-family: 'Avenir', sans-serif; 120 | } 121 | 122 | body #file-list div.list-item { 123 | background-color: var(--editor-background); 124 | color: var(--editor-textcolor); 125 | } 126 | 127 | body #file-list div.list-item.selected, 128 | body.dark #file-list div.list-item.selected { 129 | background-color: var(--editor-background) !important; 130 | background-color: white !important; 131 | } 132 | 133 | body #file-list div.list-item.directory, 134 | body.dark #file-list div.list-item.directory { 135 | background-color: var(--editor-background) !important; 136 | } 137 | 138 | /********** Document Tabs **********/ 139 | body.dark #document-tabs, 140 | body #document-tabs { 141 | background-color: var(--editor-background); 142 | color: lightgrey; 143 | border-bottom: 1px dotted lightgrey; 144 | /*height: 0;*/ 145 | } 146 | 147 | body.dark #document-tabs .document.active, 148 | body #document-tabs .document.active { 149 | background-color: var(--editor-background); 150 | color: var(--c-primary); 151 | border-left: 2px solid var(--c-primary); 152 | ; 153 | } 154 | 155 | /********** Scrollbars **********/ 156 | 157 | ::-webkit-scrollbar { 158 | display: none; 159 | } -------------------------------------------------------------------------------- /Zettlr/zettlr - bear theme.md: -------------------------------------------------------------------------------- 1 | /********** Root **********/ 2 | 3 | :root { 4 | /*colors*/ 5 | --editor-background: rgba(251, 251, 251); 6 | --editor-textcolor: rgba(70, 70, 70); 7 | --editor-selectedtextcolor: rgb(204, 230, 255); 8 | } 9 | 10 | /*** Minimalist Mode. Comment this section out for Normal Mode ***/ 11 | 12 | #editor, 13 | #sidebar { 14 | top: 0px; 15 | } 16 | 17 | #document-tabs { 18 | height: 0px; 19 | border-bottom: 0px !important; 20 | } 21 | 22 | body #file-tree #directories-dirs-header { 23 | padding-top: 31px; 24 | padding-bottom: 21px; 25 | } 26 | 27 | /********** End Minimalist Mode **********/ 28 | 29 | /********** Toolbar **********/ 30 | body.dark #toolbar .searchbar input, 31 | body #toolbar .searchbar input { 32 | background-color: white; 33 | border: 1px solid lightgrey; 34 | } 35 | 36 | /********** Body CodeMirror **********/ 37 | 38 | body .CodeMirror { 39 | /*set text clour*/ 40 | color: var(--editor-textcolor) !important; 41 | font-size: 1em; 42 | } 43 | 44 | body .CodeMirror-selected { 45 | background-color: var(--editor-selectedtextcolor) !important; 46 | } 47 | 48 | /********** Editor **********/ 49 | #editor * { 50 | font-family: 'Avenir', sans-serif; 51 | } 52 | 53 | body #editor, 54 | body.dark #editor { 55 | background-color: var(--editor-background); 56 | } 57 | 58 | #editor .cm-strong { 59 | color: black; 60 | font-weight: 500; 61 | } 62 | 63 | #editor .cm-em { 64 | color: black; 65 | } 66 | 67 | /***** Sidebar Resize (small section to left of editor) *****/ 68 | 69 | body #sidebar-resize, 70 | body.dark #sidebar-resize { 71 | background-color: var(--editor-background) !important; 72 | } 73 | 74 | /********** File Tree **********/ 75 | 76 | #file-tree { 77 | font-family: 'Avenir', sans-serif; 78 | } 79 | 80 | body #file-tree div.list-item.selected { 81 | color: var(--c-primary); 82 | background-color: transparent; 83 | border-left: 4px solid var(--c-primary); 84 | } 85 | 86 | body.dark #file-tree div.list-item.selected { 87 | color: var(--c-primary); 88 | background-color: transparent; 89 | border-left: 4px solid var(--c-primary); 90 | } 91 | 92 | body #file-tree div.list-item.project { 93 | color: var(--grey-4); 94 | } 95 | 96 | body.dark #file-tree div.list-item.project { 97 | color: white; 98 | } 99 | 100 | body #file-tree div.list-item.project.selected, 101 | body.dark #file-tree div.list-item.project.selected { 102 | color: var(--c-primary); 103 | } 104 | 105 | body #file-tree #directories-dirs-header { 106 | color: var(--editor-textcolor); 107 | } 108 | 109 | body.dark #file-tree #directories-dirs-header { 110 | color: white; 111 | } 112 | 113 | /********** File Lists **********/ 114 | 115 | #file-list { 116 | background-color: var(--editor-background) !important; 117 | box-shadow: 0px 0px var(--editor-background) !important; 118 | border-right: 1px solid lightgrey; 119 | font-family: 'Avenir', sans-serif; 120 | } 121 | 122 | body #file-list div.list-item { 123 | background-color: var(--editor-background); 124 | color: var(--editor-textcolor); 125 | } 126 | 127 | body #file-list div.list-item.selected, 128 | body.dark #file-list div.list-item.selected { 129 | background-color: var(--editor-background) !important; 130 | background-color: white !important; 131 | } 132 | 133 | body #file-list div.list-item.directory, 134 | body.dark #file-list div.list-item.directory { 135 | background-color: var(--editor-background) !important; 136 | } 137 | 138 | /********** Document Tabs **********/ 139 | body.dark #document-tabs, 140 | body #document-tabs { 141 | background-color: var(--editor-background); 142 | color: lightgrey; 143 | border-bottom: 1px dotted lightgrey; 144 | /*height: 0;*/ 145 | } 146 | 147 | body.dark #document-tabs .document.active, 148 | body #document-tabs .document.active { 149 | background-color: var(--editor-background); 150 | color: var(--c-primary); 151 | border-left: 2px solid var(--c-primary); 152 | ; 153 | } 154 | 155 | /********** Scrollbars **********/ 156 | 157 | ::-webkit-scrollbar { 158 | display: none; 159 | } -------------------------------------------------------------------------------- /Zettlr/zettlr - Dark theme.md: -------------------------------------------------------------------------------- 1 | /* Enter your custom CSS here */ 2 | 3 | 4 | body.dark #editor { 5 | background-color: #22222d !important; 6 | } 7 | 8 | body.dark #toolbar .button { 9 | opacity:0.9; 10 | color: #ffffff; 11 | } 12 | #toolbar div.button.formatting { 13 | opacity:1 !important; 14 | color: #879df3; 15 | } 16 | #toolbar .button.pomodoro { 17 | display:none; 18 | } 19 | body.dark #toolbar div.button.menu-popup { 20 | opacity:1; 21 | } 22 | body.dark #toolbar:hover * { 23 | opacity:1; 24 | transition: 0.3s all ease; 25 | } 26 | body.dark .cm-strong, body.dark .cm-em { 27 | color: #b5d3ef; 28 | } 29 | body.dark .cm-zkn-tag, body.dark .cm-zkn-id, body.dark .cm-zkn-link { 30 | color: #aeafdc; 31 | } 32 | 33 | body.dark .cm-zkn-tag, body.dark .cm-zkn-id, body.dark .cm-zkn-link { 34 | background-color: #3dab7e; 35 | color: #fff; 36 | padding: 1px; 37 | border-radius: 5px; 38 | font-size: 20px; 39 | } 40 | body.dark span.cm-null:nth-child(even) { 41 | background-color: #37a0ee; 42 | } 43 | body.dark .cm-null .cm-zkn-tag #text { 44 | display:none; 45 | } 46 | body.dark .cm-formatting.cm-formatting-link.cm-link.cm-zkn-link{ 47 | display:none; 48 | } 49 | body.dark #file-list { 50 | 51 | background-color: #21212b !important; 52 | color: #fff; 53 | box-shadow: inset -14px 2px 54px -23px rgba(0,0,0,0.5); 54 | margin-top: 1px; 55 | font-size: 1em; 56 | } 57 | body.dark #file-list div.container .selected { 58 | background-color: #485161 !important; 59 | border-left: 5px solid #df5d33; 60 | font-weight: bold; 61 | color: #df5d33 #fff !important; 62 | } 63 | body.dark #file-list div.container div.list-item { 64 | background-color: #353546; 65 | box-shadow: inset -14px 2px 54px -23px rgba(0,0,0,0.5); 66 | border-top-color: #444; 67 | border-bottom-color: #444; 68 | height: 60px; 69 | color: #fff !important; 70 | } 71 | #component-container #file-tree { 72 | box-shadow: inset -14px 2px 54px -23px rgba(0,0,0,0.5); 73 | } 74 | body.dark #sidebar #file-list ul li.directory, body.dark #sidebar #file-list ul li.virtual-directory { 75 | background-color: #030304; 76 | color: white; 77 | font-weight: bold; 78 | } 79 | body #sidebar div.container div.list-item div.meta .date, body #sidebar #file-list .id, body #sidebar div.container div.list-item div.meta .tags 80 | { 81 | color: #fff !important; 82 | background-color: ##25252d !important; 83 | box-shadow: 0px 0px 70px -15px rgba(255,255,255,0.55) !important; 84 | } 85 | #sidebar ul li p.filename { 86 | font-weight: 500; 87 | } 88 | .file.file-meta.ui-draggable.ui-draggable-handle p.filename 89 | { 90 | color: #fff !important; 91 | } 92 | .CodeMirror .cm-escape-char, .CodeMirror .cm-formatting-code, .CodeMirror .cm-formatting-code-block, .CodeMirror .cm-formatting-em, .CodeMirror .cm-formatting-quote, .CodeMirror span.cm-formatting-strong { 93 | opacity: .0; 94 | display: none; 95 | transition: visibility 0s, opacity 0.5s linear; 96 | position: absolute; 97 | visibility: hidden; 98 | transition: opacity 1s, visibility 1s; 99 | } 100 | 101 | .CodeMirror-line:hover .cm-formatting-em { 102 | opacity: .5; 103 | display: inline; 104 | } 105 | body.dark #file-list div.container div.list-item div.meta .directories 106 | { 107 | background-color: #b75a3d; 108 | } 109 | .CodeMirror .CodeMirror-sizer { 110 | margin-left: 40px !important; 111 | border-right-width: 30px; 112 | padding-right: 40px !important; 113 | } 114 | 115 | body #file-tree div.list-item.file:not(.root) p.filename::before { 116 | content: 'edit'; 117 | font-family: 'WebHostingHub-Glyphs'; 118 | font-size: 0.8em; 119 | } 120 | #file-tree .list-item.directory>p.filename::before { 121 | font-family: 'WebHostingHub-Glyphs'; 122 | font-size: .9em; 123 | margin-right: 5px; 124 | display: inline-block; 125 | position: relative; 126 | text-align: text-bottom; 127 | } 128 | #file-tree .list-item.directory>p.filename::before { 129 | vertical-align: bottom; 130 | content: "folder"; 131 | } -------------------------------------------------------------------------------- /Zettlr/Ayu-light.css: -------------------------------------------------------------------------------- 1 | /* interface elements */ 2 | 3 | :root { 4 | 5 | --bg-primary: #FAFAFA; 6 | --c-primary: #8A9959; 7 | --editor-textcolor: black; 8 | } 9 | 10 | /********** Scrollbars **********/ 11 | 12 | ::-webkit-scrollbar { 13 | display: none; 14 | } 15 | 16 | /* editor */ 17 | 18 | /* editor background colour*/ 19 | #editor * { 20 | font-family: 'Cantarell'; 21 | font-size: 12pt; 22 | } 23 | 24 | body #editor .CodeMirror { 25 | line-height: 2.0; 26 | } 27 | 28 | body #sidebar-resize { 29 | background-color: transparent; 30 | } 31 | 32 | body .cm-zkn-tag { 33 | background-color: #709ECC; 34 | color: #FAFAFA; 35 | padding: 3px; 36 | border-radius: 5px; 37 | } 38 | 39 | body .cm-zkn-link { 40 | 41 | background-color: #709ECC; 42 | color: #FAFAFA; 43 | padding: 3px; 44 | border-radius: 5px; 45 | 46 | } 47 | 48 | body .cm-zkn-id { 49 | 50 | background-color: #709ECC; 51 | color: #FAFAFA; 52 | padding: 3px; 53 | border-radius: 5px; 54 | 55 | } 56 | 57 | /* headings */ 58 | 59 | #editor .cm-header-1{ 60 | color: #399ee6; 61 | font-size: 15pt 62 | } 63 | 64 | #editor .cm-header-2{ 65 | font-size: 14pt; 66 | color: #399ee6; 67 | } 68 | 69 | #editor .cm-header-3{ 70 | font-size: 13pt; 71 | color: #399ee6; 72 | } 73 | 74 | #editor .cm-header-4{ 75 | font-size: 12pt; 76 | color: #399ee6; 77 | } 78 | 79 | #editor .cm-header-5{ 80 | font-size: 11pt; 81 | color: #399ee6; 82 | } 83 | 84 | 85 | /*Changes the colour of bold and italics*/ 86 | #editor .CodeMirror .cm-formatting-quote { 87 | background-color: #F27983; 88 | font-weight: bold; 89 | padding: 5px; 90 | border-left: 1px solid rgba(222, 84, 86, 1.00); 91 | } 92 | 93 | 94 | #editor .CodeMirror .cm-strong { 95 | color: #a37acc; 96 | } 97 | 98 | #editor .CodeMirror .cm-em { 99 | color: #FF9940; 100 | } 101 | 102 | #editor .CodeMirror .cm-highlight { 103 | background-color: #F27983; 104 | font-weight: bold; 105 | padding: 5px; 106 | border-radius: 5px; 107 | } 108 | 109 | #editor .CodeMirror .cm-highlight { 110 | background-color: #F27983; 111 | font-weight: bold; 112 | padding: 5px; 113 | border-radius: 5px; 114 | } 115 | 116 | ## 117 | 118 | } 119 | 120 | /* file tree*/ 121 | 122 | #file-tree { 123 | font-family: 'San Francisco', sans-serif; 124 | font-size: 8pt; 125 | } 126 | 127 | body #file-tree { 128 | background-color: #FFFFFF; 129 | color: #575F66; 130 | box-shadow: none; 131 | border-right: 5px solid #a0a6ac; 132 | font-size: 11pt; 133 | } 134 | 135 | body #file-tree div.list-item.selected { 136 | color: #FF9940; 137 | background-color: transparent; 138 | 139 | } 140 | 141 | body #file-tree .list-item.directory p.filename::before { 142 | content: '\f094'; 143 | font-family: 'WebHostingHub-Glyphs'; 144 | font-size: 0.72em; 145 | display: inline-block; 146 | 147 | } 148 | 149 | body #file-tree #directories-dirs-header { 150 | border-bottom: 1px solid transparent; 151 | } 152 | 153 | body #file-tree div.list-item.selected p.filename::before { 154 | content: '\f483'; 155 | font-family: 'WebHostingHub-Glyphs'; 156 | font-size: 0.72em; 157 | display: inline-block; 158 | } 159 | 160 | /* file list */ 161 | 162 | #file-list { 163 | font-family: 'San Francisco', sans-serif; 164 | 165 | } 166 | 167 | body #file-list { 168 | background-color: #FFFFFF; 169 | color: #575F66; 170 | border-right: 1px solid #a0a6ac; 171 | font-size: 11pt; 172 | box-shadow: none; 173 | font-size: 10pt; 174 | } 175 | 176 | body #file-list div.list-item.selected { 177 | color: #FF9940; 178 | background-color: transparent; 179 | border-left: transparent; 180 | } 181 | 182 | body #file-list div.list-item { 183 | border-bottom: 10px solid transparent; 184 | border-top: 10px solid transparent; 185 | border-left: 1px solid transparent; 186 | line-height: 15px; 187 | 188 | } 189 | 190 | 191 | body #file-list div.list-item.file { 192 | border-left: 20px solid transparent; 193 | } 194 | 195 | body #file-list div.list-item.directory { 196 | background-color: transparent; 197 | color: #575F66; 198 | font-weight: bold; 199 | } 200 | 201 | 202 | /* toolbar */ 203 | 204 | body #toolbar{ 205 | background-color: #FFFFFF; 206 | color: #575F66; 207 | border-bottom: 1px solid #a0a6ac; 208 | } 209 | 210 | /* document tabs */ 211 | 212 | /*body #document-tabs { 213 | 214 | border-bottom: 1px solid #a0a6ac; 215 | }*/ 216 | 217 | body #document-tabs .document { 218 | /*border-left: 0.5px solid #a0a6ac;*/ 219 | border-right: 1px solid #a0a6ac; 220 | } 221 | 222 | body #toolbar .searchbar input { 223 | border: 1px solid #a0a6ac; 224 | } 225 | 226 | -------------------------------------------------------------------------------- /KeyboardMaestro/Enable WikiLink.kmmacros: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Activate 7 | Normal 8 | CreationDate 9 | 628708923.76711094 10 | Macros 11 | 12 | 13 | Actions 14 | 15 | 16 | DisplayKind 17 | Variable 18 | HonourFailureSettings 19 | 20 | IncludeStdErr 21 | 22 | MacroActionType 23 | ExecuteShellScript 24 | NotifyOnFailure 25 | 26 | Path 27 | 28 | Source 29 | Nothing 30 | StopOnFailure 31 | 32 | Text 33 | cd /Users/xulelin/Dropbox/Notes/Bear/Notes 34 | ls | sed -E -e 's/.[^.]*$//' -e 's!^([0-9]+)[[:space:]-]+(.+)![[\1]] \2!' 35 | TimeOutAbortsMacro 36 | 37 | TrimResults 38 | 39 | TrimResultsNew 40 | 41 | UseText 42 | 43 | Variable 44 | NoteList 45 | 46 | 47 | Destination 48 | Variable 49 | DestinationVariable 50 | NoteName 51 | MacroActionType 52 | PromptWithList 53 | PromptUID 54 | AD84E33B-9570-482B-B6AF-CFF21BEE95AC 55 | Source 56 | Variable 57 | TimeOutAbortsMacro 58 | 59 | Variable 60 | NoteList 61 | WindowTitle 62 | Note List 63 | WindowWidth 64 | Automatic 65 | 66 | 67 | Delete 68 | 69 | Destination 70 | Variable 71 | DestinationVariable 72 | ID 73 | First 74 | 1 75 | IsActive 76 | 77 | MacroActionType 78 | Substring 79 | Second 80 | 14 81 | Source 82 | Variable 83 | StringRangeType 84 | Range 85 | Variable 86 | link 87 | 88 | 89 | Delete 90 | 91 | Destination 92 | Variable 93 | DestinationVariable 94 | name 95 | First 96 | 3 97 | IsActive 98 | 99 | MacroActionType 100 | Substring 101 | Second 102 | 14 103 | Source 104 | Variable 105 | StringRangeType 106 | Last 107 | Variable 108 | NoteName 109 | 110 | 111 | Action 112 | ByPasting 113 | MacroActionType 114 | InsertText 115 | Text 116 | [[%Variable%NoteName%]] 117 | 118 | 119 | CreationDate 120 | 628708912.43500805 121 | CustomIconData 122 | KMEC=Square=KMCOLOR:0,128,255,255=📝=86=2=4=1=KMCOLOR:255,255,255,255 123 | ModificationDate 124 | 628709357.599702 125 | Name 126 | Enable WikiLink 127 | Triggers 128 | 129 | 130 | MacroTriggerType 131 | TypedString 132 | SimulateDeletes 133 | 134 | TypedString 135 | ;[[ 136 | 137 | 138 | UID 139 | 6BC62188-3541-47CD-B200-8FCE2C7556E4 140 | 141 | 142 | Name 143 | Enable WikiLink 144 | Targeting 145 | 146 | Targeting 147 | Excluded 148 | TargetingApps 149 | 150 | 151 | BundleIdentifier 152 | net.shinyfrog.bear 153 | Name 154 | Bear 155 | NewFile 156 | /Applications/Bear.app 157 | 158 | 159 | BundleIdentifier 160 | md.obsidian 161 | Name 162 | Obsidian 163 | NewFile 164 | /Applications/Obsidian.app 165 | 166 | 167 | BundleIdentifier 168 | com.electron.zettlr 169 | Name 170 | Zettlr 171 | NewFile 172 | /Applications/Zettlr.app 173 | 174 | 175 | 176 | ToggleMacroUID 177 | A0399650-84EF-48CA-8531-DCF5A48CA05F 178 | UID 179 | 57C679E8-6DE0-4E18-A172-67E0DCD46DC4 180 | 181 | 182 | 183 | -------------------------------------------------------------------------------- /Marked/css/academic-review.css: -------------------------------------------------------------------------------- 1 | /* 2 | This document has been created with Marked.app , Copyright 2019 Brett Terpstra 3 | Content is property of the document author 4 | Please leave this notice in place, along with any additional credits below. 5 | --------------------------------------------------------------- 6 | Title: Academic Review (Adjusted for Peer Review) 7 | Author: Xule Lin 8 | Description: 9 | Paper size: US letter, 10 | Font: 12pt, Times New Roman, text-align: left, text-ident: 1em 11 | Line-spacing: 1.15em 12 | Headers: 13 | One line before and after headers, 14 | See below for details on heading level formats, 15 | Blokcquotes(adopted from Chicago style): 16 | 2 single-spaced lines after blockquotes 17 | References (adopted from Chicago style): 18 | See at (classes: .references.hanging-indent) 19 | Generated by custom processor, 20 | 0.5 inch hanging indent, 21 | 1 line before and after each item 22 | List: 23 | Simplified list style (to list issues), 24 | inside, decimal, 25 | vertical space between list items: 1em, 26 | 0 indent 27 | Print and Media: 28 | Optimized for printing from html to pdf: 29 | Page margin: 1in 1.25in 1in 1.25in (top right bottom left) 30 | */ 31 | 32 | body { 33 | -webkit-font-smoothing: antialiased; 34 | font: normal 1em/2em "Times New Roman", courier, monospace; 35 | width: auto;} 36 | 37 | html > body { 38 | font-size: 12pt; 39 | text-align: left; 40 | line-height: 1.15em;} 41 | 42 | #wrapper img { 43 | max-width: 100%; 44 | height: auto; } 45 | #wrapper p { 46 | margin-left: 0; 47 | margin-right: 0; 48 | margin-top: 1em; 49 | margin-bottom: 1em; 50 | text-indent: 1em; 51 | page-break-inside: auto; } 52 | #wrapper ul, #wrapper ol { 53 | list-style-position: outside; 54 | list-style-type: decimal; 55 | text-indent: 0; 56 | padding: 0; 57 | margin-left: 1em; 58 | margin-right: 1em; 59 | margin-top: 2em; 60 | margin-bottom: 2em} 61 | 62 | /* set vertical space between list items*/ 63 | #wrapper li:not(:last-child) { 64 | margin-bottom: 1em; 65 | } 66 | 67 | h1, h2, h3, h4, h5, h6 { 68 | font-size: 12pt; 69 | color: #111111; 70 | line-height: 1.15em; 71 | margin-top: 1; 72 | margin-bottom: 1; 73 | } 74 | 75 | /*Level 1*/ 76 | h1 { 77 | text-align: center; 78 | font-weight: bold; 79 | text-transform: uppercase; 80 | 81 | } 82 | 83 | /*Level 2*/ 84 | h2 { 85 | text-align: left; 86 | font-weight: bold; 87 | font-style: normal 88 | } 89 | 90 | /*Level 3*/ 91 | h3 { 92 | text-align: left; 93 | font-weight: bold; 94 | font-style: italic; 95 | } 96 | 97 | /*Level 4*/ 98 | h4 { 99 | text-align: left; 100 | font-weight: normal; 101 | font-style: normal; 102 | } 103 | 104 | /*Level 4*/ 105 | h5 { 106 | text-align: left; 107 | font-weight: normal; 108 | font-style: italic; 109 | } 110 | 111 | hr { 112 | border: none; 113 | margin-top: 1; } 114 | 115 | body, p, td, div { 116 | line-height: 1.15; 117 | color: #111111; 118 | word-wrap: break-word; } 119 | 120 | a { 121 | color: #3c779c; 122 | text-decoration: none; 123 | -webkit-transition: color 0.2s ease-in-out; 124 | -moz-transition: color 0.2s ease-in-out; 125 | -o-transition: color 0.2s ease-in-out; 126 | -ms-transition: color 0.2s ease-in-out; 127 | transition: color 0.2s ease-in-out; } 128 | a:hover { 129 | color: #3593d9; } 130 | 131 | strong { 132 | font-weight: bold; 133 | } 134 | 135 | em { 136 | font-style: italic; 137 | } 138 | 139 | strong em, em strong { 140 | font-weight: 700; 141 | font-style: italic; } 142 | 143 | .footnote { 144 | color: #3c779c; 145 | font-size: 1em; 146 | vertical-align: super; } 147 | 148 | dd { 149 | margin-bottom: 0; } 150 | 151 | caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr { 152 | border-spacing: 0; } 153 | 154 | table { 155 | border: 1px solid rgba(0, 0, 0, 0.25); 156 | border-collapse: collapse; 157 | display: table; 158 | empty-cells: hide; 159 | margin: -1px 0 1em; 160 | padding: 0; 161 | table-layout: fixed; } 162 | 163 | caption { 164 | display: table-caption; 165 | } 166 | 167 | col { 168 | display: table-column; } 169 | 170 | colgroup { 171 | display: table-column-group; } 172 | 173 | tbody { 174 | display: table-row-group; } 175 | 176 | tfoot { 177 | display: table-footer-group; } 178 | 179 | thead { 180 | display: table-header-group; } 181 | 182 | td, th { 183 | display: table-cell; } 184 | 185 | tr { 186 | display: table-row; } 187 | 188 | table th, table td { 189 | padding: 0 1em; } 190 | 191 | table thead { 192 | background: rgba(0, 0, 0, 0.15); 193 | border: 1px solid rgba(0, 0, 0, 0.15); 194 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); } 195 | 196 | table tbody { 197 | background: rgba(0, 0, 0, 0.05); } 198 | 199 | table tfoot { 200 | background: rgba(0, 0, 0, 0.15); 201 | border: 1px solid rgba(0, 0, 0, 0.15); 202 | border-top: 1px solid rgba(0, 0, 0, 0.2); } 203 | 204 | figure { 205 | display: inline-block; 206 | position: relative; 207 | margin: 1em 0 1em; } 208 | 209 | figcaption { 210 | font-style: italic; 211 | text-align: center; 212 | background: white; 213 | color: #666666; 214 | position: absolute; 215 | left: 0; 216 | bottom: -24px; 217 | width: 98%; 218 | padding: 1%; 219 | -webkit-transition: all 0.2s ease-in-out; 220 | -moz-transition: all 0.2s ease-in-out; 221 | -o-transition: all 0.2s ease-in-out; 222 | -ms-transition: all 0.2s ease-in-out; 223 | transition: all 0.2s ease-in-out; } 224 | 225 | figure:hover > figcaption { 226 | /* background: rgba(0,0,0,1) */ } 227 | 228 | .poetry pre { 229 | display: block; 230 | font-style: italic; 231 | margin-left: 1em; } 232 | .poetry pre code { 233 | word-break: break-all; 234 | word-break: break-word; 235 | /* Non standard for webkit */ 236 | -webkit-hyphens: auto; 237 | -moz-hyphens: auto; 238 | hyphens: auto; 239 | white-space: pre-wrap; } 240 | 241 | blockquote { 242 | line-height: 1; /Chicago Style*/ 243 | text-indent: 0; 244 | padding-left: 0.5in; 245 | margin-bottom: 2; 246 | } 247 | 248 | #wrapper blockquote p { 249 | text-indent: 0; 250 | } 251 | 252 | sup, sub, a.footnote { 253 | font-size: 12pt; 254 | height: 0; 255 | line-height: 1; 256 | position: relative; 257 | vertical-align: super; } 258 | 259 | sub { 260 | vertical-align: sub; 261 | top: -1px; } 262 | 263 | p, h5 { 264 | margin: 0; } 265 | 266 | dt, th { 267 | font-weight: bold; 268 | } 269 | 270 | table tr:nth-child(odd), table th:nth-child(odd), table td:nth-child(odd) { 271 | background: rgba(255, 255, 255, 0.06); } 272 | 273 | table tr:nth-child(even), table td:nth-child(even) { 274 | background: rgba(200, 200, 200, 0.25); } 275 | 276 | /*Hanging indent for references generated by custom processor*/ 277 | .references.hanging-indent p { 278 | text-indent: -0.5in !important; /*to start the first line flush to the left, express in negative here whatever distance you placed in the margin-left setting above. */ 279 | margin-left: 0.5in !important; /*this controls how much to indent the lines in your reference. */ 280 | line-height: 1em; 281 | margin-top: 2em !important; 282 | margin-bottom: 2em !important; 283 | } 284 | 285 | 286 | /* Set up for printing*/ 287 | @page { 288 | size: letter; /* auto is the initial value */ 289 | margin: 1in 1.25in 1in 1.25in; /* this affects the margin in the printer settings top right bottom left*/ 290 | font-size: 12pt; 291 | font: normal 1em/2em "Times New Roman", courier, monospace; 292 | } 293 | 294 | 295 | @media print { 296 | body { 297 | overflow: auto; 298 | margin: 1in 1.25in 1in 1.25in; 299 | font-size: 12pt; 300 | font: normal 1em/2em "Times New Roman", courier, monospace;} 301 | 302 | img, pre, blockquote, table, figure, p { 303 | page-break-inside: auto; } 304 | 305 | #wrapper { 306 | background: transparent; 307 | color: #000; 308 | position: relative; } } 309 | @media screen { 310 | .inverted { 311 | background: #252a2a; } 312 | .inverted #wrapper { 313 | background: #252a2a; 314 | color: #eeeeee; } 315 | .inverted hr { 316 | border-color: #333f40 !important; } 317 | .inverted p, .inverted td, .inverted li, .inverted h1, .inverted h2, .inverted h3, .inverted h4, .inverted h5, .inverted h6, .inverted th, .inverted .math, .inverted caption, .inverted dt, .inverted dd { 318 | color: #eeeeee; } 319 | .inverted table { 320 | background: none; } 321 | .inverted table tr:nth-child(odd), .inverted table td:nth-child(odd) { 322 | background: none; } 323 | .inverted a { 324 | color: #acd1d5; } 325 | 326 | ::selection { 327 | background: rgba(157, 193, 200, 0.5); } } 328 | -------------------------------------------------------------------------------- /Marked/css/academic-cv.css: -------------------------------------------------------------------------------- 1 | /* 2 | This document has been created with Marked.app , Copyright 2019 Brett Terpstra 3 | Content is property of the document author 4 | Please leave this notice in place, along with any additional credits below. 5 | --------------------------------------------------------------- 6 | Title: Academic CV 7 | Author: Xule Lin 8 | Description: Academic style for CV 9 | paper size: A4 10 | Notes: 12pt/16px, Times New Roman, Double-spaced, text-align left, headers adjusted for 1. section header, name, personal information, list style first level - none, second level - disc 11 | Last modified: 2024-04-21 12 | */ 13 | 14 | body { 15 | -webkit-font-smoothing: antialiased; 16 | font: normal 1em/2em "SF Pro", courier, monospace; 17 | width: auto; } 18 | 19 | html > body { 20 | font-size: 12pt; 21 | text-align: left; 22 | line-height: 2em; 23 | padding-left: 1em} 24 | 25 | #wrapper img { 26 | max-width: 100%; 27 | height: auto; } 28 | #wrapper p { 29 | margin: 0in; 30 | text-indent: 0em; 31 | page-break-inside: auto; 32 | padding-left: 1em; 33 | line-height: 1em; 34 | margin-bottom: 2em} 35 | 36 | /* List style*/ 37 | /*Change the list to remove list style and margin for level 1 and 2*/ 38 | #wrapper ul, #wrapper ol { 39 | list-style-position: inside; 40 | font-weight: bold; 41 | line-height: 1.1em; 42 | padding: 0; 43 | margin-top: 0em; 44 | margin-bottom: 1em; 45 | } 46 | 47 | #wrapper ul ul, #wrapper ul ol, #wrapper ol ul, #wrapper ol ol { 48 | font-weight: normal; 49 | padding-left: 0; 50 | margin-left: 1em; 51 | margin-top: 0.2em; 52 | margin-bottom: 0.5em; 53 | list-style-type: disc; 54 | } 55 | 56 | #wrapper ul { 57 | list-style-type: none; 58 | margin-bottom: 2em; 59 | } 60 | 61 | #wrapper ul > li:before { 62 | content: ''; 63 | } 64 | 65 | #wrapper ul > li:after { 66 | content: ''; 67 | } 68 | 69 | #wrapper ul li > p:first-child { 70 | margin: 0; 71 | } 72 | 73 | #wrapper ul li p { 74 | display: inline; 75 | } 76 | 77 | #wrapper ul ol { 78 | margin-left: 1em; 79 | } 80 | 81 | #wrapper ol { 82 | list-style-type: none; 83 | margin-left: 0; 84 | padding-left: 0; 85 | margin-bottom: 2em; 86 | } 87 | 88 | #wrapper ol ul, #wrapper ol ol { 89 | margin-left: 1em; 90 | margin-bottom: 0.5em; 91 | list-style-type: disc; 92 | } 93 | 94 | h1, h2, h3, h4, h5, h6 { 95 | font-size: 12pt; 96 | } 97 | 98 | /*h1 is for section header*/ 99 | h1 { 100 | line-height: 1; 101 | text-align: left; 102 | font-weight: bold; 103 | text-transform: uppercase; 104 | margin-top: 1.2em; 105 | margin-bottom: 0.5em; 106 | border-bottom-style: solid; 107 | border-bottom-width: thin; 108 | } 109 | 110 | /*h2 is for name on top*/ 111 | h2 { 112 | font-size: 18pt; 113 | line-height: 1.2em; 114 | text-align: center; 115 | font-weight: bold; 116 | margin-top: 1em; 117 | margin-bottom: 0.5em; 118 | border-bottom-style: double; 119 | border-bottom-width: medium; 120 | } 121 | 122 | /*h3 is for personal information under name section*/ 123 | h3 { 124 | font-size: 11pt; 125 | line-height: 1.2em; 126 | width: 1; 127 | text-align: center; 128 | font-weight: normal; 129 | margin-top: 0em; 130 | margin-bottom: 0em; 131 | padding-left: 0.5em 132 | } 133 | 134 | hr { 135 | border: none; 136 | margin-top: 1; } 137 | 138 | body, p, td, div { 139 | line-height: 1em; 140 | color: #111111; 141 | word-wrap: break-word; } 142 | 143 | h1, h2, h3, h4, h5, h6 { 144 | color: #111111;} 145 | 146 | a { 147 | color: #111111; 148 | text-decoration: underline; 149 | -webkit-transition: color 0.2s ease-in-out; 150 | -moz-transition: color 0.2s ease-in-out; 151 | -o-transition: color 0.2s ease-in-out; 152 | -ms-transition: color 0.2s ease-in-out; 153 | transition: color 0.2s ease-in-out; } 154 | a:hover { 155 | color: #3593d9; } 156 | 157 | strong { 158 | font-weight: bold; 159 | } 160 | 161 | em { 162 | font-style: italic; 163 | } 164 | 165 | strong em, em strong { 166 | font-weight: 700; 167 | font-style: italic; } 168 | 169 | .footnote { 170 | color: #3c779c; 171 | font-size: 1em; 172 | vertical-align: super; } 173 | 174 | dd { 175 | margin-bottom: 0; } 176 | 177 | caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr { 178 | border-spacing: 0; } 179 | 180 | table { 181 | border: 1px solid rgba(0, 0, 0, 0.25); 182 | border-collapse: collapse; 183 | display: table; 184 | empty-cells: hide; 185 | margin: -1px 0 1em; 186 | padding: 0; 187 | table-layout: fixed; } 188 | 189 | caption { 190 | display: table-caption; 191 | } 192 | 193 | col { 194 | display: table-column; } 195 | 196 | colgroup { 197 | display: table-column-group; } 198 | 199 | tbody { 200 | display: table-row-group; } 201 | 202 | tfoot { 203 | display: table-footer-group; } 204 | 205 | thead { 206 | display: table-header-group; } 207 | 208 | td, th { 209 | display: table-cell; } 210 | 211 | tr { 212 | display: table-row; } 213 | 214 | table th, table td { 215 | padding: 0 1em; } 216 | 217 | table thead { 218 | background: rgba(0, 0, 0, 0.15); 219 | border: 1px solid rgba(0, 0, 0, 0.15); 220 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); } 221 | 222 | table tbody { 223 | background: rgba(0, 0, 0, 0.05); } 224 | 225 | table tfoot { 226 | background: rgba(0, 0, 0, 0.15); 227 | border: 1px solid rgba(0, 0, 0, 0.15); 228 | border-top: 1px solid rgba(0, 0, 0, 0.2); } 229 | 230 | figure { 231 | display: inline-block; 232 | position: relative; 233 | margin: 1em 0 1em; } 234 | 235 | figcaption { 236 | font-style: italic; 237 | text-align: center; 238 | background: white; 239 | color: #666666; 240 | position: absolute; 241 | left: 0; 242 | bottom: -24px; 243 | width: 98%; 244 | padding: 1%; 245 | -webkit-transition: all 0.2s ease-in-out; 246 | -moz-transition: all 0.2s ease-in-out; 247 | -o-transition: all 0.2s ease-in-out; 248 | -ms-transition: all 0.2s ease-in-out; 249 | transition: all 0.2s ease-in-out; } 250 | 251 | figure:hover > figcaption { 252 | /* background: rgba(0,0,0,1) */ } 253 | 254 | .poetry pre { 255 | display: block; 256 | font-style: italic; 257 | margin-left: 1em; } 258 | .poetry pre code { 259 | word-break: break-all; 260 | word-break: break-word; 261 | /* Non standard for webkit */ 262 | -webkit-hyphens: auto; 263 | -moz-hyphens: auto; 264 | hyphens: auto; 265 | white-space: pre-wrap; } 266 | 267 | blockquote { 268 | line-height: 1; /Chicago Style*/ 269 | text-indent: 0; 270 | padding-left: 0.5in; 271 | margin-bottom: 2; 272 | } 273 | 274 | #wrapper blockquote p { 275 | text-indent: 0; 276 | } 277 | 278 | sup, sub, a.footnote { 279 | font-size: 12pt; 280 | height: 0; 281 | line-height: 1; 282 | position: relative; 283 | vertical-align: super; } 284 | 285 | sub { 286 | vertical-align: sub; 287 | top: -1px; } 288 | 289 | p, h5 { 290 | margin: 0; } 291 | 292 | dt, th { 293 | font-weight: bold; 294 | } 295 | 296 | table tr:nth-child(odd), table th:nth-child(odd), table td:nth-child(odd) { 297 | background: rgba(255, 255, 255, 0.06); } 298 | 299 | table tr:nth-child(even), table td:nth-child(even) { 300 | background: rgba(200, 200, 200, 0.25); } 301 | 302 | /*Hanging indent for references generated by custom processor*/ 303 | .references.hanging-indent p { 304 | text-indent: -0.5in !important; /*to start the first line flush to the left, express in negative here whatever distance you placed in the margin-left setting above. */ 305 | margin-left: 0.5in !important; /*this controls how much to indent the lines in your reference. */ 306 | line-height: 1em; 307 | margin-top: 2em !important; 308 | margin-bottom: 2em !important; 309 | } 310 | 311 | 312 | @page { 313 | size: A4; 314 | margin: 0mm; 315 | } 316 | 317 | @media print { 318 | size: A4; 319 | margin: 0mm; 320 | body { 321 | overflow: auto; } 322 | 323 | img, pre, blockquote, table, figure, p { 324 | page-break-inside: auto; } 325 | 326 | #wrapper { 327 | background: transparent; 328 | color: #000; 329 | position: relative; } } 330 | @media screen { 331 | .inverted { 332 | background: #252a2a; } 333 | .inverted #wrapper { 334 | background: #252a2a; 335 | color: #eeeeee; } 336 | .inverted hr { 337 | border-color: #333f40 !important; } 338 | .inverted p, .inverted td, .inverted li, .inverted h1, .inverted h2, .inverted h3, .inverted h4, .inverted h5, .inverted h6, .inverted th, .inverted .math, .inverted caption, .inverted dt, .inverted dd { 339 | color: #eeeeee; } 340 | .inverted table { 341 | background: none; } 342 | .inverted table tr:nth-child(odd), .inverted table td:nth-child(odd) { 343 | background: none; } 344 | .inverted a { 345 | color: #acd1d5; } 346 | 347 | ::selection { 348 | background: rgba(157, 193, 200, 0.5); } } -------------------------------------------------------------------------------- /Marked/css/industry-cv.css: -------------------------------------------------------------------------------- 1 | /* 2 | This document has been created with Marked.app , Copyright 2019 Brett Terpstra 3 | Content is property of the document author 4 | Please leave this notice in place, along with any additional credits below. 5 | --------------------------------------------------------------- 6 | Title: Academic (adjusted for CV) 7 | Author: Xule Lin 8 | Description: 9 | paper size: US letter, 10 | 12pt/16px, Times New Roman, Double-spaced, text-align: left 11 | headers adjusted for 1. section header, name, personal information 12 | list style: first level - disc, second level - circle 13 | */ 14 | 15 | body { 16 | -webkit-font-smoothing: antialiased; 17 | font: normal 1em/2em "Times New Roman", courier, monospace; 18 | width: auto; } 19 | 20 | html > body { 21 | font-size: 11pt; 22 | text-align: left; 23 | line-height: 1em; 24 | padding-left: 1em} 25 | 26 | #wrapper img { 27 | max-width: 100%; 28 | height: auto; } 29 | #wrapper p { 30 | margin: 0in; 31 | text-indent: 0em; 32 | page-break-inside: auto; 33 | padding-left: 1em; 34 | line-height: 1em; 35 | margin-bottom: 2em} 36 | #wrapper ul, #wrapper ol { 37 | list-style-position: inside; 38 | font-weight: normal; 39 | padding: 0; 40 | margin-top: 0.5em; 41 | margin-bottom: 1em} 42 | #wrapper ul ul, #wrapper ul ol, #wrapper ol ul, #wrapper ol ol { 43 | font-weight: normal; 44 | padding-left: 0; 45 | margin-left: 1em; 46 | margin-top: 0em; } 47 | #wrapper ul { 48 | list-style-type: disc; 49 | margin-left: 0.25in; 50 | padding: 0;} 51 | #wrapper ul > li:before { 52 | content: ' '; } 53 | #wrapper ul > li:after { 54 | content: ' '; } 55 | #wrapper ul li > p:first-child { 56 | margin: 0; 57 | padding: 0;} /* match to others */ 58 | #wrapper ul li p { 59 | display: inline; 60 | margin: 0; 61 | padding: 0;} 62 | #wrapper ul ul{ 63 | list-style-type: circle;} 64 | #wrapper ul ol { 65 | margin-bottom: 0; } 66 | #wrapper ol { 67 | list-style-type: circle; 68 | margin-left: 0.25in; } 69 | #wrapper ol ul, #wrapper ol ol { 70 | margin-bottom: 0; } 71 | 72 | h1, h2, h3, h4, h5, h6 { 73 | font-size: 12pt; 74 | } 75 | 76 | /*h1 is for name on top*/ 77 | h1 { 78 | font-size: 18pt; 79 | text-align: center; 80 | font-weight: bold; 81 | margin-top: 1em; 82 | margin-bottom: 0.5em; 83 | /* border-bottom-style: double; 84 | border-bottom-width: medium; */ 85 | } 86 | 87 | /*h2 is for section headers*/ 88 | h2 { 89 | line-height: 1em; 90 | text-align: left; 91 | font-weight: bold; 92 | text-transform: uppercase; 93 | margin-top: 1.5em; 94 | margin-bottom: 1em; 95 | border-bottom-style: solid; 96 | border-bottom-width: thin; 97 | } 98 | 99 | 100 | /*h3 is for item headers */ 101 | h3 { 102 | line-height: 1; 103 | text-align: left; 104 | font-weight: bold; 105 | margin-top: 0.5em; 106 | margin: 0; 107 | } 108 | 109 | /*h4 is for title, subject, role/function */ 110 | h4 { 111 | line-height: 1; 112 | text-align: left; 113 | font-style: italic; 114 | font-weight: normal; 115 | margin: 0; 116 | } 117 | 118 | /*h5 is for personal information under name section*/ 119 | h5 { 120 | font-size: 12pt; 121 | line-height: 0.5em; 122 | width: 1; 123 | text-align: center; 124 | font-weight: normal; 125 | margin-top: 0em; 126 | margin-bottom: 0.5em; 127 | padding-left: 0.5em 128 | } 129 | 130 | hr { 131 | border: none; 132 | margin-top: 1; } 133 | 134 | body, p, td, div { 135 | line-height: 1em; 136 | color: #111111; 137 | word-wrap: break-word; } 138 | 139 | h1, h2, h3, h4, h5, h6 { 140 | color: #111111;} 141 | 142 | a { 143 | color: #111111; 144 | text-decoration: underline; 145 | -webkit-transition: color 0.2s ease-in-out; 146 | -moz-transition: color 0.2s ease-in-out; 147 | -o-transition: color 0.2s ease-in-out; 148 | -ms-transition: color 0.2s ease-in-out; 149 | transition: color 0.2s ease-in-out; } 150 | a:hover { 151 | color: #3593d9; } 152 | 153 | strong { 154 | font-weight: bold; 155 | } 156 | 157 | em { 158 | font-style: italic; 159 | } 160 | 161 | strong em, em strong { 162 | font-weight: 700; 163 | font-style: italic; } 164 | 165 | .footnote { 166 | color: #3c779c; 167 | font-size: 1em; 168 | vertical-align: super; } 169 | 170 | dd { 171 | margin-bottom: 0; } 172 | 173 | caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr { 174 | border-spacing: 0; } 175 | 176 | table { 177 | border: 1px solid rgba(0, 0, 0, 0.25); 178 | border-collapse: collapse; 179 | display: table; 180 | empty-cells: hide; 181 | margin: -1px 0 1em; 182 | padding: 0; 183 | table-layout: fixed; } 184 | 185 | caption { 186 | display: table-caption; 187 | } 188 | 189 | col { 190 | display: table-column; } 191 | 192 | colgroup { 193 | display: table-column-group; } 194 | 195 | tbody { 196 | display: table-row-group; } 197 | 198 | tfoot { 199 | display: table-footer-group; } 200 | 201 | thead { 202 | display: table-header-group; } 203 | 204 | td, th { 205 | display: table-cell; } 206 | 207 | tr { 208 | display: table-row; } 209 | 210 | table th, table td { 211 | padding: 0 1em; } 212 | 213 | table thead { 214 | background: rgba(0, 0, 0, 0.15); 215 | border: 1px solid rgba(0, 0, 0, 0.15); 216 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); } 217 | 218 | table tbody { 219 | background: rgba(0, 0, 0, 0.05); } 220 | 221 | table tfoot { 222 | background: rgba(0, 0, 0, 0.15); 223 | border: 1px solid rgba(0, 0, 0, 0.15); 224 | border-top: 1px solid rgba(0, 0, 0, 0.2); } 225 | 226 | figure { 227 | display: inline-block; 228 | position: relative; 229 | margin: 1em 0 1em; } 230 | 231 | figcaption { 232 | font-style: italic; 233 | text-align: center; 234 | background: white; 235 | color: #666666; 236 | position: absolute; 237 | left: 0; 238 | bottom: -24px; 239 | width: 98%; 240 | padding: 1%; 241 | -webkit-transition: all 0.2s ease-in-out; 242 | -moz-transition: all 0.2s ease-in-out; 243 | -o-transition: all 0.2s ease-in-out; 244 | -ms-transition: all 0.2s ease-in-out; 245 | transition: all 0.2s ease-in-out; } 246 | 247 | figure:hover > figcaption { 248 | /* background: rgba(0,0,0,1) */ } 249 | 250 | .poetry pre { 251 | display: block; 252 | font-style: italic; 253 | margin-left: 1em; } 254 | .poetry pre code { 255 | word-break: break-all; 256 | word-break: break-word; 257 | /* Non standard for webkit */ 258 | -webkit-hyphens: auto; 259 | -moz-hyphens: auto; 260 | hyphens: auto; 261 | white-space: pre-wrap; } 262 | 263 | blockquote { 264 | line-height: 1; /Chicago Style*/ 265 | text-indent: 0; 266 | padding-left: 0.5in; 267 | margin-bottom: 2; 268 | } 269 | 270 | #wrapper blockquote p { 271 | text-indent: 0; 272 | } 273 | 274 | sup, sub, a.footnote { 275 | font-size: 12pt; 276 | height: 0; 277 | line-height: 1; 278 | position: relative; 279 | vertical-align: super; } 280 | 281 | sub { 282 | vertical-align: sub; 283 | top: -1px; } 284 | 285 | p, h5 { 286 | margin: 0; } 287 | 288 | dt, th { 289 | font-weight: bold; 290 | } 291 | 292 | table tr:nth-child(odd), table th:nth-child(odd), table td:nth-child(odd) { 293 | background: rgba(255, 255, 255, 0.06); } 294 | 295 | table tr:nth-child(even), table td:nth-child(even) { 296 | background: rgba(200, 200, 200, 0.25); } 297 | 298 | /*Hanging indent for references generated by custom processor*/ 299 | .references.hanging-indent p { 300 | text-indent: -0.5in !important; /*to start the first line flush to the left, express in negative here whatever distance you placed in the margin-left setting above. */ 301 | margin-left: 0.5in !important; /*this controls how much to indent the lines in your reference. */ 302 | line-height: 1em; 303 | margin-top: 2em !important; 304 | margin-bottom: 2em !important; 305 | } 306 | 307 | 308 | @page { 309 | size: A4; /* or letter */ 310 | margin: 1in; 311 | } 312 | 313 | @media print { 314 | body { 315 | overflow: auto; } 316 | 317 | img, pre, blockquote, table, figure, p { 318 | page-break-inside: auto; } 319 | 320 | #wrapper { 321 | background: transparent; 322 | color: #000; 323 | position: relative; } } 324 | @media screen { 325 | .inverted { 326 | background: #252a2a; } 327 | .inverted #wrapper { 328 | background: #252a2a; 329 | color: #eeeeee; } 330 | .inverted hr { 331 | border-color: #333f40 !important; } 332 | .inverted p, .inverted td, .inverted li, .inverted h1, .inverted h2, .inverted h3, .inverted h4, .inverted h5, .inverted h6, .inverted th, .inverted .math, .inverted caption, .inverted dt, .inverted dd { 333 | color: #eeeeee; } 334 | .inverted table { 335 | background: none; } 336 | .inverted table tr:nth-child(odd), .inverted table td:nth-child(odd) { 337 | background: none; } 338 | .inverted a { 339 | color: #acd1d5; } 340 | 341 | ::selection { 342 | background: rgba(157, 193, 200, 0.5); } } 343 | -------------------------------------------------------------------------------- /iA Writer/Chicago/README.md: -------------------------------------------------------------------------------- 1 | # iA Writer Templates 2 | 3 | Preview, create PDFs, and print documents in your own style with templates in iA Writer. 4 | 5 | Templates are built with web pages. You can use HTML, CSS, and JavaScript to lay out your documents. If you know how to make a web site, you can easily make an iA Writer template. 6 | 7 | iA Writer templates are [bundles](https://developer.apple.com/library/mac/documentation/General/Conceptual/DevPedia-CocoaCore/Bundle.html): directories that group template files together. Bundles are natively supported by macOS and iOS. To browse template contents, right-click it in Finder and choose “Show Bundle Contents”. 8 | 9 | ``` 10 | Example.iatemplate/ 11 | Contents/ 12 | Info.plist 13 | Resources/ 14 | document.html 15 | title.html 16 | header.html 17 | footer.html 18 | style.css 19 | ``` 20 | 21 | ### Installing Templates 22 | 23 | ##### macOS 24 | 25 | - Double-click a template in Finder 26 | - Drag to iA Writer icon in Dock 27 | - Add in Preferences → Templates 28 | 29 | Note: Template bundles are copied when installed. Any changes made to the original bundle will not be visible in iA Writer. You may modify the installed bundles. To find an installed bundle, right-click one in Preferences and select “Show in Finder”. 30 | 31 | ##### iOS 32 | 33 | iOS supports adding template bundles, as well as ZIP archives, with one template per archive. 34 | 35 | - Send via AirDrop 36 | - “Copy to iA Writer” from Safari, Mail, iCloud Drive, or another sync service 37 | 38 | ### HTML Files 39 | 40 | iA Writer templates use separate HTML files for laying out the title page, document text, headers, and footers. 41 | 42 | ### Template Properties 43 | 44 | Template pages and other properties are defined in `Info.plist`. We recommend starting with our example bundle if you’ve never dealt with property list files before. XML property list files can be edited in any text editor. 45 | 46 | 47 | 48 | | Key | Value | Presence | Description 49 | |:--|:--|:--|:--| 50 | | `CFBundleName` | String | Required | Template name shown in iA Writer. | 51 | | `CFBundleIdentifier` | String | Required | Uniquely identifies1 a template. | 52 | | `IATemplateDocumentFile` | String2 | Required | Lays out document text. | 53 | | `IATemplateTitleFile` | String2 | Optional | Lays out a title page on export. | 54 | | `IATemplateHeaderFile` | String2 | Optional | Draws at the top of each document page on export. | 55 | | `IATemplateFooterFile` | String2 | Optional | Draws at the bottom of each document page on export. | 56 | | `IATemplateHeaderHeight` | Number | Optional | Header height, in CSS pixels (≤400). | 57 | | `IATemplateFooterHeight` | Number | Optional | Footer height, in CSS pixels (≤400). | 58 | | `IATemplateDescription` | String | Recommended | A sentence that describes your template. | 59 | | `IATemplateAuthor` | String | Recommended | A person (or a company) who created the template. | 60 | | `IATemplateAuthorURL` | String | Recommended | A link to template’s author. | 61 | | `IATemplateSuportsSmartTables` | Boolean | Optional | Whether to process Smart Tables. Defaults to YES if absent. | 62 | | `IATemplateSupportsMath` | Boolean | Optional | Whether to process TeX math expressions into MathML. Defaults to YES if absent. | 63 | | `IATemplateTitleUsesHeaderAndFooterHeight` | Boolean | Optional | When set to NO changes header and footer height on title page to 0. Defaults to YES if absent. | 64 | 65 | 1. iA Writer uses the bundle identifier to associate templates with documents. Each template must have a unique identifier. The identifier must contain only alphanumeric (A-Z, a-z, 0-9), hyphen (-), and period (.) characters. The string should be in reverse-DNS format. For example, if your company’s domain is `example.com` you could assign the string `com.example.template` as the bundle identifier. 66 | 2. HTML file name, without path extension. The actual files themselves must have an `html` extension. 67 | 68 | 69 | 70 | ### Content 71 | 72 | iA Writer applies content to HTML using JavaScript. It replaces `innerHTML` on elements with several predefined `data` attributes. 73 | 74 | For example, `` becomes `June 22, 2016` when a page is loaded for export. 75 | 76 | iA Writer dispatches an `ia-writer-change` event to elements when it updates them with new content. 77 | 78 | 79 | 80 | #### Document 81 | 82 | The document page lays out the text from the editor in Preview, printed documents, and PDFs. 83 | 84 | | Attribute | Description | 85 | |:--|:--| 86 | | `data-document` | Document text as HTML. | 87 | 88 | iA Writer uses [MultiMarkdown][MMD] (with a few additions) to convert Markdown to HTML. [Markup.txt](Markup.txt) contains some of the most commonly used markup in iA Writer. [Markup.html](Markup.html) is the resulting HTML for `data-document`. 89 | 90 | [MMD]: https://github.com/fletcher/MultiMarkdown-5 91 | 92 | #### Title Page, Header and Footer 93 | 94 | Title page, header, and footer are used only in in printed documents and PDFs. 95 | 96 | | Attribute | Description | 97 | |:--|:--| 98 | | `data-page-count` | Total page count of the exported document. | 99 | | `data-page-number` | Current page number.1 | 100 | 101 | 1. `data-page-number` is not available in title pages. They do not have a page number to keep numbering the same whether or not you include the title page during export. 102 | 103 | [Date Formats]: http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns 104 | [Locale Adjustments]: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDateFormatter_Class/#//apple_ref/occ/clm/NSDateFormatter/dateFormatFromTemplate:options:locale: 105 | 106 | #### All Pages 107 | 108 | | Attribute | Description | 109 | |:--|:--| 110 | | `data-title` | Document title, taken from document file name. | 111 | | `data-author` | Document author, if specified in Preferences. | 112 | | `data-date` | Current date. You can specify date format1 in the attribute value: `data-date="MMMM yyyy"`. Date format patterns are described in [Unicode Technical Standard #35][Date Formats]. | 113 | 114 | 1. `data-date` output may not contain exactly those components given in the attribute value, but may—for example—have locale-specific [adjustments][Locale Adjustments] applied: `yMMMMd` may become `MMMM d, y` in the US, and `d MMMM y` in the UK. 115 | 116 | ### Preview 117 | 118 | We recommend all template authors spend a few minutes to make their templates look great in Preview by adding support for night mode, as well as system-wide font size on iOS. 119 | 120 | iA Writer uses the `class` attribute of the `` element for environment data. Avoid adding custom classes to this element, because they will be replaced when a template is loaded. 121 | 122 | | Class | Description | 123 | |:--|:--| 124 | | `night-mode` | Night mode is active.1 | 125 | | `ios` | Preview on iOS.2 | 126 | | `mac` | Preview on macOS. | 127 | 128 | 1. Note that users may invert night mode in Preferences on macOS. 129 | 2. We strongly recommend using standard media queries to make your templates responsive. However, sometimes it’s important to differentiate between iOS and macOS. For example, default templates have a slightly different color scheme on each platform. 130 | 131 | #### Developing Templates 132 | 133 | To fully reload the currently visible template in Preview on macOS, press Shift Command R. 134 | 135 | To enable Web Inspector in Preview, paste the following command into Terminal. 136 | 137 | ``` 138 | defaults write pro.writer.mac WebKitDeveloperExtras -bool true 139 | ``` 140 | 141 | On Windows, you can enable the Chromium inspector by using Ctrl J. 142 | 143 | #### Vertical Margins 144 | 145 | Avoid vertical margins and padding for the document page. 146 | 147 | - iA Writer will adjust the `` element padding in Preview to match Editor 148 | - Top and bottom margins for printing and PDF export are instead controlled by header and footer height in `Info.plist` 149 | 150 | #### Toolbar Color 151 | 152 | iA Writer adjusts Preview toolbar colors to match the currently visible template on macOS. Be sure to set `color` and `background-color` on the `` element. 153 | 154 | #### Font Size on iOS 155 | 156 | iA Writer supports system-wide font size on iOS. Users can adjust the font size in Settings > Display & Brightness > Font Size. Most templates should adjust font size for this setting. 157 | 158 | | Class | Description | 159 | |:--|:--| 160 | | `content-size-xs` | An extra small font. | 161 | | `content-size-s` | A small font. | 162 | | `content-size-m` | A medium-sized font. | 163 | | `content-size-l` | Default value. A large font. | 164 | | `content-size-xl` | An extra large font. | 165 | | `content-size-xxl` | An increasingly large font. | 166 | | `content-size-xxxl` | The largest font option. | 167 | 168 | Note that some users may enable accessibility sizes in Settings > General > Accessibility > Larger Text. 169 | 170 | | Class | 171 | |:--| 172 | | `content-size-accessibility-m` | 173 | | `content-size-accessibility-l` | 174 | | `content-size-accessibility-xl` | 175 | | `content-size-accessibility-xxl` | 176 | | `content-size-accessibility-xxxl` | 177 | -------------------------------------------------------------------------------- /Marked/css/amj-academic.css: -------------------------------------------------------------------------------- 1 | /* 2 | This document has been created with Marked.app , Copyright 2019 Brett Terpstra 3 | Content is property of the document author 4 | Please leave this notice in place, along with any additional credits below. 5 | --------------------------------------------------------------- 6 | Title: Academic (Adjusted for Academy of Management Journal) 7 | Author: Xule Lin 8 | Description: 9 | Paper size: US letter, 10 | Font: 12pt/16px, Times New Roman, Double-spaced, text-align: justify, indent: 0.5in 11 | Headers: 12 | Heading level formats: 13 |  Level 1: Centered, "Bold" and UPPERCASE Capitalization 14 |  Level 2: Flush with Left margin, Bold, and Headline-style Capitalization 15 |  Level 3: Inline Header, Italic, Bold, Sentence-Style Capitalization, Terminal Period 16 |  Level 4: Used for styling hypotheses, padding-left: 0.5in, italic, single-spaced 17 |  Level 5 & 6: Not used 18 | Blokcquotes: 2 single-spaced lines after blockquotes, 19 | References: 20 | See at (classes: .references.hanging-indent) 21 | Generated by custom processor, 22 | 0.5 inch hanging indent, 23 | 1 line before and after each item 24 | Print and Media: 25 | Optimized for printing from html to pdf, 26 | Pages margin 1in 1in 1in 1in (top right bottom left) 27 | */ 28 | 29 | body { 30 | -webkit-font-smoothing: antialiased; 31 | font: normal 1em/2em "Times New Roman", courier, monospace; 32 | width: auto; } 33 | 34 | html > body { 35 | font-size: 12pt; 36 | text-align: justify; 37 | line-height: 2;} 38 | 39 | #wrapper img { 40 | max-width: 100%; 41 | height: auto; } 42 | #wrapper p { 43 | margin: 0in; 44 | text-indent: 0.5in; 45 | page-break-inside: auto; 46 | } 47 | 48 | #wrapper ul, #wrapper ol { 49 | list-style-position: inside; 50 | padding: 0; 51 | margin-left: 0; 52 | margin-right: 0; 53 | margin-top: 1em; 54 | margin-bottom: 1em } 55 | #wrapper ul ul, #wrapper ul ol, #wrapper ol ul, #wrapper ol ol { 56 | padding-left: 0; margin-left: 2in; } 57 | #wrapper ul { 58 | list-style-type: none; } 59 | #wrapper ul > li:before { 60 | content: '* '; } 61 | #wrapper ul li > p:first-child { 62 | margin: 0; } 63 | #wrapper ul li p { 64 | display: inline; } 65 | #wrapper ul ul, #wrapper ul ol { 66 | margin-bottom: 0; } 67 | #wrapper ol { 68 | list-style-type: decimal; 69 | margin-left: 0.5in; } 70 | #wrapper ol ul, #wrapper ol ol { 71 | margin-bottom: 0; } 72 | 73 | h1, h2, h3, h4 { 74 | font-size: 12pt; 75 | } 76 | 77 | /*Level 1*/ 78 | h1 { 79 | text-align: center; 80 | font-weight: bold; 81 | text-transform: uppercase; 82 | } 83 | 84 | /*Level 2*/ 85 | h2 { 86 | text-transform: none; 87 | text-align: left; 88 | font-weight: bold; 89 | } 90 | 91 | /*Level 3 92 | inline header, italic, bold, sentence-style capitalization, terminal period 93 | not set up due to CSS limitation 94 | */ 95 | h3 { 96 | font-style: italic; 97 | font-weight: bold; 98 | text-transform: capitalize; 99 | } 100 | 101 | h1, h2, h3 { 102 | color: #111111; 103 | line-height: 2; 104 | margin: 0em 105 | } 106 | 107 | /*Level 4 is used for styling hypotheses, 0.*/ 108 | h4 { 109 | text-align: left; 110 | font-weight: normal; 111 | font-style: italic; 112 | padding-left: 0.5in; 113 | line-height: 1; 114 | margin-top: 1em 115 | } 116 | 117 | hr { 118 | border: none; 119 | margin-top: 1em; 120 | } 121 | 122 | body, p, td, div { 123 | line-height: 2; 124 | color: #111111; 125 | word-wrap: break-word; } 126 | 127 | 128 | a { 129 | color: #3c779c; 130 | text-decoration: none; 131 | -webkit-transition: color 0.2s ease-in-out; 132 | -moz-transition: color 0.2s ease-in-out; 133 | -o-transition: color 0.2s ease-in-out; 134 | -ms-transition: color 0.2s ease-in-out; 135 | transition: color 0.2s ease-in-out; } 136 | a:hover { 137 | color: #3593d9; } 138 | 139 | strong { 140 | font-weight: bold; 141 | } 142 | 143 | em { 144 | font-style: italic; 145 | } 146 | 147 | strong em, em strong { 148 | font-weight: 700; 149 | font-style: italic; } 150 | 151 | .footnote { 152 | font-size: 12pt; 153 | vertical-align: super; 154 | line-height: 1; 155 | margin: 0; 156 | padding: 0; 157 | } 158 | 159 | /* add a line above footnotes*/ 160 | .footnotes:before { 161 | content: "———————————————"; 162 | letter-spacing: -4px; 163 | line-height: 1; 164 | margin-bottom: 0; 165 | margin-top: 0; 166 | } 167 | .footnotes ol { 168 | font-size: 12pt; 169 | padding: 0; 170 | margin-bottom: 1; 171 | margin-top: 1; 172 | } 173 | 174 | .footnotes ol li { 175 | font-size: 12pt; 176 | list-style-position: inside; 177 | padding-left: 0; 178 | text-indent: 0; 179 | line-height: 1; 180 | margin-bottom: 0; 181 | margin-top: 0; 182 | } 183 | 184 | .footnotes ol li p { 185 | text-indent: 0; 186 | line-height: 100%; 187 | font-size: 12pt; 188 | line-height: 1; 189 | margin-bottom: 0; 190 | margin-top: 0; 191 | display: inline; /* make text-indent consistent with the document*/ 192 | } 193 | 194 | sup,sub,a.footnote { 195 | height: 0; 196 | line-height: 1; 197 | position: relative; 198 | vertical-align: super; 199 | text-indent: 0; 200 | } 201 | 202 | 203 | 204 | dd { 205 | margin-bottom: 0; } 206 | 207 | caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr { 208 | border-spacing: 0; } 209 | 210 | table { 211 | border: 1px solid rgba(0, 0, 0, 0.25); 212 | border-collapse: collapse; 213 | display: table; 214 | empty-cells: hide; 215 | margin: -1px 0 1em; 216 | padding: 0; 217 | table-layout: fixed; } 218 | 219 | caption { 220 | display: table-caption; 221 | } 222 | 223 | col { 224 | display: table-column; } 225 | 226 | colgroup { 227 | display: table-column-group; } 228 | 229 | tbody { 230 | display: table-row-group; } 231 | 232 | tfoot { 233 | display: table-footer-group; } 234 | 235 | thead { 236 | display: table-header-group; } 237 | 238 | td, th { 239 | display: table-cell; } 240 | 241 | tr { 242 | display: table-row; } 243 | 244 | table th, table td { 245 | padding: 0 1em; } 246 | 247 | table thead { 248 | background: rgba(0, 0, 0, 0.15); 249 | border: 1px solid rgba(0, 0, 0, 0.15); 250 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); } 251 | 252 | table tbody { 253 | background: rgba(0, 0, 0, 0.05); } 254 | 255 | table tfoot { 256 | background: rgba(0, 0, 0, 0.15); 257 | border: 1px solid rgba(0, 0, 0, 0.15); 258 | border-top: 1px solid rgba(0, 0, 0, 0.2); } 259 | 260 | figure { 261 | display: inline-block; 262 | position: relative; 263 | margin: 1em 0 1em; } 264 | 265 | figcaption { 266 | font-style: italic; 267 | text-align: center; 268 | background: white; 269 | color: #666666; 270 | position: absolute; 271 | left: 0; 272 | bottom: -24px; 273 | width: 98%; 274 | padding: 1%; 275 | -webkit-transition: all 0.2s ease-in-out; 276 | -moz-transition: all 0.2s ease-in-out; 277 | -o-transition: all 0.2s ease-in-out; 278 | -ms-transition: all 0.2s ease-in-out; 279 | transition: all 0.2s ease-in-out; } 280 | 281 | figure:hover > figcaption { 282 | /* background: rgba(0,0,0,1) */ } 283 | 284 | .poetry pre { 285 | display: block; 286 | font-style: italic; 287 | margin-left: 1em; } 288 | .poetry pre code { 289 | word-break: break-all; 290 | word-break: break-word; 291 | /* Non standard for webkit */ 292 | -webkit-hyphens: auto; 293 | -moz-hyphens: auto; 294 | hyphens: auto; 295 | white-space: pre-wrap; } 296 | 297 | blockquote { 298 | line-height: 1; /*Chicago Style*/ 299 | text-indent: 0; 300 | padding-left: 0.5in; 301 | margin-bottom: 2; 302 | } 303 | 304 | #wrapper blockquote p { 305 | text-indent: 0; 306 | } 307 | 308 | sub { 309 | vertical-align: sub; 310 | top: -1px; } 311 | 312 | p, h5 { 313 | margin: 0; } 314 | 315 | dt, th { 316 | font-weight: bold; 317 | } 318 | 319 | table tr:nth-child(odd), table th:nth-child(odd), table td:nth-child(odd) { 320 | background: rgba(255, 255, 255, 0.06); } 321 | 322 | table tr:nth-child(even), table td:nth-child(even) { 323 | background: rgba(200, 200, 200, 0.25); } 324 | 325 | /*Hanging indent for references generated by custom processor*/ 326 | .references.hanging-indent p { 327 | text-indent: -0.5in !important; /*to start the first line flush to the left, express in negative here whatever distance you placed in the margin-left setting above. */ 328 | margin-left: 0.5in !important; /*this controls how much to indent the lines in your reference. */ 329 | line-height: 1em; 330 | margin-top: 2em !important; 331 | margin-bottom: 2em !important; 332 | } 333 | 334 | 335 | /* Set page margin when printing*/ 336 | @page { 337 | size: letter; /* auto is the initial value */ 338 | margin: 1in 1in 1in 1in; /* this affects the margin in the printer settings top right bottom left*/ 339 | } 340 | 341 | @media print { 342 | body { 343 | overflow: auto; 344 | margin: 1in 1in 1in 1in;} 345 | 346 | img, pre, blockquote, table, figure, p { 347 | page-break-inside: auto; } 348 | 349 | #wrapper { 350 | background: transparent; 351 | color: #000; 352 | position: relative; } } 353 | @media screen { 354 | .inverted { 355 | background: #252a2a; } 356 | .inverted #wrapper { 357 | background: #252a2a; 358 | color: #eeeeee; } 359 | .inverted hr { 360 | border-color: #333f40 !important; } 361 | .inverted p, .inverted td, .inverted li, .inverted h1, .inverted h2, .inverted h3, .inverted h4, .inverted h5, .inverted h6, .inverted th, .inverted .math, .inverted caption, .inverted dt, .inverted dd { 362 | color: #eeeeee; } 363 | .inverted table { 364 | background: none; } 365 | .inverted table tr:nth-child(odd), .inverted table td:nth-child(odd) { 366 | background: none; } 367 | .inverted a { 368 | color: #acd1d5; } 369 | 370 | ::selection { 371 | background: rgba(157, 193, 200, 0.5); } } 372 | -------------------------------------------------------------------------------- /Marked/css/chicago-academic.css: -------------------------------------------------------------------------------- 1 | /* 2 | This document has been created with Marked.app , Copyright 2019 Brett Terpstra 3 | Content is property of the document author 4 | Please leave this notice in place, along with any additional credits below. 5 | --------------------------------------------------------------- 6 | Title: Academic (Adjusted for Academy of Management Journal) 7 | Author: Xule Lin 8 | Description: 9 | Paper size: US letter, 10 | Font: 12pt/16px, Times New Roman, Double-spaced, text-align: justify, indent: 0.5in 11 | Headers: 12 | Heading level formats: 13 |  Level 1: Centered, Bold, and Headline-style Capitalization 14 |  Level 2: Flush Left, Regular, and Headline-style Capitalization 15 |  Level 3: Flush left, Bold, and Headline-style Capitalization 16 |  Level 4: Flush left, Regular/Roman, and Sentence-style Capitalization 17 | Inline Header, Italic, Bold, Sentence-Style Capitalization, Terminal Period 18 |  Level 5: Inline Header, Italic, Bold, Sentence-Style Capitalization, Terminal Period 19 | Used for styling hypotheses, padding-left: 0.5in, italic, single-spaced 20 |  Level 6: Not used 21 | Blokcquotes: 2 single-spaced lines after blockquotes, 22 | References: 23 | See at (classes: .references.hanging-indent) 24 | Generated by custom processor, 25 | 0.5 inch hanging indent, 26 | 1 line before and after each item 27 | Print and Media: 28 | Optimized for printing from html to pdf, 29 | Pages margin 1in 1in 1in 1in (top right bottom left) 30 | */ 31 | 32 | body { 33 | -webkit-font-smoothing: antialiased; 34 | font: normal 1em/2em "Times New Roman", courier, monospace; 35 | width: auto; } 36 | 37 | html > body { 38 | font-size: 12pt; 39 | text-align: justify; 40 | line-height: 2;} 41 | 42 | #wrapper img { 43 | max-width: 100%; 44 | height: auto; } 45 | #wrapper p { 46 | margin: 0in; 47 | text-indent: 0.5in; 48 | page-break-inside: auto; 49 | } 50 | 51 | #wrapper ul, #wrapper ol { 52 | list-style-position: inside; 53 | padding: 0; 54 | margin-left: 0; 55 | margin-right: 0; 56 | margin-top: 1em; 57 | margin-bottom: 1em } 58 | #wrapper ul ul, #wrapper ul ol, #wrapper ol ul, #wrapper ol ol { 59 | padding-left: 0; margin-left: 2in; } 60 | #wrapper ul { 61 | list-style-type: none; } 62 | #wrapper ul > li:before { 63 | content: '* '; } 64 | #wrapper ul li > p:first-child { 65 | margin: 0; } 66 | #wrapper ul li p { 67 | display: inline; } 68 | #wrapper ul ul, #wrapper ul ol { 69 | margin-bottom: 0; } 70 | #wrapper ol { 71 | list-style-type: decimal; 72 | margin-left: 0.5in; } 73 | #wrapper ol ul, #wrapper ol ol { 74 | margin-bottom: 0; } 75 | 76 | h1, h2, h3, h4 { 77 | font-size: 12pt; 78 | } 79 | 80 | /*Level 1*/ 81 | h1 { 82 | text-align: center; 83 | font-weight: bold; 84 | text-transform: capitalize; 85 | } 86 | 87 | /*Level 2*/ 88 | h2 { 89 | text-align: center; 90 | font-weight: normal; 91 | text-transform: capitalize; 92 | } 93 | 94 | /*Level 3*/ 95 | h3 { 96 | text-align: left; 97 | font-weight: bold; 98 | text-transform: capitalize; 99 | } 100 | 101 | /*Level 4 102 | Need manual adjustment due to CSS limitation. 103 | */ 104 | h4 { 105 | text-align: left; 106 | font-weight: normal; 107 | text-transform: none; 108 | } 109 | 110 | h1, h2, h3, h4 { 111 | color: #111111; 112 | line-height: 2; 113 | margin: 0em 114 | } 115 | 116 | /*Level 5 !important 117 | inline header, italic, bold, sentence-style capitalization, terminal period 118 | not set up due to CSS limitation. 119 | 120 | Instead, this is used to style hypothese 121 | */ 122 | h5 { 123 | text-align: left; 124 | font-weight: normal; 125 | font-style: italic; 126 | padding-left: 0.5in; 127 | line-height: 1; 128 | margin-top: 1em 129 | } 130 | 131 | 132 | hr { 133 | border: none; 134 | margin-top: 1em; 135 | } 136 | 137 | body, p, td, div { 138 | line-height: 2; 139 | color: #111111; 140 | word-wrap: break-word; } 141 | 142 | 143 | a { 144 | color: #3c779c; 145 | text-decoration: none; 146 | -webkit-transition: color 0.2s ease-in-out; 147 | -moz-transition: color 0.2s ease-in-out; 148 | -o-transition: color 0.2s ease-in-out; 149 | -ms-transition: color 0.2s ease-in-out; 150 | transition: color 0.2s ease-in-out; } 151 | a:hover { 152 | color: #3593d9; } 153 | 154 | strong { 155 | font-weight: bold; 156 | } 157 | 158 | em { 159 | font-style: italic; 160 | } 161 | 162 | strong em, em strong { 163 | font-weight: 700; 164 | font-style: italic; } 165 | 166 | .footnote { 167 | font-size: 12pt; 168 | vertical-align: super; 169 | line-height: 1; 170 | margin: 0; 171 | padding: 0; 172 | } 173 | 174 | /* add a line above footnotes*/ 175 | .footnotes:before { 176 | content: "———————————————"; 177 | letter-spacing: -4px; 178 | line-height: 1; 179 | margin-bottom: 0; 180 | margin-top: 0; 181 | } 182 | .footnotes ol { 183 | font-size: 12pt; 184 | padding: 0; 185 | margin-bottom: 1; 186 | margin-top: 1; 187 | } 188 | 189 | .footnotes ol li { 190 | font-size: 12pt; 191 | list-style-position: inside; 192 | padding-left: 0; 193 | text-indent: 0; 194 | line-height: 1; 195 | margin-bottom: 0; 196 | margin-top: 0; 197 | } 198 | 199 | .footnotes ol li p { 200 | text-indent: 0; 201 | line-height: 100%; 202 | font-size: 12pt; 203 | line-height: 1; 204 | margin-bottom: 0; 205 | margin-top: 0; 206 | display: inline; /* make text-indent consistent with the document*/ 207 | } 208 | 209 | sup,sub,a.footnote { 210 | height: 0; 211 | line-height: 1; 212 | position: relative; 213 | vertical-align: super; 214 | text-indent: 0; 215 | } 216 | 217 | 218 | 219 | dd { 220 | margin-bottom: 0; } 221 | 222 | caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr { 223 | border-spacing: 0; } 224 | 225 | table { 226 | border: 1px solid rgba(0, 0, 0, 0.25); 227 | border-collapse: collapse; 228 | display: table; 229 | empty-cells: hide; 230 | margin: -1px 0 1em; 231 | padding: 0; 232 | table-layout: fixed; } 233 | 234 | caption { 235 | display: table-caption; 236 | } 237 | 238 | col { 239 | display: table-column; } 240 | 241 | colgroup { 242 | display: table-column-group; } 243 | 244 | tbody { 245 | display: table-row-group; } 246 | 247 | tfoot { 248 | display: table-footer-group; } 249 | 250 | thead { 251 | display: table-header-group; } 252 | 253 | td, th { 254 | display: table-cell; } 255 | 256 | tr { 257 | display: table-row; } 258 | 259 | table th, table td { 260 | padding: 0 1em; } 261 | 262 | table thead { 263 | background: rgba(0, 0, 0, 0.15); 264 | border: 1px solid rgba(0, 0, 0, 0.15); 265 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); } 266 | 267 | table tbody { 268 | background: rgba(0, 0, 0, 0.05); } 269 | 270 | table tfoot { 271 | background: rgba(0, 0, 0, 0.15); 272 | border: 1px solid rgba(0, 0, 0, 0.15); 273 | border-top: 1px solid rgba(0, 0, 0, 0.2); } 274 | 275 | figure { 276 | display: inline-block; 277 | position: relative; 278 | margin: 1em 0 1em; } 279 | 280 | figcaption { 281 | font-style: italic; 282 | text-align: center; 283 | background: white; 284 | color: #666666; 285 | position: absolute; 286 | left: 0; 287 | bottom: -24px; 288 | width: 98%; 289 | padding: 1%; 290 | -webkit-transition: all 0.2s ease-in-out; 291 | -moz-transition: all 0.2s ease-in-out; 292 | -o-transition: all 0.2s ease-in-out; 293 | -ms-transition: all 0.2s ease-in-out; 294 | transition: all 0.2s ease-in-out; } 295 | 296 | figure:hover > figcaption { 297 | /* background: rgba(0,0,0,1) */ } 298 | 299 | .poetry pre { 300 | display: block; 301 | font-style: italic; 302 | margin-left: 1em; } 303 | .poetry pre code { 304 | word-break: break-all; 305 | word-break: break-word; 306 | /* Non standard for webkit */ 307 | -webkit-hyphens: auto; 308 | -moz-hyphens: auto; 309 | hyphens: auto; 310 | white-space: pre-wrap; } 311 | 312 | blockquote { 313 | line-height: 1; /*Chicago Style*/ 314 | text-indent: 0; 315 | padding-left: 0.5in; 316 | margin-bottom: 2; 317 | } 318 | 319 | #wrapper blockquote p { 320 | text-indent: 0; 321 | } 322 | 323 | sub { 324 | vertical-align: sub; 325 | top: -1px; } 326 | 327 | p, h5 { 328 | margin: 0; } 329 | 330 | dt, th { 331 | font-weight: bold; 332 | } 333 | 334 | table tr:nth-child(odd), table th:nth-child(odd), table td:nth-child(odd) { 335 | background: rgba(255, 255, 255, 0.06); } 336 | 337 | table tr:nth-child(even), table td:nth-child(even) { 338 | background: rgba(200, 200, 200, 0.25); } 339 | 340 | /*Hanging indent for references generated by custom processor*/ 341 | .references.hanging-indent p { 342 | text-indent: -0.5in !important; /*to start the first line flush to the left, express in negative here whatever distance you placed in the margin-left setting above. */ 343 | margin-left: 0.5in !important; /*this controls how much to indent the lines in your reference. */ 344 | line-height: 1em; 345 | margin-top: 2em !important; 346 | margin-bottom: 2em !important; 347 | } 348 | 349 | 350 | /* Set page margin when printing*/ 351 | @page { 352 | size: letter; /* auto is the initial value */ 353 | margin: 1in 1in 1in 1in; /* this affects the margin in the printer settings top right bottom left*/ 354 | } 355 | 356 | @media print { 357 | body { 358 | overflow: auto; 359 | margin: 1in 1in 1in 1in;} 360 | 361 | img, pre, blockquote, table, figure, p { 362 | page-break-inside: auto; } 363 | 364 | #wrapper { 365 | background: transparent; 366 | color: #000; 367 | position: relative; } } 368 | @media screen { 369 | .inverted { 370 | background: #252a2a; } 371 | .inverted #wrapper { 372 | background: #252a2a; 373 | color: #eeeeee; } 374 | .inverted hr { 375 | border-color: #333f40 !important; } 376 | .inverted p, .inverted td, .inverted li, .inverted h1, .inverted h2, .inverted h3, .inverted h4, .inverted h5, .inverted h6, .inverted th, .inverted .math, .inverted caption, .inverted dt, .inverted dd { 377 | color: #eeeeee; } 378 | .inverted table { 379 | background: none; } 380 | .inverted table tr:nth-child(odd), .inverted table td:nth-child(odd) { 381 | background: none; } 382 | .inverted a { 383 | color: #acd1d5; } 384 | 385 | ::selection { 386 | background: rgba(157, 193, 200, 0.5); } } 387 | -------------------------------------------------------------------------------- /Zotero/Translators for QuickCopy/Roam-QuickCopy2MD.js: -------------------------------------------------------------------------------- 1 | /* Sample output 2 | 3 | # Autio et al_2018_Digital affordances, spatial affordances, and the genesis of entrepreneurial ecosystems 4 | ## Metadata 5 | - Author(s):: [[Erkko Autio]], [[Satish Nambisan]], [[Llewellyn D. W. Thomas]], [[Mike Wright]] 6 | - Title::Digital affordances, spatial affordances, and the genesis of entrepreneurial ecosystems 7 | - Type:: [[Article]] 8 | - Publication::Strategic Entrepreneurship Journal 9 | - Topics:: 10 | - Date:: 2018-03 11 | - Date added:: 12 | - Citekey:: autio2018 13 | - Zotero PDF(s):: [Autio et al_2018_Digital affordances, spatial affordances, and the genesis of entrepreneurial](zotero://open-pdf/library/items/WKYH63Y6) 14 | - URL:: [http://doi.wiley.com/10.1002/sej.1266](http://doi.wiley.com/10.1002/sej.1266) 15 | - Tags:: #[[ecosystem]], #[[watch]] 16 | 17 | ## Notes 18 | - [[Autio et al_2018_Digital affordances, spatial affordances, and the genesis of entrepreneurial ecosystems]] 19 | 20 | */ 21 | 22 | { 23 | "translatorID": "c04c2288-afbe-4d7b-b419-69e72ac8e9f5", 24 | "label": "Roam JSON - QuickCopy to MD", 25 | "creator": "Xule Lin, Laurence Diver", 26 | "target": "html", 27 | "minVersion": "5.0", 28 | "maxVersion": "", 29 | "priority": 25, 30 | "configOptions": { 31 | "getCollections": true 32 | }, 33 | "displayOptions": { 34 | "exportNotes": true 35 | }, 36 | "inRepository": false, 37 | "translatorType": 2, 38 | "lastUpdated": "2020-05-23 12:00:00" 39 | } 40 | 41 | function cleanHtml(html) { 42 | // TODO this is hacky as all hell 43 | var cleanhtml = html.replace('', '**') 44 | .replace('', '**') 45 | .replace("", "__") 46 | .replace("", "__") 47 | .replace("
", "> ") 48 | .replace("", "^^") 49 | .replace("", "^^"); // Convert styles to markdown 50 | // TODO ZU.parseMarkup to find anchor tags? https://github.com/zotero/zotero/blob/4.0/chrome/content/zotero/xpcom/utilities.js#L525 51 | cleanhtml = cleanhtml.replace(/([^+>]*)[^<]*(]*(href="([^>^\"]*)")[^>]*>)([^<]+)(<\/a>[)])/gi, "$1___$2 ([$5]($4))"); // Convert anchors to markdown 52 | cleanhtml = cleanhtml.replace(/<[^>]*>?/gm, ""); // Strip remaining tags 53 | // TODO retain soft linebreaks within the paragraph 54 | return cleanhtml; 55 | } 56 | 57 | 58 | function getItemType(item) { 59 | var zoteroType = item.itemType, 60 | type; 61 | // Adapted from Zotero RDF translator -- https://github.com/zotero/translators/blob/master/Zotero%20RDF.js 62 | if (item.url && (item.url.includes("arxiv") || item.url.includes("ssrn"))) { 63 | type = "Preprint"; 64 | } else if (zoteroType == "book") { 65 | type = "Book"; 66 | } else if (zoteroType == "bookSection") { 67 | type = "Chapter"; 68 | } else if (zoteroType == "journalArticle") { 69 | type = "Article"; 70 | } else if (zoteroType == "magazineArticle") { 71 | type = "Magazine article"; 72 | } else if (zoteroType == "newspaperArticle") { 73 | type = "Newspaper article"; 74 | } else if (zoteroType == "thesis") { 75 | type = "Thesis"; 76 | } else if (zoteroType == "letter") { 77 | type = "Letter"; 78 | } else if (zoteroType == "manuscript") { 79 | type = "Manuscript"; 80 | } else if (zoteroType == "interview") { 81 | type = "Interview"; 82 | } else if (zoteroType == "film") { 83 | type = "Film"; 84 | } else if (zoteroType == "artwork") { 85 | type = "Illustration"; 86 | } else if (zoteroType == "webpage") { 87 | type = "Webpage"; 88 | } else if (zoteroType == "report") { 89 | type = "Report"; 90 | } else if (zoteroType == "bill") { 91 | type = "Legislation"; 92 | } else if (zoteroType == "case") { 93 | type = "Legal case"; 94 | } else if (zoteroType == "hearing") { 95 | type = "Hearing"; 96 | } else if (zoteroType == "patent") { 97 | type = "Patent"; 98 | } else if (zoteroType == "statute") { 99 | type = "Legislation"; 100 | } else if (zoteroType == "email") { 101 | type = "Letter"; 102 | } else if (zoteroType == "map") { 103 | type = "Image"; 104 | } else if (zoteroType == "blogPost") { 105 | type = "Blog post"; 106 | } else if (zoteroType == "instantMessage") { 107 | type = "Instant message"; 108 | } else if (zoteroType == "forumPost") { 109 | type = "Forum post"; 110 | } else if (zoteroType == "audioRecording") { 111 | type = "Recording"; 112 | } else if (zoteroType == "presentation") { 113 | type = "Presentation"; 114 | } else if (zoteroType == "videoRecording") { 115 | type = "Recording"; 116 | } else if (zoteroType == "tvBroadcast") { 117 | type = "TV broadcast"; 118 | } else if (zoteroType == "radioBroadcast") { 119 | type = "Radio broadcast"; 120 | } else if (zoteroType == "podcast") { 121 | type = "Podcast"; 122 | } else if (zoteroType == "computerProgram") { 123 | type = "Data"; 124 | } else if (zoteroType == "encyclopediaArticle") { 125 | type = "Encyclopaedia article"; 126 | } else if (zoteroType == "conferencePaper") { 127 | type = "Conference paper"; 128 | } 129 | return type; 130 | } 131 | 132 | 133 | function getAuthors(item) { 134 | var creators = item.creators, 135 | authorsArray = [], 136 | authorsString; 137 | for (let author of creators) { 138 | if (author.creatorType == "author") { 139 | var authString = ""; 140 | if (author.firstName) authString += author.firstName; 141 | if (author.lastName) authString += " " + author.lastName; 142 | authString = "[[" + ZU.trim(authString) + "]]"; 143 | authorsArray.push(authString); 144 | } 145 | } 146 | authorsString = authorsArray.join(", "); 147 | return authorsString; 148 | } 149 | 150 | function getMetadata(item) { 151 | var metadata = {}, 152 | itemAuthors = []; 153 | metadata.string = "**Metadata**"; 154 | metadata.children = []; 155 | if (typeof item.creators[0] === "object") { 156 | metadata.author = "Author(s):: " + getAuthors(item); 157 | } 158 | // TODO: Get collection names to be [[linked]] and build out Roam topic links 159 | // metadata.children.push({ 160 | // "string": "Topics:: " + getItemCollections(item) 161 | // }); 162 | 163 | metadata.type = "Type:: [[" + getItemType(item) + "]]"; 164 | if (item.date) { 165 | metadata.date = "Date:: " + ZU.strToISO(item.date); 166 | } 167 | if (item.attachments.length) { 168 | var attachmentURIs = []; 169 | for (let [i,attachment] of item.attachments.entries()) { 170 | if (attachment.contentType == "application/pdf") { 171 | let attName = attachment.title.replace(".pdf", ""); //get attachment name(created by rules defined in Zotfile), and trim ".pdf" 172 | let attString = "[" + attName + "](zotero://open-pdf/library/items/"; 173 | attString += attachment.uri.substring(attachment.uri.lastIndexOf('/') + 1) + ")"; 174 | attachmentURIs.push(attString); 175 | } 176 | } 177 | metadata.pdf = "Zotero PDF(s):: " + attachmentURIs.join(", "); 178 | } 179 | if (item.url) { 180 | metadata.url = "URL:: [" + item.url + "](" + item.url + ")"; 181 | } 182 | if (item.tags[0]) { 183 | metadata.tags = item.tags.map(o => "#[[" + o.tag + "]]").join(", "); //remove brackets around tags 184 | } 185 | if (Object.keys(item.relations).length) { 186 | metadata.related = "Related:: " + getRelatedItems(item); 187 | } 188 | return metadata; 189 | } 190 | 191 | function getNotes(item) { 192 | var notes = {}; 193 | notes.string = "**Notes**"; 194 | notes.children = []; 195 | 196 | for (let note of item.notes) { 197 | var parasArray = note.note.split("\n"), // Convert linebreaks to individual nodes 198 | thisNoteObj = {}, 199 | noteArray = []; 200 | thisNoteObj.string = cleanHtml(parasArray[0]); // Take first line as note's heading 201 | for (let para of parasArray) { 202 | noteArray.push({ 203 | "string": cleanHtml(para) 204 | }); 205 | } 206 | noteArray.splice(0, 1); // Don't repeat the first line (been used as heading) 207 | thisNoteObj.children = noteArray; 208 | notes.children.push(thisNoteObj); 209 | } 210 | return notes; 211 | } 212 | 213 | function getRelatedItems(item) { 214 | // TODO: Get the metadata for related items, included as [[links]], to build out Roam's web 215 | return Object.values(item.relations)[0].toString() 216 | } 217 | 218 | function doExport() { 219 | var item, exportData = []; 220 | while (item = Zotero.nextItem()) { 221 | //Z.write(ZU.varDump(item)); 222 | var roamItem = {}, 223 | itemChildren = []; 224 | roamItem.title = item.title; 225 | roamItem.pub = item.publicationTitle; 226 | var creatorsS = item.creators[0].lastName; 227 | if (item.creators.length>2) 228 | creatorsS += " et al"; 229 | else if (item.creators.length==2) 230 | creatorsS += "_" + item.creators[1].lastName; 231 | var titleS = (item.title); 232 | var date = Zotero.Utilities.strToDate(item.date); 233 | dateS = (date.year) ? date.year : item.date; 234 | var metadata = getMetadata(item); // Get item metadata 235 | itemChildren.push(metadata); 236 | if (Zotero.getOption("exportNotes") && item.notes.length) { // Get notes if requested 237 | var notes = getNotes(item); 238 | itemChildren.push(notes); 239 | } 240 | roamItem.children = itemChildren; 241 | roamItem["edit-time"] = Date.parse(ZU.strToISO(item.dateModified)) / 1000; 242 | // below is what Zotero "writes" to the clipboard. modify according to personal preferences. 243 | pfx = "- "; //set prefix to desired format 244 | Zotero.write("# " + creatorsS + "_" + dateS + "_" + titleS + "\n"); //header that matches Zotfile names. useful for linking to note exports (e.g., via Highlights app) that follow this naming rule 245 | Zotero.write("## Metadata" + "\n"); 246 | Zotero.write(pfx + metadata.author + "\n"); 247 | Zotero.write(pfx + "Title::" + roamItem.title + "\n"); 248 | Zotero.write(pfx + metadata.type + "\n"); 249 | Zotero.write(pfx + "Publication::" + roamItem.pub + "\n"); 250 | Zotero.write(pfx + "Topics::" + "\n"); //placeholder for collections as topics 251 | Zotero.write(pfx + metadata.date + "\n"); 252 | Zotero.write(pfx + "Date added::" + "\n"); //placeholder 253 | Zotero.write(pfx + "Citekey:: " +item.citekey + "\n"); 254 | Zotero.write(pfx + metadata.pdf + "\n"); 255 | Zotero.write(pfx + metadata.url + "\n"); 256 | Zotero.write(pfx + "Tags:: " + metadata.tags + "\n"); 257 | Zotero.write("\n" + "## Notes" + "\n"); 258 | Zotero.write(pfx + "[[" + creatorsS + "_" + dateS + "_" + titleS + "]]" + "\n" + "\n" + "\n"); //header that matches Zotfile names. useful for linking to note exports (e.g., via Highlights app) that follow this naming rule 259 | } 260 | } 261 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/style.css: -------------------------------------------------------------------------------- 1 | /** 2 | * iA Writer Template “Chicago Style” - Adapted from Template "Academic" 3 | * 4 | * font-family: TimesNewRomanPS 5 | * font-size: 15px iPhone 5, 16px iPhone 6+, 17px iPad, 17px Mac, 18px 6 | * line-height: 1.6667 (30px @ font-size: 18px) 7 | * vert margin: 30px @ 1080px wide 8 | */ 9 | 10 | /* From min-width: 80px */ 11 | html { 12 | font-family: "Times New Roman", "Keyboard", sans-serif; 13 | font-weight: 400; /* Normal */ 14 | font-size: 16px; /* Equivalent of 12pt. Overridden by responsive font sizing */ 15 | line-height: 200%; /* Double space */ 16 | } 17 | 18 | /* Normal weight for Retina… */ 19 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), print { 20 | html { 21 | font-weight: 400; 22 | } 23 | } 24 | 25 | /* …but only until 414px breakpoint on OS X */ 26 | @media (-webkit-min-device-pixel-ratio: 2) and (min-width: 414px) and (min-device-width: 1152px) , (min-resolution: 192dpi) and (min-width: 414px) and (min-device-width: 1152px) { 27 | html { 28 | font-weight: 300; 29 | } 30 | } 31 | 32 | /* Responsive adjustments */ 33 | 34 | @media screen and (min-width: 81px) { 35 | html { 36 | font-size: 1.1px; 37 | } 38 | } 39 | 40 | @media screen and (min-width: 82px) { 41 | html { 42 | font-size: 1.2px; 43 | } 44 | } 45 | 46 | @media screen and (min-width: 83px) { 47 | html { 48 | font-size: 1.3px; 49 | } 50 | } 51 | 52 | @media screen and (min-width: 84px) { 53 | html { 54 | font-size: 1.4px; 55 | } 56 | } 57 | 58 | @media screen and (min-width: 85px) { 59 | html { 60 | font-size: 1.5px; 61 | } 62 | } 63 | 64 | @media screen and (min-width: 88px) { 65 | html { 66 | font-size: 1.7px; 67 | } 68 | } 69 | 70 | @media screen and (min-width: 90px) { 71 | html { 72 | font-size: 1.85px; 73 | } 74 | } 75 | 76 | @media screen and (min-width: 92px) { 77 | html { 78 | font-size: 2px; 79 | } 80 | } 81 | 82 | @media screen and (min-width: 97px) { 83 | html { 84 | font-size: 2.5px; 85 | } 86 | } 87 | 88 | @media screen and (min-width: 105px) { 89 | html { 90 | font-size: 3px; 91 | } 92 | } 93 | 94 | @media screen and (min-width: 114px) { 95 | html { 96 | font-size: 3.5px; 97 | } 98 | } 99 | 100 | @media screen and (min-width: 120px) { 101 | html { 102 | font-size: 4px; 103 | } 104 | } 105 | 106 | @media screen and (min-width: 135px) { 107 | html { 108 | font-size: 5px; 109 | } 110 | } 111 | 112 | @media screen and (min-width: 150px) { 113 | html { 114 | font-size: 6px; 115 | } 116 | } 117 | 118 | @media screen and (min-width: 165px) { 119 | html { 120 | font-size: 7px; 121 | } 122 | } 123 | 124 | @media screen and (min-width: 180px) { 125 | html { 126 | font-size: 8px; 127 | } 128 | } 129 | 130 | @media screen and (min-width: 180px) and (min-device-width: 1152px) { 131 | html { 132 | font-size: 7px; 133 | } 134 | } 135 | 136 | @media screen and (min-width: 200px) { 137 | html { 138 | font-size: 9px; 139 | } 140 | } 141 | 142 | @media screen and (min-width: 200px) and (min-device-width: 1152px) { 143 | html { 144 | font-size: 8px; 145 | } 146 | } 147 | 148 | @media screen and (min-width: 220px) { 149 | html { 150 | font-size: 10px; 151 | } 152 | } 153 | 154 | @media screen and (min-width: 220px) and (min-device-width: 1152px) { 155 | html { 156 | font-size: 9px; 157 | } 158 | } 159 | 160 | @media screen and (min-width: 240px) { 161 | html { 162 | font-size: 11px; 163 | } 164 | } 165 | 166 | @media screen and (min-width: 240px) and (min-device-width: 1152px) { 167 | html { 168 | font-size: 9px; 169 | } 170 | } 171 | 172 | @media screen and (min-width: 260px) { 173 | html { 174 | font-size: 12px; 175 | } 176 | } 177 | 178 | @media screen and (min-width: 260px) and (min-device-width: 1152px) { 179 | html { 180 | font-size: 10px; 181 | } 182 | } 183 | 184 | @media screen and (min-width: 280px) { 185 | html { 186 | font-size: 13px; 187 | } 188 | } 189 | 190 | @media screen and (min-width: 280px) and (min-device-width: 1152px) { 191 | html { 192 | font-size: 11px; 193 | } 194 | } 195 | 196 | @media screen and (min-width: 300px) { 197 | html { 198 | font-size: 14px; 199 | } 200 | } 201 | 202 | @media screen and (min-width: 300px) and (min-device-width: 1152px) { 203 | html { 204 | font-size: 12px; 205 | } 206 | } 207 | 208 | /* 15px @320 for iPhone 5 */ 209 | @media screen and (min-width: 320px) { 210 | html { 211 | font-size: 15px; 212 | } 213 | } 214 | 215 | @media screen and (min-width: 320px) and (min-device-width: 1152px) { 216 | html { 217 | font-size: 13px; 218 | } 219 | } 220 | 221 | /* For iPhone 6+ */ 222 | @media screen and (min-width: 414px) { 223 | html { 224 | font-size: 16px; 225 | } 226 | } 227 | 228 | @media screen and (min-width: 414px) and (min-device-width: 1152px) { 229 | html { 230 | font-size: 14px; 231 | } 232 | } 233 | 234 | @media screen and (min-width: 640px) { 235 | html { 236 | font-size: 16.5px; 237 | } 238 | } 239 | 240 | @media screen and (min-width: 640px) and (min-device-width: 1152px) { 241 | html { 242 | font-size: 15px; 243 | } 244 | } 245 | 246 | /* For iPad and above */ 247 | @media screen and (min-width: 768px) { 248 | html { 249 | font-size: 17px; 250 | } 251 | } 252 | 253 | @media screen and (min-width: 768px) and (min-device-width: 1152px) { 254 | html { 255 | font-size: 16px; 256 | } 257 | } 258 | 259 | /* For widescreen */ 260 | @media screen and (min-width: 1080px) { 261 | html { 262 | font-size: 18px; 263 | } 264 | } 265 | 266 | body { 267 | max-width: 38em; 268 | text-align: justify; 269 | text-justify: inter-word; 270 | } 271 | 272 | @media screen and (min-width: 1080px) { 273 | body { 274 | max-width: 754px; 275 | } 276 | } 277 | 278 | /* Headings */ 279 | 280 | /*Level 1*/ 281 | h1 { 282 | font-size: 16px; 283 | text-align: center; 284 | font-weight: bold; 285 | text-transform: uppercase; 286 | margin-top: 1em; 287 | } 288 | 289 | /*Level 2*/ 290 | h2 { 291 | font-size: 16px; 292 | text-transform: none; 293 | text-align: left; 294 | font-weight: bold; 295 | margin-top: 1em; 296 | } 297 | 298 | /*Level 3 299 | Inline header, italic, bold, sentence-style capitalization, terminal period. 300 | h3 is not set up due to CSS limitation. The following is only for reference purpose only. 301 | */ 302 | h3 { 303 | font-size: 16px; 304 | font-style: italic; 305 | font-weight: bold; 306 | text-transform: capitalize; 307 | margin-top: 1em; 308 | } 309 | 310 | /* Hypothesis: Level 4 is used for styling hypotheses.*/ 311 | h4 { 312 | font-size: 16px; 313 | text-align: left !important; 314 | font-weight: normal; 315 | font-style: italic; 316 | padding-left: 0.5in; 317 | line-height: 1; 318 | margin-top: 1em 319 | } 320 | 321 | 322 | /* References: Level 5 is used for styling references. 323 | For styling the output of pandoc-citeproc, take a look at Marked 2*/ 324 | 325 | h5 { 326 | font-size: 16px; 327 | font-weight: normal; 328 | font-style: normal; 329 | text-align: left !important; 330 | text-indent: -0.5in !important; /*to start the first line flush to the left, express in negative here whatever distance you placed in the margin-left setting above. */ 331 | margin-left: 0.5in !important; /*this controls how much to indent the lines in your reference. */ 332 | line-height: 1em; 333 | margin-top: 2em !important; 334 | margin-bottom: 2em !important; 335 | } 336 | 337 | /* Indent Paragraphs */ 338 | p { 339 | font-size: 16px; 340 | text-indent: 0.5in; 341 | margin-top: 0; 342 | } 343 | 344 | /* super, subscripts, and footnote */ 345 | sup,sub,a.footnote { 346 | height: 0; 347 | line-height: 1; 348 | position: relative; 349 | vertical-align: super; 350 | text-indent: 0; 351 | } 352 | 353 | /* Emphasis */ 354 | strong, 355 | blockquote em, 356 | th { 357 | font-weight: bold; 358 | } 359 | 360 | /* Ignore paragraph indentation in paragraph lists */ 361 | :-webkit-any(li) > :-webkit-any(p) { 362 | text-indent: 0; 363 | } 364 | 365 | /* Indent ordered lists in blockquotes */ 366 | blockquote ul, 367 | blockquote ol { 368 | margin-left: calc((40 / 18) * -1rem); /* -40px when width = 1080px */ 369 | } 370 | 371 | /* Blockquotes */ 372 | blockquote { 373 | line-height: 1; /*Chicago Style*/ 374 | text-indent: 0; 375 | padding-left: 0.5in; 376 | margin-bottom: 2; 377 | } 378 | 379 | blockquote p{ 380 | text-indent: 0; 381 | } 382 | 383 | blockquote em strong, 384 | blockquote strong em { 385 | font-weight: 700; 386 | } 387 | 388 | /* Page Breaks */ 389 | 390 | .pagebreak { 391 | content: "---Page Break---" 392 | } 393 | 394 | /* Override core.css */ 395 | 396 | /* Task Lists: Override core.css */ 397 | 398 | .task-list-item-checkbox { 399 | width: 1.6667rem; /* line-height */ 400 | height: 1.6667rem; /* same as width */ 401 | background-position: 71% 71%; /* tweak position */ 402 | } 403 | 404 | .header p { 405 | float: right; 406 | margin: auto; 407 | padding: 0; 408 | } 409 | 410 | 411 | } 412 | 413 | /* Tables: Override core.css */ 414 | 415 | table { 416 | border: 1px solid rgba(0, 0, 0, 0.25); 417 | border-collapse: collapse; 418 | display: table; 419 | empty-cells: hide; 420 | margin: -1px 0 1em; 421 | padding: 0; 422 | table-layout: fixed; } 423 | 424 | caption { 425 | display: table-caption; 426 | } 427 | 428 | col { 429 | display: table-column; } 430 | 431 | colgroup { 432 | display: table-column-group; } 433 | 434 | tbody { 435 | display: table-row-group; } 436 | 437 | tfoot { 438 | display: table-footer-group; } 439 | 440 | thead { 441 | display: table-header-group; } 442 | 443 | td, th { 444 | display: table-cell; } 445 | 446 | tr { 447 | display: table-row; } 448 | 449 | table th, table td { 450 | padding: 0 1em; } 451 | 452 | table thead { 453 | background: rgba(0, 0, 0, 0.15); 454 | border: 1px solid rgba(0, 0, 0, 0.15); 455 | border-bottom: 1px solid rgba(0, 0, 0, 0.2); } 456 | 457 | table tbody { 458 | background: rgba(0, 0, 0, 0.05); } 459 | 460 | table tfoot { 461 | background: rgba(0, 0, 0, 0.15); 462 | border: 1px solid rgba(0, 0, 0, 0.15); 463 | border-top: 1px solid rgba(0, 0, 0, 0.2); } 464 | 465 | /* Figures: Override core.css */ 466 | 467 | figure { 468 | display: inline-block; 469 | position: relative; 470 | margin: 1em 0 1em; } 471 | 472 | figcaption { 473 | font-style: italic; 474 | text-align: center; 475 | background: white; 476 | color: #666666; 477 | position: absolute; 478 | left: 0; 479 | bottom: -24px; 480 | width: 98%; 481 | padding: 1%; 482 | -webkit-transition: all 0.2s ease-in-out; 483 | -moz-transition: all 0.2s ease-in-out; 484 | -o-transition: all 0.2s ease-in-out; 485 | -ms-transition: all 0.2s ease-in-out; 486 | transition: all 0.2s ease-in-out; } 487 | 488 | figure:hover > figcaption { 489 | /* background: rgba(0,0,0,1) */ } 490 | 491 | /* Code */ 492 | 493 | code, 494 | samp, 495 | kbd { 496 | font-size: calc((15 / 18) * 1em); /* 0.8333 = 15px @ font-size: 18px */ 497 | } 498 | 499 | 500 | /* @media Rules */ 501 | 502 | /* Override core.css */ 503 | @media screen and (min-width: 100px) { 504 | hr { 505 | margin-top: calc((30 / 18) * 1rem); 506 | margin-bottom: calc((29 / 18) * 1rem); /* -1px for border-bottom */ 507 | } 508 | 509 | /* Combined horizontal line styles, supplimenting core.css */ 510 | 511 | /* Adjust border color to imitate sub-pixel lines */ 512 | @media screen and (min-width: 150px) { 513 | hr, 514 | caption, 515 | tbody th, 516 | td { 517 | border-bottom-color: #888; 518 | } 519 | 520 | tbody th, 521 | td { 522 | border-top-color: #888; 523 | } 524 | } 525 | 526 | /* Intended border color from 200px */ 527 | @media screen and (min-width: 200px) { 528 | hr, 529 | caption, 530 | tbody th, 531 | td { 532 | border-bottom-color: #1a1a1a; 533 | } 534 | 535 | tbody th, 536 | td { 537 | border-top-color: #1a1a1a; 538 | } 539 | } 540 | 541 | /* Print styles */ 542 | /* font-size needs to be set here again otherwise responsive typography overrides it */ 543 | @media print { 544 | html { 545 | font-size: 12pt; 546 | text-align: justify; 547 | text-justify: inter-word; 548 | background: transparent !important; /* Only on html due to checkboxes */ 549 | } 550 | 551 | body { 552 | margin-left: 1in; 553 | margin-right: 1in; 554 | margin-top: 1in; 555 | margin-bottom: 1in; 556 | } 557 | 558 | /* Indent Paragraphs */ 559 | p { 560 | text-indent: 0.5in; 561 | margin-top: 0; 562 | } 563 | 564 | blockquote { 565 | line-height: 1; /*Chicago Style*/ 566 | text-indent: 0; 567 | padding-left: 0.5in; 568 | margin-bottom: 2; 569 | } 570 | 571 | blockquote p{ 572 | text-indent: 0; 573 | } 574 | 575 | 576 | 577 | } 578 | 579 | /** OBJECTS → see core.css base styles for: 580 | * - Indent Paragraphs 581 | * - Footnotes 582 | */ 583 | 584 | adding-left: 1inch; 585 | } 586 | 587 | /* Night Mode */ 588 | 589 | /* Imitate sub-pixel line for narrow widths */ 590 | 591 | /* First tweakpoint modifying core.css */ 592 | @media screen and (min-width: 150px) { 593 | .night-mode hr, 594 | .night-mode caption, 595 | .night-mode tbody th, 596 | .night-mode td { 597 | border-bottom-color: #888; 598 | } 599 | 600 | .night-mode tbody th, 601 | .night-mode td { 602 | border-top-color: #888; 603 | } 604 | } 605 | 606 | /* Intended border color from 200px */ 607 | @media screen and (min-width: 200px) { 608 | .night-mode hr, 609 | .night-mode caption, 610 | .night-mode tbody th, 611 | .night-mode td { 612 | border-bottom-color: #dedede; 613 | } 614 | 615 | .night-mode tbody th, 616 | .night-mode td { 617 | border-top-color: #dedede; 618 | } 619 | } 620 | 621 | /* Intended border color from 200px for OS X */ 622 | @media screen and (min-width: 200px) and (min-device-width: 1152px) { 623 | .night-mode hr, 624 | .night-mode caption, 625 | .night-mode tbody th, 626 | .night-mode td { 627 | border-bottom-color: #cccccc; 628 | } 629 | 630 | .night-mode tbody th, 631 | .night-mode td { 632 | border-top-color: #cccccc; 633 | } 634 | } 635 | 636 | 637 | 638 | -------------------------------------------------------------------------------- /iA Writer/Chicago/Chicago.iatemplate/Contents/Resources/core.css: -------------------------------------------------------------------------------- 1 | /** 2 | * iA Writer core.css: 3 | * Base styles for all templates 4 | * 5 | * - Generic 6 | * - Base 7 | * - Objects 8 | * 9 | * Notes: 10 | * - CSS load order: normalize.css, core.css (base styles), style.css (theme styles) 11 | * - Margins are in %s (of viewport or container width) via calc() to scale fluidly 12 | * - Margin/padding scaling is declared in calc() for container width: 1080px, then stopped via @media 13 | * - font-size is set on body using px for breakpoints, then rems or ems per element to scale 14 | */ 15 | 16 | /* TOOLS */ 17 | 18 | /* box-sizing */ 19 | 20 | * { 21 | box-sizing: border-box; 22 | } 23 | 24 | /* Fonts: NittiPro used for code across templates */ 25 | 26 | /* Regular versions on OS X, slim versions on iOS (assumes iOS will never have regular versions) */ 27 | @font-face { 28 | font-family: "NittiPro"; 29 | font-weight: 300; 30 | font-style: normal; 31 | src: local("NittiPro-SemiLight"), local("NittiPro-SemiLightSlim"); 32 | } 33 | 34 | @font-face { 35 | font-family: "NittiPro"; 36 | font-weight: 300; 37 | font-style: italic; 38 | src: local("NittiPro-SemiLightItalic"), local("NittiPro-SemiLightItalicSlim"); 39 | } 40 | 41 | @font-face { 42 | font-family: "NittiPro"; 43 | font-weight: 500; 44 | font-style: normal; 45 | src: local("NittiPro-Medium"), local("NittiPro-MediumSlim"); 46 | } 47 | 48 | @font-face { 49 | font-family: "NittiPro"; 50 | font-weight: 500; 51 | font-style: italic; 52 | src: local("NittiPro-MediumItalic"), local("NittiPro-MediumItalicSlim"); 53 | } 54 | /* BASE */ 55 | 56 | html, 57 | a { 58 | color: #1a1a1a; 59 | } 60 | 61 | html { 62 | background-color: #f9f9f9; /* iOS background color */ 63 | } 64 | 65 | body { 66 | box-sizing: content-box; /* So measure calculations don’t need to include gutters */ 67 | margin: 20px auto; /* 20px for iPhone */ 68 | padding: 0 12px; /* 12px gutters to match iPhone 5 Title bar UI */ 69 | word-wrap: break-word; 70 | text-rendering: optimizeLegibility; /* NOTE May cause performance issues */ 71 | /* font-kerning is enabled by default in OS X Safari 7+ */ 72 | -webkit-font-kerning: normal; 73 | font-kerning: normal; 74 | } 75 | 76 | /* iOS gutters responsive adjustments */ 77 | 78 | /* iPhone 6 */ 79 | @media screen and (min-width: 375px) { 80 | body { 81 | padding-left: 15px; 82 | padding-right: 15px; 83 | } 84 | } 85 | 86 | /* iPhone 6+ */ 87 | @media screen and (min-width: 414px) { 88 | body { 89 | padding-left: 24px; 90 | padding-right: 24px; 91 | } 92 | } 93 | 94 | @media screen and (min-width: 480px) { 95 | body { 96 | padding-left: 32px; 97 | padding-right: 32px; 98 | } 99 | } 100 | 101 | @media screen and (min-width: 600px) { 102 | body { 103 | padding-left: 48px; 104 | padding-right: 48px; 105 | } 106 | } 107 | 108 | /* iPad triggered on 760 not 768 to work with fonts */ 109 | @media screen and (min-width: 760px) and (max-device-width: 1024px) { 110 | body { 111 | margin-top: 40px; 112 | margin-bottom: 40px; 113 | padding-left: 70px; 114 | padding-right: 70px; 115 | } 116 | } 117 | 118 | /* Responsive adjustments for OS X */ 119 | @media screen and (min-device-width: 1152px) { 120 | html { 121 | background-color: #fcfcfc; 122 | } 123 | 124 | body { 125 | margin-top: 60px; /* 60pt */ 126 | margin-bottom: 60px; /* 60pt */ 127 | padding-left: 24px; 128 | padding-right: 24px; 129 | } 130 | } 131 | 132 | @media screen and (min-width: 480px) and (min-device-width: 1152px) { 133 | body { 134 | padding-left: 48px; 135 | padding-right: 48px; 136 | } 137 | } 138 | 139 | @media screen and (min-width: 640px) and (min-device-width: 1152px) { 140 | body { 141 | padding-left: 72px; 142 | padding-right: 72px; 143 | } 144 | } 145 | 146 | 147 | /* Headings */ 148 | 149 | body > h1:first-child { 150 | margin-top: 0; /* Controlled via body padding-top */ 151 | } 152 | 153 | 154 | 155 | /* Responsive list padding (default used by Sans, overridden for Mono and Serif) */ 156 | ul, 157 | ol { 158 | padding-left: 1.5rem; /* 22.5px for font-size: 15px @320px. rem works better for RWD than % */ 159 | } 160 | 161 | @media screen and (min-width: 760px) { 162 | /* Left padding based on 40px browser default */ 163 | ul, 164 | ol { 165 | padding-left: 2.2222rem; /* ~40px for font-size: 18px. rem works better for RWD than % */ 166 | } 167 | } 168 | 169 | /* HACK: Prevent empty list items collapsing 170 | Note this doesn’t work for paragraph lists, although we can fix via class or once has() is supported with: `ul li:not:has(p)::after` */ 171 | ul li:empty::after, 172 | .task-list-item:last-child::after { 173 | content: ""; 174 | display: inline-block; 175 | } 176 | 177 | dd { 178 | -webkit-margin-start: 2.2222rem; /* ~40px for font-size: 18px. rem works better for RWD than % */ 179 | margin-start: 2.2222rem; 180 | } 181 | 182 | /* Remove vertical margins on nested lists */ 183 | :-webkit-any(li, dt, dd, th, td) > :-webkit-any(ul, ol, dl) { 184 | margin-top: 0; 185 | margin-bottom: 0; 186 | } 187 | 188 | /* img is wrapped in p on export by default, so leave as inline */ 189 | img { 190 | max-width: 100%; 191 | vertical-align: top; 192 | } 193 | 194 | figure img { 195 | display: block; 196 | } 197 | 198 | hr { 199 | clear: both; 200 | margin: 3rem auto 3rem; /* Extra-large for visibility in mini-map (<100px wide) */ 201 | border: 0; 202 | border-bottom: 1px #e6e6e6 solid; 203 | } 204 | 205 | /* More reasonable default to override per template */ 206 | @media screen and (min-width: 100px) { 207 | hr { 208 | margin-top: 2rem; 209 | margin-bottom: 2rem; 210 | } 211 | } 212 | 213 | /* Horizontal rule responsive adjustments */ 214 | @media screen and (min-width: 1080px) { 215 | hr { 216 | margin-top: 46px; 217 | margin-bottom: 46px; 218 | } 219 | } 220 | 221 | 222 | /* table-layout: fixed; produces equal-width columns, which is generally a better result */ 223 | table { 224 | table-layout: fixed; 225 | width: 100%; 226 | border-top: 1px #e6e6e6 solid; 227 | border-bottom: 1px #e6e6e6 solid; 228 | border-collapse: collapse; 229 | font-size: calc((15 / 18) * 1rem); /* 0.8333rem = 15px @ font-size: 18px */ 230 | line-height: calc(24 / 15); /* 1.6 = 24px @ font-size: 15px */ 231 | } 232 | 233 | caption { 234 | border-bottom: 1px solid #e6e6e6; 235 | padding-top: calc((10 / 1080) * 100%); /* 10px when width: 1080px */ 236 | padding-bottom: calc((10 / 1080) * 100%); /* 10px when width: 1080px */ 237 | font-size: 1em; 238 | } 239 | 240 | tbody { 241 | border-top: 1px #e6e6e6 solid; 242 | } 243 | 244 | th, 245 | td { 246 | margin-right: calc((30 / 1080) * 100%); /* 30px when width: 1080px */ 247 | padding: calc((10 / 1080) * 100%) 0 calc((10 / 1080) * 100%); /* 10px 0 10px when width: 1080px */ 248 | vertical-align: top; 249 | text-align: left; 250 | } 251 | 252 | /* Table cell responsive adjustments */ 253 | @media screen and (min-width: 1080px) { 254 | caption, 255 | th, 256 | td { 257 | padding-top: 10px; 258 | padding-bottom: 10px; 259 | } 260 | 261 | th, 262 | td { 263 | margin-right: 30px; 264 | } 265 | } 266 | 267 | th:last-of-type, 268 | td:last-of-type { 269 | margin-right: 0; 270 | } 271 | 272 | /* Code */ 273 | 274 | pre, 275 | code, 276 | kbd { 277 | border: 1px solid #e6e6e6; 278 | border-radius: 2px; 279 | white-space: pre-wrap; 280 | background-color: #e6e6e6; 281 | } 282 | 283 | pre { 284 | padding: 1rem; 285 | overflow: hidden; 286 | } 287 | 288 | pre code { 289 | padding: 0; 290 | } 291 | 292 | code, 293 | samp, 294 | kbd { 295 | font-family: "NittiPro", "Keyboard", monospace; 296 | font-size: calc((15 / 19) * 1em); /* 0.7895em = 15px @ font-size: 19px (based on 12/16px @640 = 15.2px). 297 | font-weight: 200; /* Light weight for non-Retina (@1x) */ 298 | } 299 | 300 | /* Semi-light weight for Retina (@2x) */ 301 | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), print { 302 | code, 303 | samp, 304 | kbd { 305 | font-weight: 300; 306 | } 307 | } 308 | 309 | /* Use 500 not 700 for code that inherits bold.*/ 310 | :-webkit-any(strong, bold, th) :-webkit-any(code, samp, kbd) { 311 | font-weight: 500; 312 | } 313 | 314 | code, 315 | kbd { 316 | padding: 0.08333em 0.1667em 0.1667em; /* ~1px 2px 2px when font-size: 12px, taking 1px border into account */ 317 | } 318 | 319 | /* Prevent code line-height increasing heading line-height */ 320 | :-webkit-any(h1, h2, h3, h4, h5, h6) > code, kbd { 321 | line-height: normal; 322 | } 323 | 324 | kbd { 325 | border-color: #dedede; 326 | } 327 | 328 | 329 | /* Print styles */ 330 | @media print { 331 | 332 | *, 333 | *:before, 334 | *:after { 335 | color: #000 !important; /* black prints faster */ 336 | box-shadow: none !important; 337 | text-shadow: none !important; 338 | } 339 | 340 | html { 341 | font-size: 9pt; /* ← needs to be set per template to counter responsive typography */ 342 | background: transparent !important; /* Only on html due to checkboxes */ 343 | } 344 | 345 | 346 | 347 | /* Make sure there’s no margin-top on first element */ 348 | body > :first-child { 349 | margin-top: 0; 350 | } 351 | 352 | 353 | h1, 354 | h2, 355 | h3, 356 | h4, 357 | h5, 358 | h6, 359 | img, 360 | figure { 361 | page-break-inside: avoid; 362 | page-break-after: avoid; /* Not supported by Webkit at time of writing, ref: https://bugs.webkit.org/show_bug.cgi?id=5097 */ 363 | } 364 | 365 | p { 366 | /* Not supported by Webkit at time of writing, ref: https://bugs.webkit.org/show_bug.cgi?id=39735 */ 367 | widows: 3; 368 | orphans: 3; 369 | } 370 | 371 | hr { 372 | border-bottom-color: #000 !important; 373 | } 374 | 375 | /* Underline on superscript footnote number, which when clicked shows an error */ 376 | .footnote { 377 | text-decoration: none; 378 | } 379 | 380 | /* Remove links to citations */ 381 | p a.citation { 382 | display: none; 383 | } 384 | 385 | /* Underline for table of contents on printed pages */ 386 | .TOC a { 387 | text-decoration: none; 388 | } 389 | 390 | /* Link which allows you to go back to the text from footnote—useless on a printed page */ 391 | .reversefootnote { 392 | display: none; 393 | } 394 | 395 | /* Code has a lighter background on printed pages */ 396 | code, pre, kbd { 397 | border-color: #f7f7f7; 398 | background-color: #f7f7f7; 399 | } 400 | } 401 | 402 | 403 | /* OBJECTS */ 404 | 405 | /* Center Headings 406 | Center h1-h5 headings, via the Centered Headings setting */ 407 | .center-headings :-webkit-any(h1, h4, h5, h6) { 408 | text-align: center; 409 | } 410 | 411 | 412 | /* Night Mode */ 413 | 414 | .night-mode, 415 | .night-mode a { 416 | color: #dedede; /* iOS text color */ 417 | } 418 | 419 | .night-mode { 420 | background-color: #101010; /* iOS background color */ 421 | } 422 | 423 | .night-mode pre, 424 | .night-mode code, 425 | .night-mode kbd { 426 | background-color: #333331; /* For iOS */ 427 | border-color: #333331; 428 | } 429 | 430 | .night-mode kbd { 431 | border-color: #464643; 432 | } 433 | 434 | /* Colors for OS X */ 435 | @media screen and (min-device-width: 1152px) { 436 | .night-mode, 437 | .night-mode a { 438 | color: #cccccc; /* OS X text color */ 439 | } 440 | 441 | .night-mode { 442 | background-color: #101010; 443 | } 444 | 445 | .night-mode pre, 446 | .night-mode code, 447 | .night-mode kbd { 448 | background-color: #464643; 449 | border-color: #464643; 450 | } 451 | 452 | .night-mode kbd { 453 | border-color: #666; 454 | } 455 | } 456 | 457 | /* Fake sub-pixel lines */ 458 | .night-mode hr, 459 | .night-mode caption, 460 | .night-mode tbody th, 461 | .night-mode td { 462 | border-bottom-color: #666; 463 | } 464 | 465 | .night-mode tbody th, 466 | .night-mode td { 467 | border-top-color: #666; 468 | } 469 | 470 | /* Footnotes */ 471 | 472 | .footnotes ol{ 473 | margin-left: 0 !important; 474 | padding-left: 0 !important; 475 | list-style-position: inside !important; 476 | } 477 | 478 | .footnotes li{ 479 | text-indent: 3em !important; 480 | } 481 | 482 | 483 | .footnotes hr { 484 | display: none !important; 485 | } 486 | 487 | .citations ul { 488 | padding-left: 0 !important; 489 | } 490 | 491 | .citations li { 492 | list-style: none !important; 493 | } 494 | 495 | .citations p { 496 | padding-left: 3em !important; 497 | text-indent: -3em !important; 498 | } 499 | 500 | /* Remove underline on .reversefootnote arrow for iOS, as it’s turned into an emoji */ 501 | @media screen and (max-device-width: 1024px) { 502 | .reversefootnote { 503 | text-decoration: none; 504 | } 505 | } 506 | 507 | /* Footnotes responsive adjustments when width: 1080px */ 508 | @media screen and (min-width: 1080px) { 509 | .footnotes { 510 | margin-top: 45px; 511 | } 512 | } 513 | /* Task Lists 514 | Left padding based on 40px default */ 515 | 516 | /* Position ordinal counters so 1-9 left-align with left content edge. Subsequent counters will begin in gutter. */ 517 | ol .task-list-item { 518 | margin-left: -0.6667rem; /* ~-10px @ font-size: 15px */ 519 | padding-left: 0.6667rem; /* ~10px @ font-size: 15px */ 520 | } 521 | 522 | /* Hide default bullets for unordered task lists. */ 523 | ul .task-list-item { 524 | list-style-type: none; 525 | } 526 | 527 | /* Hide gen-content bullets for unordered task lists. */ 528 | ul .task-list-item:before { 529 | display: none; 530 | } 531 | 532 | .task-list-item-checkbox { 533 | float: left; /* Removes from flow in case of paragraph list items */ 534 | width: 1.6rem; /* Same as p line-height (changing width/height affects svg size) */ 535 | height: 1.6rem; /* Same as width */ 536 | margin: 0 0 0 -1.6rem; /* 0s to overwrite user agent styles */ 537 | border: none; /* Otherwise iPhone draws a border */ 538 | font-size: 1rem; /* Required to overwrite user agent styles, set to same as p */ 539 | background-image: url('box.svg'); 540 | background-repeat: no-repeat; 541 | background-position: 40% 40%; /* x=roughly align with bullets and between ordinal and text, y=4px down to roughly align to baseline. */ 542 | background-size: 50% 50%; /* Desired size 12px / 21px line-height for Preview */ 543 | background-color: transparent; 544 | -webkit-print-color-adjust: exact; /* Prevents from hiding when printed */ 545 | -webkit-appearance: none; /* Disables system checkbox image */ 546 | opacity: 1.0; /* Otherwise they are 0.4 on iPhone, where it applies disabled effect even with above */ 547 | } 548 | 549 | .task-list-item-checkbox:checked { 550 | background-image: url('check.svg'); 551 | } 552 | 553 | /* Checkbox color in Night Mode (=text color) */ 554 | .night-mode .task-list-item-checkbox { 555 | background-image: url('box-night-mode-ios.svg'); 556 | } 557 | 558 | .night-mode .task-list-item-checkbox:checked { 559 | background-image: url('check-night-mode-ios.svg'); 560 | } 561 | 562 | /* OS X color */ 563 | @media screen and (min-device-width: 1152px) { 564 | .night-mode .task-list-item-checkbox { 565 | background-image: url('box-night-mode-osx.svg'); 566 | } 567 | 568 | .night-mode .task-list-item-checkbox:checked { 569 | background-image: url('check-night-mode-osx.svg'); 570 | } 571 | } 572 | 573 | .header, .footer { 574 | margin-top: 30px; 575 | margin-bottom: 30px; 576 | text-align: center; 577 | } 578 | 579 | .title { 580 | margin-top: 40%; 581 | } 582 | -------------------------------------------------------------------------------- /Obsidian/Amethyst_with iA Writer Fonts.css: -------------------------------------------------------------------------------- 1 | /* Special Font */ 2 | /* Add iA Writer Fonts in the editor 3 | 'iA Writer Quattro V', 'iA Writer Quattro S' 4 | */ 5 | body { 6 | font-family: "Gloria Hallelujah", "Dank Mono",'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "NotoColorEmoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif; 7 | } 8 | 9 | .cm-s-obsidian { 10 | font-family: 'iA Writer Quattro V', 'iA Writer Quattro S', "Dank Mono",'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "NotoColorEmoji","Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif; 11 | font-size: 16px; 12 | } 13 | 14 | .markdown-preview-view code { 15 | font-family: "Dank Mono",'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "NotoColorEmoji","Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif; 16 | font-size: 16px; 17 | } 18 | 19 | .workspace { 20 | font-family: "Dank Mono",'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "NotoColorEmoji","Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif; 21 | font-size: 16px; 22 | } 23 | 24 | /* Scrollbar */ 25 | ::-webkit-scrollbar { 26 | background-color: transparent; 27 | } 28 | 29 | /* App scrollbar weirdness */ 30 | .app-container { 31 | height: 99%; 32 | } 33 | /**/ 34 | 35 | /* Empty pane */ 36 | .workspace-leaf-content[data-type="empty"] { 37 | background-color: var(--background-primary); 38 | } 39 | /**/ 40 | 41 | /**/ 42 | /* Editor Section */ 43 | /**/ 44 | /* Line size */ 45 | .cm-s-obsidian pre.HyperMD-header { 46 | line-height: 1!important; 47 | } 48 | 49 | /* Selection */ 50 | .theme-light { 51 | --text-selection: rgba(112, 93, 207, 0.5); 52 | } 53 | 54 | .theme-dark { 55 | --text-selection: rgba(112, 93, 207, 0.5); 56 | } 57 | 58 | ::selection { 59 | background-color: #705dcf!important; 60 | color: white!important; 61 | } 62 | 63 | /* Title */ 64 | /* Current main pane */ 65 | .view-header-title { 66 | color: #705dcf; 67 | text-align: center; 68 | } 69 | 70 | .workspace-leaf.mod-active .view-header { 71 | text-align: center; 72 | } 73 | /* Other pane */ 74 | .workspace-leaf-header-title-container { 75 | text-align: center; 76 | } 77 | 78 | /* Headers */ 79 | span.cm-formatting.cm-formatting-header.cm-formatting-header-1.cm-header.cm-header-1 { 80 | color: #705dcf; 81 | } 82 | 83 | span.cm-formatting.cm-formatting-header.cm-formatting-header-2.cm-header.cm-header-2 { 84 | color: #705dcf; 85 | } 86 | 87 | span.cm-formatting.cm-formatting-header.cm-formatting-header-3.cm-header.cm-header-3 { 88 | color: #705dcf; 89 | } 90 | 91 | span.cm-formatting.cm-formatting-header.cm-formatting-header-4.cm-header.cm-header-4 { 92 | color: #705dcf; 93 | } 94 | 95 | span.cm-formatting.cm-formatting-header.cm-formatting-header-5.cm-header.cm-header-5 { 96 | color: #705dcf; 97 | } 98 | 99 | span.cm-formatting.cm-formatting-header.cm-formatting-header-6.cm-header.cm-header-6 { 100 | color: #705dcf; 101 | } 102 | 103 | /* Header folder icon */ 104 | .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { 105 | color: #3e3471; 106 | } 107 | 108 | .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { 109 | color: #705dcf; 110 | } 111 | 112 | /* Cursor */ 113 | .cm-fat-cursor .CodeMirror-cursor { 114 | background: #3e3471; 115 | } 116 | 117 | .cm-animate-fat-cursor { 118 | background-color: #3e3471; 119 | } 120 | 121 | /* Selection in popup ([[]] autocomplete)*/ 122 | .suggestion-item.is-selected { 123 | background-color: #3e3471; 124 | color: white; 125 | } 126 | 127 | .theme-light .suggestion-shortcut { 128 | color: var(--text-normal); 129 | } 130 | 131 | /* Inner and Outer links */ 132 | .cm-url { 133 | color: lightblue!important; 134 | } 135 | 136 | .markdown-highlighting .internal-link .cl-underlined-text { 137 | color: var(--text-accent)!important; 138 | } 139 | 140 | .markdown-highlighting .link .cl-underlined-text { 141 | color: lightblue!important; 142 | } 143 | 144 | /* Blockquote */ 145 | .preview blockquote { 146 | background-color: var(--background-modifier-border); 147 | border: 1px solid var(--text-muted); 148 | } 149 | 150 | /* Highlights and Bold */ 151 | strong { 152 | font-size: larger; 153 | color: var(--text-normal); 154 | } 155 | 156 | mark { 157 | background-color: darkgoldenrod; 158 | } 159 | 160 | .markdown-highlighting .tag { 161 | color: var(--text-accent)!important; 162 | } 163 | 164 | /* Tables */ 165 | .markdown-preview-view th { 166 | background-color: #3e3471; 167 | color: white 168 | } 169 | 170 | .cm-s-obsidian pre.HyperMD-table-row span.cm-hmd-table-sep { 171 | color: unset; 172 | } 173 | 174 | .cm-s-obsidian pre.HyperMD-table-row-1 > span { 175 | color: unset; 176 | } 177 | 178 | /* Status bar */ 179 | .theme-dark .status-bar-item { 180 | color: white; 181 | } 182 | 183 | .theme-light .status-bar-item { 184 | color: black; 185 | } 186 | 187 | /**/ 188 | /* Preview section */ 189 | /**/ 190 | /* Centered preview */ 191 | .markdown-preview-view 192 | { 193 | position: relative; 194 | height: 100%; 195 | /* 196 | border-right-width: 7rem; 197 | border-left-width: 7rem; 198 | border-style: solid; 199 | border-color: #262140; 200 | */ 201 | } 202 | 203 | .markdown-embed-title { 204 | color: #705dcf; 205 | } 206 | 207 | .markdown-preview-view .markdown-embed { 208 | background-color: var(--background-primary-alt); 209 | margin-top: 0.5rem; 210 | margin-bottom: 0.5rem; 211 | } 212 | 213 | .markdown-preview-view .internal-link { 214 | color: #705dcf; 215 | } 216 | 217 | .markdown-preview-view a { 218 | color: lightblue; 219 | } 220 | 221 | /**/ 222 | /* Side panel section */ 223 | /**/ 224 | /* Plugin Title and Description */ 225 | .plugin-name { 226 | color: var(--text-normal); 227 | } 228 | 229 | .plugin-description { 230 | color: var(--text-normal) 231 | } 232 | 233 | /* Files title and Buttons */ 234 | .nav-file-title-content, .nav-folder-title-content { 235 | color: var(--text-normal); 236 | } 237 | 238 | .nav-action-button { 239 | color: var(--text-normal); 240 | } 241 | 242 | /* File explorer navigation selection */ 243 | .nav-file.is-active > .nav-file-title, .nav-file.is-active > .nav-folder-title, .nav-file.is-active > .nav-folder-collapse-indicator, .nav-folder.is-active > .nav-file-title, .nav-folder.is-active > .nav-folder-title, .nav-folder.is-active > .nav-folder-collapse-indicator { 244 | background-color: #3e3471; 245 | color: white; 246 | } 247 | 248 | body:not(.is-grabbing) .nav-file-title:hover, body:not(.is-grabbing) .nav-folder-title:hover { 249 | background-color: #3e3471; 250 | color: white; 251 | } 252 | 253 | .nav-file-title-content, .nav-folder-title-content { 254 | color:unset; 255 | } 256 | 257 | .nav-folder.mod-root > .nav-file-title:hover, .nav-folder.mod-root > .nav-folder-title:hover { 258 | color: var(--text-normal); 259 | } 260 | 261 | body:not(.is-grabbing) .nav-file-title:hover .nav-folder-collapse-indicator, body:not(.is-grabbing) .nav-folder-title:hover .nav-folder-collapse-indicator { 262 | background-color: #3e3471; 263 | color: white; 264 | } 265 | 266 | .nav-file-title, .nav-folder-title, .nav-folder-collapse-indicator { 267 | color: var(--text-normal); 268 | } 269 | 270 | /* File explorer alternate background 271 | .nav-file:nth-child(even) { 272 | background-color: var(--background-primary); 273 | } 274 | 275 | .nav-folder:nth-child(even) { 276 | background-color: var(--background-primary); 277 | } 278 | 279 | .nav-file:nth-child(odd) { 280 | background-color: #262140; 281 | } 282 | 283 | .nav-folder:nth-child(odd) { 284 | background-color: #262140; 285 | } 286 | 287 | /**/ 288 | 289 | /* File explorer menu*/ 290 | .menu-item:hover { 291 | background-color: #3e3471; 292 | color: white; 293 | } 294 | 295 | /* Backlinks Color and Text */ 296 | .search-result-file-matched-text { 297 | background-color: #3e3471; 298 | color: white; 299 | } 300 | 301 | .search-result-file-title { 302 | color: #705dcf; 303 | } 304 | 305 | .search-result-file-matches { 306 | color: var(--text-normal); 307 | } 308 | 309 | .search-result-file-title:hover { 310 | background-color: #3e3471; 311 | color: white; 312 | } 313 | 314 | .search-result-file-match:hover { 315 | background-color: #3e3471; 316 | color: white; 317 | } 318 | 319 | /* Folder arrow */ 320 | .nav-folder.is-collapsed .nav-folder-collapse-indicator { 321 | color: #705dcf; 322 | } 323 | 324 | .nav-folder-collapse-indicator { 325 | color: #705dcf; 326 | } 327 | 328 | /* Tag Selection */ 329 | .tag-pane-tag:hover { 330 | background-color: #3e3471; 331 | color: white; 332 | } 333 | 334 | .theme-light .tag-pane-tag-count { 335 | color: var(--text-normal) 336 | } 337 | 338 | /* Title */ 339 | .side-dock-title { 340 | color: #705dcf; 341 | } 342 | 343 | /* Ribon */ 344 | .side-dock-ribbon { 345 | background-color: #3e3471!important; 346 | color: var(--text-muted) 347 | } 348 | 349 | .side-dock-ribbon-tab, .side-dock-ribbon-action { 350 | color: white; 351 | } 352 | 353 | .theme-dark .side-dock-ribbon-tab.is-active { 354 | color: white; 355 | } 356 | 357 | .theme-dark .side-dock-ribbon-tab.is-before-active { 358 | color: white; 359 | } 360 | 361 | .theme-light .side-dock-ribbon-tab.is-active { 362 | color: var(--text-normal); 363 | } 364 | 365 | .theme-light .side-dock-ribbon-tab.is-before-active { 366 | color: white; 367 | } 368 | 369 | .side-dock-ribbon-tab-inner { 370 | color: unset; 371 | } 372 | 373 | .side-dock-ribbon-before.is-before-active .side-dock-ribbon-tab-inner, .side-dock-ribbon-after.is-after-active .side-dock-ribbon-tab-inner, .side-dock-ribbon-tab.is-before-active .side-dock-ribbon-tab-inner, .side-dock-ribbon-tab.is-after-active .side-dock-ribbon-tab-inner { 374 | background-color: #3e3471; 375 | } 376 | 377 | .side-dock-ribbon-tab, .side-dock-ribbon-before, .side-dock-ribbon-after, .side-dock-ribbon-tab-inner { 378 | transition: none; 379 | } 380 | 381 | /**/ 382 | /* Settings panel Section */ 383 | /**/ 384 | .vertical-tab-nav-item.is-active { 385 | background-color: #3e3471; 386 | color:white; 387 | } 388 | 389 | .horizontal-tab-nav-item:hover, .vertical-tab-nav-item:hover { 390 | background-color: #3e3471; 391 | color: white; 392 | } 393 | 394 | .vertical-tab-nav-item.is-active { 395 | background-color: #3e3471; 396 | } 397 | 398 | .vertical-tab-nav-item.is-active { 399 | border-left-color: #3e3471; 400 | } 401 | 402 | /* Centered editor with side border 403 | .markdown-source-view { 404 | position: relative; 405 | height: 100%; 406 | border-right-width: 7rem; 407 | border-left-width: 7rem; 408 | border-style: solid; 409 | border-color: #262140; 410 | } 411 | 412 | /* Graph View */ 413 | 414 | .graph-view.color-fill { 415 | color: #705dcf; 416 | } 417 | .graph-view.color-circle { 418 | color: #3e3471; 419 | } 420 | .graph-view.color-line { 421 | color: #3e3471; 422 | } 423 | .graph-view.color-text { 424 | color: var(--text-normal); 425 | } 426 | .graph-view.color-fill-highlight { 427 | color: #3e3471; 428 | } 429 | .graph-view.color-line-highlight { 430 | color: #705dcf; 431 | } 432 | /**/ 433 | 434 | /* Focus Mode */ 435 | .cm-s-obsidian, 436 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-link, 437 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-hmd-internal-link, 438 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-url, 439 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-hmd-escape-backslash, 440 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-inline-code, 441 | .cm-s-obsidian div:not(.CodeMirror-activeline) > pre.CodeMirror-line.HyperMD-codeblock, 442 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-hashtag, 443 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-builtin, 444 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-hr, 445 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-footref, 446 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line pre.HyperMD-footnote span.cm-hmd-footnote, 447 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-highlight, 448 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-highlight, 449 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-list, 450 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-task, 451 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-quote, 452 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-math, 453 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.hmd-fold-math-placeholder { 454 | color: var(--text-faint); 455 | } 456 | 457 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-highlight, 458 | .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-highlight { 459 | background-color: transparent; 460 | } 461 | 462 | .CodeMirror-activeline { 463 | color: var(--text-normal); 464 | } 465 | /**/ 466 | 467 | 468 | /* Andy Matuschak mode! V2! for 0.7.0! (so... 2.7?) */ 469 | /* Now with my own tweaks */ 470 | 471 | .mod-root.workspace-split.mod-vertical { 472 | overflow-x:auto; 473 | --header-width: 36px; 474 | } 475 | .mod-root.workspace-split.mod-vertical > div { 476 | min-width: calc(700px + var(--header-width)); 477 | box-shadow: 0px 0px 20px 20px rgba(0,0,0,0.25); 478 | position:sticky; 479 | left:0; 480 | } 481 | 482 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-8) { 483 | left: calc(var(--header-width) * 0); 484 | min-width: calc(100% - var(--size)); 485 | --size: calc(var(--header-width) * 1); 486 | } 487 | 488 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-7) { 489 | left: calc(var(--header-width) * 1); 490 | min-width: calc(100% - var(--size)); 491 | --size: calc(var(--header-width) * 1); 492 | } 493 | 494 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-6) { 495 | left: calc(var(--header-width) * 2); 496 | min-width: calc(100% - var(--size)); 497 | --size: calc(var(--header-width) * 2); 498 | } 499 | 500 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-5) { 501 | left: calc(var(--header-width) * 3); 502 | min-width: calc(100% - var(--size)); 503 | --size: calc(var(--header-width) * 3); 504 | } 505 | 506 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-4) { 507 | left: calc(var(--header-width) * 4); 508 | min-width: calc(100% - var(--size)); 509 | --size: calc(var(--header-width) * 4); 510 | } 511 | 512 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-3) { 513 | left: calc(var(--header-width) * 5); 514 | min-width: calc(100% - var(--size)); 515 | --size: calc(var(--header-width) * 5); 516 | } 517 | 518 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-2) { 519 | left: calc(var(--header-width) * 6); 520 | min-width: calc(100% - var(--size)); 521 | --size: calc(var(--header-width) * 6); 522 | } 523 | 524 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n-1) { 525 | left: calc(var(--header-width) * 7); 526 | min-width: calc(100% - var(--size)); 527 | --size: calc(var(--header-width) * 7); 528 | } 529 | 530 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n+0) { 531 | left: calc(var(--header-width) * 8); 532 | min-width: calc(100% - var(--size)); 533 | --size: calc(var(--header-width) * 8); 534 | } 535 | 536 | .mod-root.workspace-split.mod-vertical > div:nth-child(10n+1) { 537 | left: calc(var(--header-width) * 9); 538 | min-width: calc(100% - var(--size)); 539 | --size: calc(var(--header-width) * 9); 540 | } 541 | 542 | .workspace-leaf-content { 543 | padding-left: var(--header-width); 544 | position: relative; 545 | } 546 | 547 | .view-header { 548 | writing-mode: vertical-lr; 549 | border-right: 1px solid var(--background-secondary-alt); 550 | border-left: 2px solid var(--background-secondary-alt); 551 | border-top: none; 552 | border-bottom: none; 553 | height: auto; 554 | width: var(--header-width); 555 | position: absolute; 556 | left:0; 557 | top:0; 558 | bottom:0; 559 | } 560 | 561 | .workspace-leaf.mod-active .view-header { 562 | border-right: 2px solid var(--interactive-accent); 563 | border-bottom: none; 564 | } 565 | 566 | .view-header-title-container { 567 | height: unset; 568 | padding-left: unset; 569 | padding-top: 5px; 570 | } 571 | 572 | .view-header-title-container:after { 573 | width: 100%; 574 | height: 30px; 575 | top:unset; 576 | bottom: 0; 577 | background: linear-gradient(to bottom, transparent, var(--background-secondary)); 578 | } 579 | .workspace-leaf.mod-active .view-header-title-container:after { 580 | background: linear-gradient(to bottom, transparent, var(--background-primary-alt)); 581 | } 582 | 583 | .view-header-icon, .view-actions { 584 | padding: 10px 5px; 585 | } 586 | .view-action { 587 | margin: 8px 0; 588 | } 589 | 590 | .view-content { 591 | height: 100%; 592 | } 593 | 594 | .workspace-fake-target-overlay { 595 | background-color: var(--background-primary); 596 | } 597 | 598 | /**/ 599 | --------------------------------------------------------------------------------