Last active
November 15, 2016 08:52
-
-
Save benthebear/777bf34f16f34006dc149c1b5936a1d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Palasthotel | |
// | |
// Export style to show one-sided, DinA4 PDFs | |
// | |
// Visit http://www.ulyssesapp.com/styles | |
// for full reference | |
// | |
// | |
// Document & Layout Settings | |
// | |
document-settings { | |
page-height: 297mm; page-width: 210mm | |
page-inset-top: 26mm; page-inset-inner: 30mm | |
page-inset-bottom: 52mm; page-inset-outer: 30mm | |
section-break: heading-1 | |
// always have H1 on a new page | |
two-sided: no | |
page-binding: left | |
footnote-enumeration: per-section | |
footnote-placement: end-of-page | |
footnote-style: decimal | |
} | |
// | |
// Default Typography | |
// | |
defaults { | |
font-family: "Lato"; | |
font-size: 11pt; | |
line-height: 18pt; | |
text-alignment: left | |
hyphenation: yes | |
// individual styles can override this | |
} | |
// | |
// Basic Non-Text-Area Page Layout | |
// | |
area-header { | |
content: none | |
top-spacing: 0mm | |
bottom-spacing: 0mm | |
} | |
area-footnotes { | |
font-size: 9pt | |
line-height: 10pt | |
top-spacing: 10mm | |
// additional space cut off from text area | |
divider-width: 0.5pt | |
divider-length: 20mm | |
divider-spacing: 5pt | |
// space between divider and footnotes | |
anchor-inset: 5mm | |
anchor-alignment: right | |
text-inset: 6mm | |
} | |
area-footer { | |
content: page-number | |
text-alignment: center | |
top-spacing: 0mm | |
bottom-spacing: 26mm | |
} | |
area-footer:left-page { | |
text-alignment: left | |
} | |
area-footer:right-page { | |
text-alignment: right | |
} | |
area-footer:first-page { | |
content: none | |
} | |
// | |
// Reusable styles (variables & mixins) | |
// | |
$mark-color = #FEFDD5 | |
$black = #000000 | |
$light-grey = #F1F1F1 | |
$link-color = #E1F5FF | |
// Readable colors FTW! | |
@code { | |
font-family: "Courier" | |
font-weight: normal | |
font-slant: normal | |
// Reset all traits to normal, since this can appear anywhere | |
} | |
// | |
// Headers | |
// | |
heading-all { | |
font-family: "Lato" | |
keep-with-following: true | |
text-alignment: left | |
hyphenation: no | |
// Remember that setting in defaults? | |
} | |
heading-1 { | |
font-size: 30pt | |
line-height: 30pt | |
margin-top: 60pt | |
// Since H1 is section break, this adds to first page top margin | |
margin-bottom: 60pt | |
} | |
heading-2 { | |
font-size: 20pt | |
line-height: 34pt | |
margin-top: 28pt | |
margin-bottom: 14pt | |
} | |
heading-3 { | |
font-size: 16pt | |
line-height: 34pt | |
margin-top: 21pt | |
margin-bottom: 7pt | |
} | |
heading-4 { | |
font-size: 11pt | |
line-height: 18pt | |
margin-top: 14pt | |
margin-bottom: 7pt | |
} | |
heading-5 { | |
font-size: 11pt | |
line-height: 18pt | |
margin-top: 14pt | |
} | |
heading-6 { | |
font-size: 11pt | |
line-height: 18pt | |
margin-top: 14pt | |
} | |
// | |
// Paragraph styles | |
// | |
paragraph { | |
first-line-indent: 0pt; | |
margin-bottom: 5pt; | |
} | |
paragraph:first { | |
first-line-indent: 0pt | |
// Do not indent the first paragraph, like... ever | |
} | |
heading-all + paragraph { | |
first-line-indent: 0pt | |
// Do not indent the first paragraph after any headline | |
} | |
paragraph-divider { | |
page-break: after | |
// Set the divider to help with manual page breaks | |
} | |
paragraph-figure { | |
margin-top: 14pt | |
margin-bottom: 7pt | |
text-alignment: center | |
// Applies to paragraphs that only hold images | |
} | |
paragraph-figure + paragraph { | |
first-line-indent: 0pt | |
// Do not indent the first paragraph after a figure | |
} | |
block-all + paragraph { | |
first-line-indent: 0pt | |
// Do not indent the first paragraph after a list or quote | |
} | |
// | |
// Block styles | |
// | |
block-all { | |
margin-top: 12pt | |
margin-bottom: 12pt | |
margin-left: 28pt | |
margin-right: 28pt | |
} | |
block-code : @code { | |
font-size: 10pt | |
// No need to set the font, since @code calls Courier | |
} | |
block-code paragraph { | |
first-line-indent: 0pt | |
text-alignment: left | |
hyphenation: no | |
} | |
block-quote { | |
font-slant: italic | |
} | |
block-raw { | |
visibility: hidden | |
// kills raw source blocks | |
} | |
block-comment { | |
visibility: hidden | |
// kills comment blocks | |
} | |
// | |
// List styles | |
// | |
list-all { | |
margin-left: 10pt | |
margin-right: 10pt | |
item-spacing: 7pt | |
// overwrites block-all | |
} | |
list-all list-all { | |
margin-top: 7pt | |
margin-bottom: 7pt | |
// Spacings between nested ordered and unordered lists | |
} | |
list-ordered { | |
enumeration-format: "%p." | |
enumeration-style: decimal | |
text-inset: 13pt | |
// Simulates tab stop justified right | |
} | |
list-ordered list-ordered { | |
enumeration-format: "%*%p" | |
enumeration-style: decimal | |
text-inset: 26pt | |
// Simulates tab stop justified right | |
} | |
list-ordered list-ordered list-ordered { | |
enumeration-format: "%*.%p" | |
enumeration-style: decimal | |
text-inset: 39pt | |
// Simulates tab stop justified right | |
} | |
list-unordered { | |
enumeration-format: "–" | |
text-inset: 10pt | |
// Simulates tab stop justified right | |
} | |
list-unordered list-unordered { | |
enumeration-format: "–" | |
text-inset: 10pt | |
// Simulates tab stop justified right | |
} | |
heading-all + list-all { | |
margin-top: 0pt | |
// Sets first list item after headline as if it were a paragraph | |
} | |
list-all paragraph { | |
margin-top: 0pt | |
// No spacing within a list | |
} | |
// | |
// Inline styles | |
// | |
inline-strong { | |
font-weight: bold | |
} | |
inline-emphasis { | |
font-slant: italic | |
} | |
inline-mark { | |
background-color: $mark-color | |
} | |
inline-citation { | |
font-slant: italic | |
} | |
inline-code : @code { | |
// Nothing else to set here, since it inherits from @code | |
} | |
inline-link { | |
underline: none | |
font-color: $black | |
background-color: $link-color | |
// Good thing we defined readable colors | |
} | |
inline-comment { | |
visibility: hidden | |
// kills comments | |
} | |
inline-delete { | |
visibility: hidden | |
// deletes deletions | |
} | |
inline-annotation { | |
footnote-visibility: hidden | |
} | |
inline-annotation:anchor { | |
background-color: none | |
} | |
inline-raw { | |
visibility: hidden | |
// kills raw source | |
} | |
inline-footnote paragraph { | |
first-line-indent: 0pt | |
// Do not indent paragraph in footnotes | |
} | |
inline-annotation paragraph { | |
first-line-indent: 0pt | |
// Do not indent paragraph in endnotes | |
} | |
// | |
// Ulysses specific stuff | |
// By default, we are hiding tags (##) etc. | |
// | |
ulysses-tag { | |
visibility: hidden | |
} | |
ulysses-whitespace { | |
visibility: hidden | |
} | |
ulysses-escape-character { | |
visibility: hidden | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment