diff options
Diffstat (limited to 'haunt/css')
| -rw-r--r-- | haunt/css/fonts.css | 59 | ||||
| -rw-r--r-- | haunt/css/highlight.css | 50 | ||||
| -rw-r--r-- | haunt/css/jakob.css | 239 |
3 files changed, 348 insertions, 0 deletions
diff --git a/haunt/css/fonts.css b/haunt/css/fonts.css new file mode 100644 index 0000000..b17b8fd --- /dev/null +++ b/haunt/css/fonts.css @@ -0,0 +1,59 @@ +/* Cantarell */ + +@font-face { + font-family: 'Cantarell'; + src: url('/fonts/Cantarell-Bold.otf') format('opentype'); + font-weight: bold; + font-style: normal; +} + +@font-face { + font-family: 'Cantarell'; + src: url('/fonts/Cantarell-BoldOblique.otf') format('opentype'); + font-weight: bold; + font-style: italic; +} + +@font-face { + font-family: 'Cantarell'; + src: url('/fonts/Cantarell-Oblique.otf') format('opentype'); + font-weight: normal; + font-style: italic; +} + +@font-face { + font-family: 'Cantarell'; + src: url('/fonts/Cantarell-Regular.otf') format('opentype'); + font-weight: normal; + font-style: normal; +} + +/* Hack */ + +@font-face { + font-family: 'Hack'; + src: url('/fonts/Hack-Bold.ttf'); + font-weight: bold; + font-style: normal; +} + +@font-face { + font-family: 'Hack'; + src: url('/fonts/Hack-BoldItalic.ttf'); + font-weight: bold; + font-style: italic; +} + +@font-face { + font-family: 'Hack'; + src: url('/fonts/Hack-Italic.ttf'); + font-weight: normal; + font-style: italic; +} + +@font-face { + font-family: 'Hack'; + src: url('/fonts/Hack-Regular.ttf'); + font-weight: normal; + font-style: normal; +} diff --git a/haunt/css/highlight.css b/haunt/css/highlight.css new file mode 100644 index 0000000..c69bbb7 --- /dev/null +++ b/haunt/css/highlight.css @@ -0,0 +1,50 @@ +.org-preprocessor, +.org-builtin { + color: #afd7d7; +} + +.org-comment { + color: #ff8700; +} + +.org-constant { + color: #87ffd7; +} + +.org-function-name { + color: #afd7ff; +} + +.org-keyword { + color: #1fb6d3; +} + +.org-negation-char { + color: #ff4b4b; +} + +.org-regexp-grouping-backslash { + color: #ffd787; +} + +.org-regexp-grouping-construct { + color: #d18aff; +} + +.org-doc, +.org-doc-string, +.org-string { + color: #ffaf87; +} + +.org-type { + color: #87ff87; +} + +.org-variable-name { + color: #ffd787; +} + +.org-warning { + color: #dd0000; +} diff --git a/haunt/css/jakob.css b/haunt/css/jakob.css new file mode 100644 index 0000000..d2e7cc2 --- /dev/null +++ b/haunt/css/jakob.css @@ -0,0 +1,239 @@ +/* Use smaller fonts and line-height on smaller screens. */ +@media (max-width: 54rem) { + body { + font-size: 14px; + line-height: 160%; + } +} + +@media (max-width: 26rem) { + body { + font-size: 12px; + line-height: 150%; + } +} + +body { + color: #4D4D4D; + background-color: #eee; + font-family: 'Cantarell', serif; + line-height: 140%; + text-rendering: optimizeLegibility; +} + +h1, h2, h3 { + font-family: 'Cantarell', sans; +} + +h1 { + font-size: 150%; + line-height: 110%; +} + +h2 { + font-size: 115%; +} + +h3 { + font-size: 100%; +} + +a { + color: #159957; + text-decoration: none; +} + +pre { + font-family: "Hack", monospace; + font-size: 90%; + line-height: 110%; + min-width: 100%; + background-color: #303539; + padding: 1rem; + color: #f0e9dc; + border-radius: 4px; + display: inline-block; +} + +code { + font-family: "Hack", monospace; +} + +blockquote { + padding-left: 2rem; + border-left: 5px solid #eee; + font-style: italic; +} + +/* Footer */ + +footer { + border-top: 1px solid #ccc; + font-size: 80%; +} + +.copyright { + text-align: center; +} + +.cc-button { + margin-left: 1rem; +} + +/* Navigation */ + +nav { + font-family: "Cantarell", sans; + padding-top: 1rem; + padding-bottom: 1rem; + border-bottom: 1px solid #eee; +} + +nav ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +nav a { + display: inline-block; + color: #000; +} + +nav a:hover { + color: #000; +} + +nav a:visited { + color: #000; +} + +@media (min-width: 800px) { + nav { + margin-bottom: 3rem; + } + + nav ul { + display: inline-block; + } + + nav li { + display: inline; + padding: 1rem; + } + + nav li:first-child { + padding-left: 0; + } +} + +@media (max-width: 800px) { + nav ul { + list-style-type: none; + margin: 0; + padding: 0; + } +} + +/* Container */ + +@media (min-width: 1140px) { + .container { + margin-left: 14rem; + margin-right: 4rem; + max-width: 52rem; + } +} + +@media (min-width: 800px) and (max-width: 1140px) { + .container { + margin-left: 6rem; + margin-right: 4rem; + max-width: 52rem; + } +} + +@media (max-width: 800px) { + .container { + margin: 1rem; + } +} + +.fade-text { + color: #ddd; +} + +/* Summaries */ + +.summary { + margin-bottom: 3rem; +} + +.summary .date { + margin-bottom: 0rem; +} + +.summary p { + margin-top: 1rem; + margin-bottom: 1rem; +} + +/* Posts */ + +.date { + margin-top: -1rem; + margin-bottom: 2rem; + color: #666; +} + +.tags { + margin-top: -2rem; + color: #666; +} + +.tags ul { + display: inline; + list-style: none; + padding-left: 0; +} + +.tags li { + display: inline; + padding-right: 0.5rem; +} + +.post img, .centered-image { + display: block; + max-width: 100%; + height: auto; + margin: 0 auto; + padding: 0px; + border-radius: 4px; +} + +.post video { + display: block; + margin: 0 auto; + padding: 0px; + max-width: 100%; +} + +figcaption { + margin: 1rem 1rem 0 1rem; + color: #717171; + font-style: italic; + font-size: 90%; +} + +.footpara { + display: inline; +} + +.mastodon { + width: 70%; + margin: auto; +} + +.mastodon iframe { + width: 100%; +} |