diff --git a/system/Settings.php b/system/Settings.php index 37b632c..6e6c767 100644 --- a/system/Settings.php +++ b/system/Settings.php @@ -19,11 +19,13 @@ class Settings # no individual image sizes are allowed sind 1.3.4 $settings['images'] = $defaultSettings['images']; - # if there is no theme set - if(!isset($settings['theme'])) + # we have to check if the theme has been deleted + $themefolder = $settings['rootPath'] . $settings['themeFolder'] . DIRECTORY_SEPARATOR; + + # if there is no theme in settings or theme has been deleted + if(!isset($settings['theme']) OR !file_exists($themefolder . $settings['theme'])) { # scan theme folder and get the first theme - $themefolder = $settings['rootPath'] . $settings['themeFolder'] . DIRECTORY_SEPARATOR; $themes = array_diff(scandir($themefolder), array('..', '.')); $firsttheme = reset($themes); @@ -72,7 +74,7 @@ class Settings 'userPath' => $rootPath . 'settings' . DIRECTORY_SEPARATOR . 'users', 'authorPath' => __DIR__ . DIRECTORY_SEPARATOR . 'author' . DIRECTORY_SEPARATOR, 'editor' => 'visual', - 'formats' => ['markdown', 'headline', 'ulist', 'olist', 'table', 'quote', 'image', 'video', 'file', 'toc', 'hr', 'definition', 'code'], + 'formats' => ['markdown', 'headline', 'ulist', 'olist', 'table', 'quote', 'notice', 'image', 'video', 'file', 'toc', 'hr', 'definition', 'code'], 'contentFolder' => 'content', 'cache' => true, 'cachePath' => $rootPath . 'cache', diff --git a/system/Translations.php b/system/Translations.php index f8d00ba..810c170 100644 --- a/system/Translations.php +++ b/system/Translations.php @@ -17,7 +17,7 @@ class Translations $language = $settings['language']; } - $theme = 'typemill'; + $theme = 'cyanine'; if($settings !== NULL){ if(is_array($settings)){ if (array_key_exists('theme', $settings)) { diff --git a/system/author/css/style.css b/system/author/css/style.css index 6d2a3b8..3107c50 100644 --- a/system/author/css/style.css +++ b/system/author/css/style.css @@ -238,6 +238,22 @@ figcaption{ caption-side: bottom; } +button.note1{ + background-color: #d00; + color: #fff; +} +button.note2{ + background-color: #fb0; + color: #fff; +} +button.note3{ + background-color: #08e; + color: #fff; +} + +.blox-editor textarea.pl-notice{ + padding-left: 40px; +} .notice1 { margin: 1em 0; padding: 10px 1em; @@ -1814,16 +1830,21 @@ button.hdown{ left: 0px; font-size: 1em; font-weight: 700; - background: #f9f8f6; border: 0px solid #fff; border-right: 1px solid #fff; - color: #66b0a3; +// background: #f9f8f6; +// color: #66b0a3; } +button.hdown.headline{ + color: #f9f8f6; + background: #66b0a3; +} +/* button.hdown:hover,button.hdown:focus,button.hdown:active{ color: #f9f8f6; background: #66b0a3; } - +*/ .blox-editor .contenttype { position: absolute; top: 15px; diff --git a/system/author/img/apple-touch-icon-144x144.png b/system/author/img/apple-touch-icon-144x144.png deleted file mode 100644 index cb836ce..0000000 Binary files a/system/author/img/apple-touch-icon-144x144.png and /dev/null differ diff --git a/system/author/img/apple-touch-icon-152x152.png b/system/author/img/apple-touch-icon-152x152.png deleted file mode 100644 index fd6cef2..0000000 Binary files a/system/author/img/apple-touch-icon-152x152.png and /dev/null differ diff --git a/system/author/img/favicon-114.png b/system/author/img/favicon-114.png new file mode 100644 index 0000000..2072fda Binary files /dev/null and b/system/author/img/favicon-114.png differ diff --git a/system/author/img/favicon-144.png b/system/author/img/favicon-144.png new file mode 100644 index 0000000..dc84936 Binary files /dev/null and b/system/author/img/favicon-144.png differ diff --git a/system/author/img/favicon-16.png b/system/author/img/favicon-16.png new file mode 100644 index 0000000..6e4b28c Binary files /dev/null and b/system/author/img/favicon-16.png differ diff --git a/system/author/img/favicon-16x16.png b/system/author/img/favicon-16x16.png deleted file mode 100644 index 85ce61a..0000000 Binary files a/system/author/img/favicon-16x16.png and /dev/null differ diff --git a/system/author/img/favicon-180.png b/system/author/img/favicon-180.png new file mode 100644 index 0000000..745a12d Binary files /dev/null and b/system/author/img/favicon-180.png differ diff --git a/system/author/img/favicon-32.png b/system/author/img/favicon-32.png new file mode 100644 index 0000000..4a491bd Binary files /dev/null and b/system/author/img/favicon-32.png differ diff --git a/system/author/img/favicon-32x32.png b/system/author/img/favicon-32x32.png deleted file mode 100644 index 23ca6ce..0000000 Binary files a/system/author/img/favicon-32x32.png and /dev/null differ diff --git a/system/author/img/favicon-72.png b/system/author/img/favicon-72.png new file mode 100644 index 0000000..ed29605 Binary files /dev/null and b/system/author/img/favicon-72.png differ diff --git a/system/author/img/favicon.ico b/system/author/img/favicon.ico deleted file mode 100644 index 22a5bc9..0000000 Binary files a/system/author/img/favicon.ico and /dev/null differ diff --git a/system/author/img/mstile-144x144.png b/system/author/img/mstile-144x144.png deleted file mode 100644 index cb836ce..0000000 Binary files a/system/author/img/mstile-144x144.png and /dev/null differ diff --git a/system/author/js/vue-blox-config.js b/system/author/js/vue-blox-config.js index 8368a4a..3fcd1cf 100644 --- a/system/author/js/vue-blox-config.js +++ b/system/author/js/vue-blox-config.js @@ -63,6 +63,13 @@ let determiner = { } return false; }, + notice: function(block,lines,firstChar,secondChar,thirdChar){ + if( firstChar == '!' && ( secondChar == '!' || secondChar == ' ') ) + { + return "notice-component"; + } + return false; + }, ulist: function(block,lines,firstChar,secondChar,thirdChar){ if( (firstChar == '*' || firstChar == '-' || firstChar == '+') && secondChar == ' ') { @@ -79,6 +86,7 @@ let bloxFormats = { olist: { label: '', title: 'Numbered List', component: 'olist-component' }, table: { label: '', title: 'Table', component: 'table-component' }, quote: { label: '', title: 'Quote', component: 'quote-component' }, + notice: { label: '', title: 'Notice', component: 'notice-component' }, image: { label: '', title: 'Image', component: 'image-component' }, video: { label: '', title: 'Video', component: 'video-component' }, file: { label: '', title: 'File', component: 'file-component' }, diff --git a/system/author/js/vue-blox.js b/system/author/js/vue-blox.js index 27e74f1..2f673b8 100644 --- a/system/author/js/vue-blox.js +++ b/system/author/js/vue-blox.js @@ -165,7 +165,7 @@ const contentComponent = Vue.component('content-block', { }, submitBlock: function(){ var emptyline = /^\s*$(?:\r\n?|\n)/gm; - if(this.componentType == "code-component" || this.componentType == "math-component"){ } + if(this.componentType == "code-component" || this.componentType == "math-component" || this.componentType == "notice-component"){ } else if(this.componentType == "ulist-component" || this.componentType == "olist-component") { var listend = (this.componentType == "ulist-component") ? '* \n' : '1. \n'; @@ -834,11 +834,82 @@ const olistComponent = Vue.component('olist-component', { }, }) + +const noticeComponent = Vue.component('notice-component', { + props: ['compmarkdown', 'disabled'], + template: '
' + + '' + + '
' + + '' + + '' + + '' + + '' + + '
', + data: function(){ + return { + prefix: '! ', + notice: '', + noteclass: 'note1' + } + }, + mounted: function(){ + this.$refs.markdown.focus(); + if(this.compmarkdown) + { + this.prefix = this.getNoticePrefix(this.compmarkdown); + + var lines = this.compmarkdown.match(/^.*([\n\r]+|$)/gm); + for (var i = 0; i < lines.length; i++) { + lines[i] = lines[i].replace(/(^[\! ]+)/mg, ''); + } + + this.notice = lines.join(''); + this.noteclass = 'note'+this.prefix.length; + } + this.$nextTick(function () { + autosize(document.querySelectorAll('textarea')); + }); + }, + methods: { + noticedown: function() + { + this.prefix = this.getNoticePrefix(this.compmarkdown); + this.prefix += "! "; + if(this.prefix.length > 4) + { + this.prefix = "! "; + } + this.noteclass = 'note' + (this.prefix.length-1); + this.updatemarkdown(this.notice); + }, + getNoticePrefix: function(str) + { + var prefix = ''; + for(var i = 0; i < str.length; i++){ + if(str[i] != '!'){ return prefix } + prefix += '!'; + } + return prefix+' '; + }, + updatemarkdown: function(value) + { + this.notice = value; + + var lines = value.match(/^.*([\n\r]|$)/gm); + + var notice = this.prefix + lines.join(this.prefix); + + this.$emit('updatedMarkdown', notice); + }, + }, +}) + + const headlineComponent = Vue.component('headline-component', { props: ['compmarkdown', 'disabled'], template: '
' + '
' + - '' + + '' + '' + '
', data: function(){ diff --git a/system/author/languages/de.yaml b/system/author/languages/de.yaml index f287005..45315a6 100644 --- a/system/author/languages/de.yaml +++ b/system/author/languages/de.yaml @@ -115,6 +115,7 @@ NONE: Keine NO_PREVIEW: Keine Vorschau NO_SETTINGS: Keine Einstellungen NOT_EDITABLE: Nicht editierbar +NOTICE: Hinweis NUMBERED_LIST: Aufzählung OLIST: olist ONLINE: online diff --git a/system/author/languages/en.yaml b/system/author/languages/en.yaml index 215085a..6d3b373 100644 --- a/system/author/languages/en.yaml +++ b/system/author/languages/en.yaml @@ -120,6 +120,7 @@ NONE: None NO_PREVIEW: No Preview NO_SETTINGS: No Settings NOT_EDITABLE: not editable +NOTICE: Notice NUMBERED_LIST: Numbered List OLIST: olist ONLINE: online diff --git a/system/author/layouts/layout.twig b/system/author/layouts/layout.twig index 06ef3a3..94b900d 100644 --- a/system/author/layouts/layout.twig +++ b/system/author/layouts/layout.twig @@ -8,18 +8,19 @@ - + - - - - - + + + + + + + - diff --git a/system/author/layouts/layoutAuth.twig b/system/author/layouts/layoutAuth.twig index 65818c6..bb98ef6 100644 --- a/system/author/layouts/layoutAuth.twig +++ b/system/author/layouts/layoutAuth.twig @@ -11,11 +11,13 @@ - - - - - + + + + + + + diff --git a/system/author/layouts/layoutBlank.twig b/system/author/layouts/layoutBlank.twig index b771167..9efb0f8 100644 --- a/system/author/layouts/layoutBlank.twig +++ b/system/author/layouts/layoutBlank.twig @@ -10,11 +10,13 @@ - - - - - + + + + + + + diff --git a/system/author/layouts/layoutBlox.twig b/system/author/layouts/layoutBlox.twig index 6369e5d..d2e6cd3 100644 --- a/system/author/layouts/layoutBlox.twig +++ b/system/author/layouts/layoutBlox.twig @@ -10,11 +10,13 @@ - - - - - + + + + + + + @@ -79,6 +81,10 @@ + + {{ __('NOTICE') }} + + {{ __('PAPERCLIP') }} diff --git a/system/author/layouts/layoutEditor.twig b/system/author/layouts/layoutEditor.twig index 6ba924e..99d63e6 100644 --- a/system/author/layouts/layoutEditor.twig +++ b/system/author/layouts/layoutEditor.twig @@ -10,16 +10,16 @@ - - - - - - + + + + + + + - {{ assets.renderCSS() }} diff --git a/system/system.php b/system/system.php index 742ee6e..ba3b2f6 100644 --- a/system/system.php +++ b/system/system.php @@ -218,22 +218,22 @@ $container['view'] = function ($container) $view->getEnvironment()->addGlobal('assets', $container->assets); -/****************************** -* LOAD TRANSLATIONS * -******************************/ - $uri = $_SERVER['REQUEST_URI']; - if(isset($uri) && (strpos($uri,'/tm/') !== false OR strpos($uri,'/setup') !== false)) - { - // Admin environment labels - $labels = Typemill\Translations::loadTranslations('admin'); - } else { - // User environment labels - // For now it is useless, but it will prove useful in the future - $labels = Typemill\Translations::loadTranslations('user'); - } - $container['translations'] = $labels; - $view['translations'] = $labels; - $view->addExtension(new Typemill\Extensions\TwigLanguageExtension( $labels )); + /****************************** + * LOAD TRANSLATIONS * + ******************************/ + $uri = $_SERVER['REQUEST_URI']; + if(isset($uri) && (strpos($uri,'/tm/') !== false OR strpos($uri,'/setup') !== false)) + { + // Admin environment labels + $labels = Typemill\Translations::loadTranslations('admin'); + } else { + // User environment labels + // For now it is useless, but it will prove useful in the future + $labels = Typemill\Translations::loadTranslations('user'); + } + $container['translations'] = $labels; + $view['translations'] = $labels; + $view->addExtension(new Typemill\Extensions\TwigLanguageExtension( $labels )); return $view; }; diff --git a/themes/cyanine/404.twig b/themes/cyanine/404.twig new file mode 100644 index 0000000..d9826ee --- /dev/null +++ b/themes/cyanine/404.twig @@ -0,0 +1,24 @@ +{% extends 'layout.twig' %} + +{% block title %}ERROR 404: Page not found{% endblock %} + +{% block content %} + +
+ +
+
+

Not Found

+
+ +
+

Sorry, but we did not find the page that you are looking for.

+
+ + Home + +
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/themes/cyanine/css/style.css b/themes/cyanine/css/style.css new file mode 100644 index 0000000..a54789d --- /dev/null +++ b/themes/cyanine/css/style.css @@ -0,0 +1,478 @@ +/* Y O U R C S S S T Y L E S +** +** Style all markdown content elements properly +** Use the markdown test file to check it: https://github.com/typemill/typemill/blob/master/content/00-Welcome/03-Markdown-Test.md +** You can activate and use the Tachyons CSS library: https://typemill.net/theme-developers/helper-functions#activate-tachyons +** +*/ + +/************************************ +* STANDARD-ELEMENTS * +************************************/ +html{} +body{} +header{} +footer{} +nav{} +main{} +aside{} +article{} +article a, article a:link, article a:visited{ text-decoration: underline; } +/* article a:before{ content: '\203A'; margin-right: 5px; } */ +abbr{} +blockquote{ + margin: 1.5em 1.5em; + padding: 0.5em 0; + quotes: "\201C""\201D""\2018""\2019"; + font-style: italic; +} +blockquote:before{ + color: #ccc; + content: open-quote; + font-size: 4em; + line-height: 0.1em; + margin-right: 0.25em; + vertical-align: -0.4em; +} +blockquote p { + display: inline; +} +article pre, article code{ + font-family: monospace; +} +article pre{ + white-space: pre; + padding: 1em; + display: block; + max-width: 100%; + overflow-x: auto; +} +article code{ + font-size: 0.8em; + line-height: 1.4em; + padding: 0 0.5em; + word-break: break-all; +} +pre > code{ + font-size: 0.8em; + padding: 0; +} +dl{} +dt{} +dd{} +img{} +article h1, article h2, article h3, article h4, article h5, article h6{ + line-height: 1.15em; + font-weight: 700; + line-height: 1em; + position: relative; +} +article h1{ font-size: 2.2em; margin: 1.4em 0 0.6em; } +article h2{ font-size: 1.6em; margin: 1.8em 0 0.6em; } +article h3{ font-size: 1.3em; margin: 1.6em 0 0.6em; } +article h4{ font-size: 1.1em; margin: 1.4em 0 0.6em; } +article h5{ font-size: 1em; margin: 1.2em 0 0.6em; } +article h6{ font-size: 1em; font-style: italic; font-weight:300; margin: 1em 0 0.6em; } +article .h1, article .h2, article .h3, article .h4, article .h5, article .h6{ + height: auto; /* fix for tachyons */ +} +hr{} +ol{} +footer ul{ padding-left:1em; } +li{} +sup{} +/* Make table look good */ +.tm-table{ + overflow-x: auto; +} +table{ + width: 100%; + border-collapse: collapse; + font-size: .8em; +} +thead{ + text-align: left; +} +tr{ + border-top: 1px solid; + border-bottom: 1px solid; + margin-bottom: -1px; +} +th,td{ + padding: .5em 1em; +} + +/************************************ +* STANDARD SUGGESTIONS * +************************************/ + +/* Make links and buttons smooth */ +.link, .link:active, .link:focus, .link:hover, .link:link, .link:visited{ + transition: none; +} +a, a:link, a:visited, a:focus, a:hover, a:active, button{ + transition: all .15s ease!important; + transition-property: color, background-color, text-shadow, border; +} + +/* Fix background for hightlight plugin */ +code.hljs{ background: transparent; } + +/* For definition list */ +dt::after{ + content: ":"; +} + +/* Make images and image captions look good */ +img, figure,figure img{ + max-width: 100%; +} +figure{ + display: table; + margin: 2em auto; + padding: 0; +} +figure.left{ + width: auto; + float: left; + margin: 0 2em 2em 0; +} +figure.right{ + width: auto; + float: right; + margin: 0 0 2em 2em; +} +figure img{ + display: block; + margin: auto; +} +figcaption{ + display: table-caption; + caption-side: bottom; + font-size: 0.8em; + margin-top: .5em; + line-height: 1.2em; +} +.footnotes ol{ + font-size: .8em; + line-height: 1em; + margin: 0 0 0 0; +} + +/************************************ +* TYPEMILL-ELEMENTS * +************************************/ + +ul.TOC,.TOC ul{ + list-style: none; +} +.TOC{ + padding: 1em; + border: 1px solid; +} +.TOC{ + border-color: lightgray; +} +.TOC li{ + position: relative; +} +.TOC li a{ + text-decoration: none; + display: inline-block; + width: 100%; + border-bottom: 1px dashed lightseagreen; + line-height: 1em; + margin: .3em 0; +} +.TOC li a:hover,.TOC li a:focus,.TOC li a:active{ + border-bottom: 1px solid lightseagreen; +} +.TOC li a:after{ + content: '\203A'; + position: absolute; + right: 5px; + transition: all .2s; +} +.TOC li a:hover:after{ + right: 0px; +} +.notice1 { + margin: 1em 0; + padding: 10px 1em; + background-color: #ffded4; + border-left: 4px solid #f65a3c; +} +.notice2 { + margin: 1em 0; + padding: 10px 1em; + background-color: #fff3d4; + border-left: 4px solid #f6b73c; +} +.notice3, +.notice4, +.notice5, +.notice6 { + margin: 1em 0; + padding: 10px 1em; + background-color: #d4e0ff; + border-left: 4px solid #3c7bf6; +} + +/* Style the optional anchor-links for headlines */ +a.tm-heading-anchor { + position: absolute; + top: 0; + left: -0.8em; + width: 0.8em; + font-weight: 300; + opacity: 0; + text-decoration: none; +} +a.tm-heading-anchor:hover,a.tm-heading-anchor:focus { + opacity: 1; + text-decoration: none; +} +h2:focus > .tm-heading-anchor, +h2:hover > .tm-heading-anchor, +h3:focus > .tm-heading-anchor, +h3:hover > .tm-heading-anchor, +h4:focus > .tm-heading-anchor, +h4:hover > .tm-heading-anchor, +h5:focus > .tm-heading-anchor, +h5:hover > .tm-heading-anchor, +h6:focus > .tm-heading-anchor, +h6:hover > .tm-heading-anchor{ + opacity: .5; + text-decoration: none; +} + +/* style the typemill download-button for files */ +a.tm-download +{ + line-height: 35px; + margin-left: 40px; +} +a.tm-download::before{ + content: '\2193'; + position: absolute; + margin-left: -40px; + width: 30px; + height: 30px; + line-height: 30px; + font-family: Calibri, "Segoe UI", Roboto, Courier, Helvetica, -apple-system, BlinkMacSystemFont, sans-serif, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-size: 1.3em; + font-weight: 900; + border-radius: 50%; + text-align: center; + text-decoration: none; +} +a.tm-download:hover::before{ + text-decoration: none; +} + +/* Fake youtube button. Works with typemillutilities.js */ +.video-container{ + position: relative; + text-align: center; +} +img.youtube{ + position: relative; + max-width: 560px; +} +button.play-video { + position: absolute; + top: 50%; + left: 50%; + margin-top: -50px; + margin-left: -50px; + height: 100px; + width: 100px; + background: #e0474c; + color: #FFFFFF; + border-radius: 50%; + border: 0px; + padding: 0; + text-align: center; +} +button.play-video:hover { + background: #cc4146; + cursor: pointer; +} +button.play-video::after { + position: absolute; + top: 50%; + margin: -20px 0 0 -15px; + height: 0; + width: 0; + border-style: solid; + border-width: 20px 0 20px 40px; + border-color: transparent transparent transparent rgba(255, 255, 255, 0.75); + content: ' '; +} + + +/************************************ +* TACHYONS ADDITIONS * +************************************/ + +/* Keeps Footer at the bottom */ +.body-footer-bottom { /* add this class to the body-tag */ + min-height: 100vh; + display: flex; + flex-direction: column; +} +.footer-bottom { /* add this class to the footer-tag */ + margin-top: auto; +} +/* Nice set of system fonts, add this to the body-tag */ +.sans-serif-tm { + font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; +} +.sans-serif-title{ + font-family: arial,"Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; +} +/* optimize text, add this to the body-tag */ +.optimize-text{ + /* Adjust font size */ + font-size: 100%; + -webkit-text-size-adjust: 100%; + /* Font varient */ + font-variant-ligatures: none; + -webkit-font-variant-ligatures: none; + /* Smoothing */ + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + font-smoothing: antialiased; + -webkit-font-smoothing: antialiased; + text-shadow: rgba(0, 0, 0, .01) 0 0 1px; +} +.grid-container{ + display: block; +} +.grid-header, .grid-main, .grid-sidebar{ + display: block; + width: 100%; +} +.f-large{ + font-size: 4rem; +} +.h4-5{ + height: 12rem; +} +.shadow-2-hover{ + transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1); +} +.shadow-2-hover:hover, .shadow-2-hover:focus{ + box-shadow:0px 0px 8px 2px rgba( 0, 0, 0, 0.2 ); +} +.margin-bottom-1{ + margin-bottom: -1px; +} +.arrow-after:after{ + content: '\203A'; position: absolute; right:5px; +} +.arrow-after-transition:after{ + content: '\203A'; position: absolute; right:5px; + transition: all .2s; +} +.arrow-after-transition:hover:after{ + right:0px; +} +.indent-l-1{ padding-left:1rem; } +.indent-l-2{ padding-left:2rem; } +.indent-l-3{ padding-left:3rem; } +.indent-l-4{ padding-left:4rem; } +.indent-l-5{ padding-left:4.5rem; } +.indent-l-6{ padding-left:5rem; } +.b--solid-hover:hover,.b--solid-hover:focus,.b--solid-hover:active{ + border-style: solid; +} + +/************************* +* RESPONSIVE NAVIGATION * +*************************/ + +.contentnav{ + width: 70%; + position: absolute; + right: 0; + top: 0; +} +.burgerbutton{ + display: inline-block; + font-size: 2em; + width: 100%; + text-align: right; + padding: 2rem; + box-sizing: border-box; +} +.burgerbutton, .menu{ + transition:all .2s ease; +} +.menu { + max-height: 0; /* hide menu completely when burger unchecked */ + margin: 0px; + overflow:hidden; + position: relative; + z-index: 1; + font-size: 1.3rem; +} +#burger:checked ~ .menu { + max-height: 200%; +} + +#burger:checked ~ .menu { + background: #333; +} +.menu a{ + color: #fff; +} +#burger:checked ~ .burgerbutton { + color: #fff; + background: #333; +} + +@media screen and (min-width:50em) { + .grid-container{ + display: grid; + grid-template-columns: 30% 70%; + grid-column-gap: 1em; + grid-template-rows: auto auto; + grid-template-areas: + "gridHeader gridMain" + "gridSidebar gridMain" + ". gridMain" + } + .grid-header{ + grid-area: gridHeader; + } + .grid-main{ + grid-area: gridMain; + } + .grid-sidebar{ + grid-area: gridSidebar; + } + + + #burger:checked ~ .burgerbutton { + color: inherit; + background: inherit; + } + #burger:checked ~ .menu { + background: inherit; + } + .menu a{ + color: inherit; + } + .contentnav{ + position: relative; + width: auto; + } + .burgerbutton{ + display: none; + } + .menu{ + font-size: inherit; + max-height: inherit; + } +} \ No newline at end of file diff --git a/themes/cyanine/cyanine.yaml b/themes/cyanine/cyanine.yaml new file mode 100644 index 0000000..7e20c09 --- /dev/null +++ b/themes/cyanine/cyanine.yaml @@ -0,0 +1,304 @@ +name: Cyanine Theme +version: 1.0.0 +description: Cyanine is a modern and flexible multi-purpose theme and the standard theme for typemill. +author: Trendschau +homepage: https://trendschau.net +licence: MIT +paypal: https://paypal.me/typemill +amount: 25 + +settings: + myfield: My Default Value + +forms: + fields: + + landingpage: + type: checkbox + checkboxlabel: Activate a landingpage + + landingpageIntro: + type: fieldset + legend: Landingpage Intro Segment + fields: + landingpageIntro: + type: number + label: Position of Intro Segment + description: Use 0 to disable the section + introButtonLink: + type: text + label: Link for startbutton + placeholder: /my/deeplink + introButtonLabel: + type: text + label: Label for startbutton + placeholder: my label + + landingpageInfo: + type: fieldset + legend: Landingpage Info Segment + fields: + landingpageInfo: + type: number + label: Position of Info Segment + description: Use 0 to disable the section + infoMarkdown: + type: textarea + label: Use Makrdown + + landingpageTeaser: + type: fieldset + legend: Landingpage Teaser Segment + fields: + landingpageTeaser: + type: number + label: Position of Teaser Segment + description: Use 0 to disable the section + teaser1title: + type: text + label: Teaser 1 Title + teaser1text: + type: text + label: Teaser 1 Text + teaser1link: + type: text + label: Teaser 1 Link + fieldsize: half + teaser1label: + type: text + label: Teaser 1 Label + fieldsize: half + teaser2title: + type: text + label: Teaser 2 Title + teaser2text: + type: text + label: Teaser 2 Text + teaser2link: + type: text + label: Teaser 2 Link + fieldsize: half + teaser2label: + type: text + label: Teaser 2 Label + fieldsize: half + + landingpageContrast: + type: fieldset + legend: Landingpage Contrast Segment + fields: + landingpageContrast: + type: number + label: Position of Contrast Segment + description: Use 0 to disable the section + contrastTitle: + type: text + label: Title + contrastText: + type: textarea + label: Text + contrastLink: + type: text + label: Button Link + contrastLabel: + type: text + label: Button Label + + landingpageNavi: + type: fieldset + legend: Landingpage Contrast Segment + fields: + landingpageNavi: + type: number + label: Position of Navi Segment + description: Use 0 to disable the section + naviTitle: + type: text + label: Title for navigation + naviDepth: + type: number + label: How many navigation levels? + + landingpageNews: + type: fieldset + legend: Landingpage News Segment + fields: + landingpageNews: + type: number + label: Position of News Segment + description: Use 0 to disable the section + newsHeadline: + type: text + label: Headline for news-segment + placeholder: News + newsFolder: + type: text + label: List entries from folder + placeholder: /blog + description: Add a path to a folder from which you want to list entries + newsLabel: + type: text + label: Label for read more link + placeholder: All News + + fieldsetAuthor: + type: fieldset + legend: Article Author + fields: + authorPosition: + type: checkboxlist + label: Position of article author-line (top/bottom) + options: + top: Top + bottom: Bottom + + authorIntro: + type: text + label: Author intro text + placeholder: Author + + fieldsetDate: + type: fieldset + legend: Article Date + fields: + datePosition: + type: checkboxlist + label: Position of article date (top/bottom) + options: + top: Top + bottom: Bottom + + dateIntro: + type: text + label: Date intro text + placeholder: Last Updated + + dateFormat: + type: select + label: Date format + options: + 'm/d/Y': 01/20/2020 + 'd.m.Y': 20.01.2020 + + fieldsetGitHub: + type: fieldset + legend: Article edit link + fields: + gitPosition: + type: checkboxlist + label: Position of the edit link (top/bottom) + options: + top: Top + bottom: Bottom + + gitLink: + type: text + label: Link to repository + placeholder: https://github.com/typemill/documentation + help: Add the base url to the content repository (e.g. github). + + editText: + type: text + label: Text/label for edit link + placeholder: edit on github + + fieldsetfooter: + type: fieldset + legend: Footer columns + fields: + footercolumns: + type: checkboxlist + label: Activate footer columns + options: + footer1: Column 1 + footer2: Column 2 + footer3: Column 3 + footer1: + type: textarea + label: footer column 1 (use markdown) + footer2: + type: textarea + label: footer column 2 (use markdown) + footer3: + type: textarea + label: footer column 3 (use markdown) + + fieldsetFonts: + type: fieldset + legend: Font Families + fields: + font: + type: select + label: Basic font-family + description: All fonts are system fonts with (fallbacks) if the font is not installed + options: + serif: serif + sans-serif-tm: sans-serif + courier: courier (sans-serif) + helvetica: helvetica (sans-serif) + avenir: avenir (sans-serif) + athelas: athelas (serif) + georgia: georgia (serif) + times: times (serif) + bodoni: bodoni (serif) + calisto: calisto (serif) + garamond: garamond (serif) + baskerville: baskerville (serif) + fontheadline: + type: select + label: Font-family for headlines + description: All fonts are system fonts with (fallbacks) if the font is not installed + options: + serif: serif + sans-serif-tm: sans-serif + fontnavi: + type: select + label: Font-family for navigations + description: All fonts are system fonts with (fallbacks) if the font is not installed + options: + serif: serif + sans-serif-tm: sans-serif + courier: courier (sans-serif) + helvetica: helvetica (sans-serif) + avenir: avenir (sans-serif) + athelas: athelas (serif) + georgia: georgia (serif) + times: times (serif) + bodoni: bodoni (serif) + calisto: calisto (serif) + garamond: garamond (serif) + baskerville: baskerville (serif) + fieldsetColors: + type: fieldset + legend: Colors + fields: + brandcolorprimary: + type: text + label: Primary brand color + placeholder: 'leightseagreen' + description: Used for the body background and borders + brandcolorsecondary: + type: text + label: Secondary brand color + placeholder: '#f7f7f7' + description: Used for content background, font-colors on hover and more + fontcolorprimary: + type: text + label: Primary font color + placeholder: 'lightseagreen' + description: Used for text + fontcolorsecondary: + type: text + label: Secondary font color + placeholder: '#F7F7F7' + description: Used as contrary color for hovers in navigation and buttons + fontcolorlink: + type: text + label: text-links + placeholder: '#007F7F' + description: Used for links, check contrast for a11y. + thinbordercolor: + type: text + label: Thin border color + placeholder: 'lightgray' + description: Used for thin borders in navigations and tables diff --git a/themes/cyanine/home.twig b/themes/cyanine/home.twig new file mode 100644 index 0000000..f151b05 --- /dev/null +++ b/themes/cyanine/home.twig @@ -0,0 +1,19 @@ +{% set home = { + "landingpageIntro" : settings.themes.cyanine.landingpageIntro, + "landingpageInfo" : settings.themes.cyanine.landingpageInfo, + "landingpageTeaser" : settings.themes.cyanine.landingpageTeaser, + "landingpageContrast" : settings.themes.cyanine.landingpageContrast, + "landingpageNavi" : settings.themes.cyanine.landingpageNavi, + "landingpageNews" : settings.themes.cyanine.landingpageNews + } +%} + +{% for section,index in home|sort %} + + {% if index > 0 %} + + {% include 'home/' ~ section ~ '.twig' %} + + {% endif %} + +{% endfor %} \ No newline at end of file diff --git a/themes/cyanine/home/landingpageContrast.twig b/themes/cyanine/home/landingpageContrast.twig new file mode 100644 index 0000000..72dbaf8 --- /dev/null +++ b/themes/cyanine/home/landingpageContrast.twig @@ -0,0 +1,9 @@ +
+ +
+

{{ settings.themes.cyanine.contrastTitle }}

+

{{ settings.themes.cyanine.contrastText }}

+ {{ settings.themes.cyanine.contrastLabel }} +
+ +
diff --git a/themes/cyanine/home/landingpageInfo.twig b/themes/cyanine/home/landingpageInfo.twig new file mode 100644 index 0000000..34beb02 --- /dev/null +++ b/themes/cyanine/home/landingpageInfo.twig @@ -0,0 +1,9 @@ +
+ +
+ + {{ markdown(settings.themes.cyanine.infoMarkdown) }} + +
+ +
\ No newline at end of file diff --git a/themes/cyanine/home/landingpageIntro.twig b/themes/cyanine/home/landingpageIntro.twig new file mode 100644 index 0000000..afb286f --- /dev/null +++ b/themes/cyanine/home/landingpageIntro.twig @@ -0,0 +1,20 @@ +
+ +
+
+

{{ title }}

+
+ +
+ {{ content }} +
+ + {% if settings.themes.cyanine.introButtonLink %} + + {{ settings.themes.cyanine.introButtonLabel }} + + {% endif %} + +
+ +
diff --git a/themes/cyanine/home/landingpageNavi.twig b/themes/cyanine/home/landingpageNavi.twig new file mode 100644 index 0000000..4f9d750 --- /dev/null +++ b/themes/cyanine/home/landingpageNavi.twig @@ -0,0 +1,12 @@ +
+ +
+ +

{{ settings.themes.cyanine.naviTitle }}

+ + +
+ +
\ No newline at end of file diff --git a/themes/cyanine/home/landingpageNews.twig b/themes/cyanine/home/landingpageNews.twig new file mode 100644 index 0000000..bc00b68 --- /dev/null +++ b/themes/cyanine/home/landingpageNews.twig @@ -0,0 +1,66 @@ +
+ +
+ +

{{ settings.themes.cyanine.newsHeadline }}

+ + {% set pagelist = getPageList(navigation, settings.themes.cyanine.newsFolder, base_url) %} + + {% if pagelist.contains == 'pages' %} + + + + {% elseif pagelist.contains == 'posts' %} + + + + {% endif %} + + {{ settings.themes.cyanine.newsLabel }} + +
+ +
diff --git a/themes/cyanine/home/landingpageTeaser.twig b/themes/cyanine/home/landingpageTeaser.twig new file mode 100644 index 0000000..8a6ec68 --- /dev/null +++ b/themes/cyanine/home/landingpageTeaser.twig @@ -0,0 +1,16 @@ +
+ +
+
+

{{ settings.themes.cyanine.teaser1title }}

+

{{ settings.themes.cyanine.teaser1text }}

+ {{ settings.themes.cyanine.teaser1label }} +
+
+

{{ settings.themes.cyanine.teaser2title }}

+

{{ settings.themes.cyanine.teaser2text }}

+ {{ settings.themes.cyanine.teaser2label }} +
+
+ +
\ No newline at end of file diff --git a/themes/cyanine/index.twig b/themes/cyanine/index.twig new file mode 100644 index 0000000..0915e48 --- /dev/null +++ b/themes/cyanine/index.twig @@ -0,0 +1,17 @@ +{% extends '/layout.twig' %} + +{% block title %}{{ metatabs.meta.title }} | {{ settings.title }}{% endblock %} + +{% block content %} + + {% if home and settings.themes.cyanine.landingpage %} + + {% include 'home.twig' %} + + {% else %} + + {% include 'page.twig' %} + + {% endif %} + +{% endblock %} \ No newline at end of file diff --git a/themes/cyanine/js/script.js b/themes/cyanine/js/script.js new file mode 100644 index 0000000..dec3afb --- /dev/null +++ b/themes/cyanine/js/script.js @@ -0,0 +1,7 @@ +/* Y O U R J A V A S C R I P T + +** Add your JavaScript here +** You can activate and use VUE.js and AXIOS: https://typemill.net/theme-developers/helper-functions#activate-vuejs-and-axios +** Typemillutilities.js is included in index.twig for managing youtube-videos. + +*/ \ No newline at end of file diff --git a/themes/cyanine/languages/en.yaml b/themes/cyanine/languages/en.yaml new file mode 100644 index 0000000..1255ad3 --- /dev/null +++ b/themes/cyanine/languages/en.yaml @@ -0,0 +1,2 @@ +# Please add translations for your theme like this +# ACTIVATE_SPECIAL_STARTPAGE_DESIGN: Activate Special Startpage-Design \ No newline at end of file diff --git a/themes/cyanine/layout.twig b/themes/cyanine/layout.twig new file mode 100644 index 0000000..25972a0 --- /dev/null +++ b/themes/cyanine/layout.twig @@ -0,0 +1,128 @@ + + + + + {% block title %}{% endblock %} + + + + + + + + + + {% if favicon %} + + + + + + + + + {% endif %} + + + + + + + + + + + + + {% block stylesheets %} + + + + + + {{ assets.activateTachyons() }} + {{ assets.renderCSS() }} + + {% endblock %} + + + + {% block content %}{% endblock %} + + {% include 'partials/footer.twig' %} + + {% block javascripts %} + + + + + {{ assets.renderJS() }} + + {% endblock %} + + + \ No newline at end of file diff --git a/themes/cyanine/page.twig b/themes/cyanine/page.twig new file mode 100644 index 0000000..68b53f6 --- /dev/null +++ b/themes/cyanine/page.twig @@ -0,0 +1,124 @@ +{% set published = metatabs.meta.manualdate ? metatabs.meta.manualdate : metatabs.meta.modified %} + +
+ +
+ + + +
+ + + +
+
+ +

{{ title }}

+ + {% if (settings.themes.cyanine.datePosition.top or settings.themes.cyanine.authorPosition.top or settings.themes.cyanine.gitPosition.top) %} +
+ + {% if settings.themes.cyanine.gitPosition.top %} + {{ settings.themes.cyanine.editText }} + {% endif %} +
+ {% endif %} +
+ + {{ content }} + + {% if (settings.themes.cyanine.datePosition.bottom or settings.themes.cyanine.authorPosition.bottom or settings.themes.cyanine.gitPosition.bottom) %} +
+ + {% if settings.themes.cyanine.gitPosition.bottom %} + {{ settings.themes.cyanine.editText }} + {% endif %} +
+ {% endif %} + +
+ + {% if item.elementType == 'file' %} + + {% if item.prevItem or item.nextItem %} + +
+ {% if item.prevItem %} + ‹  {{ item.prevItem.name }} + {% endif %} + {% if item.nextItem %} + {{ item.nextItem.name }}  › + {% endif %} +
+ + {% endif %} + + {% endif %} + + {% if item.elementType == 'folder' and item.contains == 'pages' %} + + + + {% endif %} + + {% if item.elementType == 'folder' and item.contains == 'posts' %} + + {% include 'partials/posts.twig' %} + + {% endif %} + +
+ + + +
+ +
\ No newline at end of file diff --git a/themes/cyanine/partials/breadcrumb.twig b/themes/cyanine/partials/breadcrumb.twig new file mode 100644 index 0000000..8c99ee9 --- /dev/null +++ b/themes/cyanine/partials/breadcrumb.twig @@ -0,0 +1,23 @@ +
+ +
+ {{ settings.title|title }} + + {% for crumb in breadcrumb %} +   ›   + {% if loop.last %} + {{ crumb.name|title }} + {% else %} + {{ crumb.name|title }} + {% endif %} + {% endfor %} +
+
+ {% if item.prevItem %} + ‹  previous + {% endif %} + {% if item.nextItem %} + next  › + {% endif %} +
+
\ No newline at end of file diff --git a/themes/cyanine/partials/footer.twig b/themes/cyanine/partials/footer.twig new file mode 100644 index 0000000..4ae643e --- /dev/null +++ b/themes/cyanine/partials/footer.twig @@ -0,0 +1,24 @@ +{% set nowYear = "now"|date("Y") %} + + + +
+

{{ settings.copyright }} by {{ settings.author }}, {{ copyrightYears }}. All Rights Reserved. Built with Typemill.

+
\ No newline at end of file diff --git a/themes/cyanine/partials/navigation.twig b/themes/cyanine/partials/navigation.twig new file mode 100644 index 0000000..0aec349 --- /dev/null +++ b/themes/cyanine/partials/navigation.twig @@ -0,0 +1,35 @@ +{% macro loop_over(navigation) %} + + {% import _self as macros %} + + {% for element in navigation %} + + {% set depth = element.keyPathArray|length %} + + {% if element.activeParent %} +
  • + {% elseif element.active %} +
  • + {% else %} +
  • + {% endif %} + + {% if (element.elementType == 'folder') %} + {{ element.name }} + {% if (element.folderContent|length > 0) and (element.contains == 'pages') %} + + {% endif %} + {% else %} + {{ element.name }} + {% endif %} +
  • + {% endfor %} +{% endmacro %} + +{% import _self as macros %} + + \ No newline at end of file diff --git a/themes/cyanine/partials/navigationFlat.twig b/themes/cyanine/partials/navigationFlat.twig new file mode 100644 index 0000000..171afb7 --- /dev/null +++ b/themes/cyanine/partials/navigationFlat.twig @@ -0,0 +1,27 @@ +{% set maxdepth = navidepth ? navidepth : 2 %} + +{% macro loop_over(navigation, level, maxdepth, chapnum) %} + + {% import _self as macros %} + + {% for element in navigation %} +
  • + {% if element.elementType == 'folder' and level < maxdepth %} + {% if chapnum %}{{ element.chapter }}. {% endif %}{{ element.name }} + {% if element.contains == 'pages' %} + + {% endif %} + {% else %} + {% if chapnum %}{{ element.chapter }} {% endif %}{{ element.name }} + {% endif %} +
  • + {% endfor %} +{% endmacro %} + +{% import _self as macros %} + + \ No newline at end of file diff --git a/themes/cyanine/partials/posts.twig b/themes/cyanine/partials/posts.twig new file mode 100644 index 0000000..fe465e5 --- /dev/null +++ b/themes/cyanine/partials/posts.twig @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/themes/typemill/404.twig b/themes/typemill/404.twig deleted file mode 100644 index e3dd1ab..0000000 --- a/themes/typemill/404.twig +++ /dev/null @@ -1,10 +0,0 @@ -{% extends '/partials/layout.twig' %} - -{% block title %}ERROR 404: Page not found{% endblock %} - -{% block content %} - -

    Not Found

    -

    Sorry, but we did not find the page that you are looking for.

    - -{% endblock %} \ No newline at end of file diff --git a/themes/typemill/chapter.twig b/themes/typemill/chapter.twig deleted file mode 100644 index c7da37e..0000000 --- a/themes/typemill/chapter.twig +++ /dev/null @@ -1,51 +0,0 @@ - - {% if settings.themes.typemill.chapter %} - -
    {{ settings.themes.typemill.chapter }} {{ item.chapter }}
    - - {% endif %} - - {% if content is empty %} - -

    {{ item.name }}

    - - {% endif %} - -

    {{ title }}

    - - {{ content }} - - - {% if item.contains == 'pages' %} -
    - - - -
    - - {% elseif item.contains == 'posts' %} - - - - {% endif %} diff --git a/themes/typemill/cover.twig b/themes/typemill/cover.twig deleted file mode 100644 index bc7954d..0000000 --- a/themes/typemill/cover.twig +++ /dev/null @@ -1,30 +0,0 @@ -{% extends '/partials/layoutCover.twig' %} - -{% block title %}{{ metatabs.meta.title | default(title) }} | {{ settings.title }}{% endblock %} - -{% block content %} - - {% if logo and settings.themes.typemill.coverlogo %} - - - - {% else %} - -

    {{ title }}

    - - {% endif %} - -
    - - {{ content }} - - -
    - -{% endblock %} \ No newline at end of file diff --git a/themes/typemill/css/fontello/LICENSE.txt b/themes/typemill/css/fontello/LICENSE.txt deleted file mode 100644 index 61ddfd4..0000000 --- a/themes/typemill/css/fontello/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -Font license info - - -## Font Awesome - - Copyright (C) 2016 by Dave Gandy - - Author: Dave Gandy - License: SIL () - Homepage: http://fortawesome.github.com/Font-Awesome/ - - -## Entypo - - Copyright (C) 2012 by Daniel Bruce - - Author: Daniel Bruce - License: SIL (http://scripts.sil.org/OFL) - Homepage: http://www.entypo.com - - diff --git a/themes/typemill/css/fontello/README.txt b/themes/typemill/css/fontello/README.txt deleted file mode 100644 index beaab33..0000000 --- a/themes/typemill/css/fontello/README.txt +++ /dev/null @@ -1,75 +0,0 @@ -This webfont is generated by http://fontello.com open source project. - - -================================================================================ -Please, note, that you should obey original font licenses, used to make this -webfont pack. Details available in LICENSE.txt file. - -- Usually, it's enough to publish content of LICENSE.txt file somewhere on your - site in "About" section. - -- If your project is open-source, usually, it will be ok to make LICENSE.txt - file publicly available in your repository. - -- Fonts, used in Fontello, don't require a clickable link on your site. - But any kind of additional authors crediting is welcome. -================================================================================ - - -Comments on archive content ---------------------------- - -- /font/* - fonts in different formats - -- /css/* - different kinds of css, for all situations. Should be ok with - twitter bootstrap. Also, you can skip style and assign icon classes - directly to text elements, if you don't mind about IE7. - -- demo.html - demo file, to show your webfont content - -- LICENSE.txt - license info about source fonts, used to build your one. - -- config.json - keeps your settings. You can import it back into fontello - anytime, to continue your work - - -Why so many CSS files ? ------------------------ - -Because we like to fit all your needs :) - -- basic file, .css - is usually enough, it contains @font-face - and character code definitions - -- *-ie7.css - if you need IE7 support, but still don't wish to put char codes - directly into html - -- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face - rules, but still wish to benefit from css generation. That can be very - convenient for automated asset build systems. When you need to update font - - no need to manually edit files, just override old version with archive - content. See fontello source code for examples. - -- *-embedded.css - basic css file, but with embedded WOFF font, to avoid - CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain. - We strongly recommend to resolve this issue by `Access-Control-Allow-Origin` - server headers. But if you ok with dirty hack - this file is for you. Note, - that data url moved to separate @font-face to avoid problems with - - - - - - - -
    -

    fontello font demo

    - -
    -
    -
    -
    icon-mail0xe800
    -
    icon-share0xe801
    -
    icon-left-open-big0xe802
    -
    icon-right-open-big0xe803
    -
    -
    -
    icon-download0xe804
    -
    icon-twitter0xf099
    -
    icon-facebook0xf09a
    -
    icon-github-circled0xf09b
    -
    -
    -
    icon-linkedin0xf0e1
    -
    icon-xing0xf168
    -
    icon-whatsapp0xf232
    -
    -
    - - - \ No newline at end of file diff --git a/themes/typemill/css/fontello/font/fontello.eot b/themes/typemill/css/fontello/font/fontello.eot deleted file mode 100644 index b2f5118..0000000 Binary files a/themes/typemill/css/fontello/font/fontello.eot and /dev/null differ diff --git a/themes/typemill/css/fontello/font/fontello.svg b/themes/typemill/css/fontello/font/fontello.svg deleted file mode 100644 index ec3d647..0000000 --- a/themes/typemill/css/fontello/font/fontello.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - -Copyright (C) 2019 by original authors @ fontello.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/themes/typemill/css/fontello/font/fontello.ttf b/themes/typemill/css/fontello/font/fontello.ttf deleted file mode 100644 index 40fee40..0000000 Binary files a/themes/typemill/css/fontello/font/fontello.ttf and /dev/null differ diff --git a/themes/typemill/css/fontello/font/fontello.woff b/themes/typemill/css/fontello/font/fontello.woff deleted file mode 100644 index b60eb37..0000000 Binary files a/themes/typemill/css/fontello/font/fontello.woff and /dev/null differ diff --git a/themes/typemill/css/fontello/font/fontello.woff2 b/themes/typemill/css/fontello/font/fontello.woff2 deleted file mode 100644 index 215e92e..0000000 Binary files a/themes/typemill/css/fontello/font/fontello.woff2 and /dev/null differ diff --git a/themes/typemill/css/normalize.css b/themes/typemill/css/normalize.css deleted file mode 100644 index b672540..0000000 --- a/themes/typemill/css/normalize.css +++ /dev/null @@ -1,461 +0,0 @@ -/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ - -/** - * 1. Change the default font family in all browsers (opinionated). - * 2. Correct the line height in all browsers. - * 3. Prevent adjustments of font size after orientation changes in - * IE on Windows Phone and in iOS. - */ - -/* Document - ========================================================================== */ - -html { - font-family: sans-serif; /* 1 */ - line-height: 1.15; /* 2 */ - -ms-text-size-adjust: 100%; /* 3 */ - -webkit-text-size-adjust: 100%; /* 3 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers (opinionated). - */ - -body { - margin: 0; -} - -/** - * Add the correct display in IE 9-. - */ - -article, -aside, -footer, -header, -nav, -section { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - * 1. Add the correct display in IE. - */ - -figcaption, -figure, -main { /* 1 */ - display: block; -} - -/** - * Add the correct margin in IE 8. - */ - -figure { - margin: 1em 40px; -} - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ - -a { - background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ -} - -/** - * Remove the outline on focused links when they are also active or hovered - * in all browsers (opinionated). - */ - -a:active, -a:hover { - outline-width: 0; -} - -/** - * 1. Remove the bottom border in Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ - -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font style in Android 4.3-. - */ - -dfn { - font-style: italic; -} - -/** - * Add the correct background and color in IE 9-. - */ - -mark { - background-color: #ff0; - color: #000; -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -audio, -video { - display: inline-block; -} - -/** - * Add the correct display in iOS 4-7. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Remove the border on images inside links in IE 10-. - */ - -img { - border-style: none; -} - -/** - * Hide the overflow in IE. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers (opinionated). - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: sans-serif; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. - */ - -button, -html [type="button"], /* 1 */ -[type="reset"], -[type="submit"] { - -webkit-appearance: button; /* 2 */ -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Change the border, margin, and padding in all browsers (opinionated). - */ - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * 1. Add the correct display in IE 9-. - * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Remove the default vertical scrollbar in IE. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10-. - * 2. Remove the padding in IE 10-. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. - */ - -details, /* 1 */ -menu { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Scripting - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -canvas { - display: inline-block; -} - -/** - * Add the correct display in IE. - */ - -template { - display: none; -} - -/* Hidden - ========================================================================== */ - -/** - * Add the correct display in IE 10-. - */ - -[hidden] { - display: none; -} diff --git a/themes/typemill/css/style.css b/themes/typemill/css/style.css deleted file mode 100644 index 5721e1d..0000000 --- a/themes/typemill/css/style.css +++ /dev/null @@ -1,950 +0,0 @@ -/********************** -* TRANSITIONS * -**********************/ - -a, a:link, a:visited, a:focus, a:hover, a:active, button, .button, .share-link, .open .share-link{ - -webkit-transition: all 0.2s ease; - -moz-transition: all 0.2s ease; - -o-transition: all 0.2s ease; - -ms-transition: all 0.2s ease; - transition: all 0.2s ease; -} - -/********************** -* COLORS * -**********************/ - -body{ background: #f9f8f6; color: #444; } -aside{ background: #f9f8f6; border-left: 30px solid #FFF; border-right: 30px solid #FFF; border-bottom: 30px solid #FFF; } -.main-menu li.folder.level-1{ border-left: 4px solid #f9f8f6; } -.main-menu li.active.folder.level-1{ background: #fdfcfa; border-left: 4px solid #e0474c; } -.main-menu li a:focus, .main-menu li a:hover, .main-menu li a:active, .main-menu li.active.file a{ color: #e0474c; } -article {background: #FFF; } -article a, article a:link, article a:visited, -footer a, footer a:link, footer a:visited -.lead a, .lead a:link, .lead a:visited{ text-decoration: none; color: #e0474c; } -article a:focus, article a:hover, article a:active, -footer a:focus, footer a:hover, footer a:active -.lead a:focus, .lead a:hover, .lead a:active{ text-decoration: underline } -article .breadcrumb,article .paging a{ background: #f9f8f6; } -article .breadcrumb span a{ background: #e0474c; color: #f9f8f6; border: 1px solid #e0474c; } -article .breadcrumb a:focus,article .breadcrumb a:hover,article .breadcrumb a:active { background: #f9f8f6; color: #e0474c; } -article .breadcrumb button{ border: 1px solid #e0474c; color: #e0474c; background: #f9f8f6; } -article .breadcrumb button.active{ border: 1px solid #e0474c; color: #f9f8f6; background: #e0474c; } -article .paging a{ color: #e0474c; } -article .paging a:focus, article .paging a:hover, article .paging a:active{ color: #f9f8f6; background: #e0474c; } -header a span, .cover span{ color: #e0474c; } -header a, .cover{ color: #444; } -footer{ background: #FFF; } -.chapterNumber{ color: #bbb; } -.chapter h1{ border-bottom: 2px solid #f9f8f6; } -.cover .actionLink a, .cover .actionLink a:link, .cover .actionLink a:visited, -a.readMore, a.readMore:link, a.readMore:visited{ border: 2px solid #e0474c; background: #e0474c; color: #f9f8f6; } -.cover .lead a:focus, .cover .actionLink a:hover, .cover .actionLink a:active, -a.readMore:focus, a.readMore:hover, a.readMore:active{ - border: 2px solid #e0474c; - color: #444; - background: transparent; - text-decoration: none; -} -pre,code{ color: #333; background: #f9f8f6; } -pre{ border-left: 4px solid #e0474c; } -code.hljs{ background: transparent; } -.TOC li:before{ color: #bbb; } - -/******************** -* FONTS * -********************/ - -body{ - font-family: Calibri, Helvetica, Arial, sans-serif; -} -pre,code{ - font-family: monospace; -} - -/******************** -* HEADLINES * -********************/ - -h1, h2, h3, h4, h5, h6{ font-weight: 700; line-height: 1em; position: relative;} -h1{ font-size: 2.2em; margin: 1.4em 0 0.6em; } -h2{ font-size: 1.6em; margin: 1.3em 0 0.6em; } -h3{ font-size: 1.3em; margin: 1.2em 0 0.6em; } -h4{ font-size: 1.1em; margin: 1.2em 0 0.6em; } -h5{ font-size: 1em; margin: 1.2em 0 0.6em; } -h6{ font-size: 1em; font-style: italic; font-weight:300; margin: 1em 0 0.6em; } - -/******************** -* STRUCTURE * -********************/ - -html,body{ - padding: 0; - margin:0; -} -html{ - /* Adjust font size */ - font-size: 100%; - -webkit-text-size-adjust: 100%; - /* Font varient */ - font-variant-ligatures: none; - -webkit-font-variant-ligatures: none; - /* Smoothing */ - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - font-smoothing: antialiased; - -webkit-font-smoothing: antialiased; - text-shadow: rgba(0, 0, 0, .01) 0 0 1px; -} -body{ - padding: 20px; - font-size: 16px; -} -.main{ - display: block; - margin: auto; - max-width: 1200px; -} -header, aside, article{ - display: inline-block; - vertical-align: top; - box-sizing: border-box; -} -header{ - width: 100%; -} -aside{ - display: block; - padding: 0; - margin: 0; - left: 20px; - right: 20px; -} -aside#tmnavigation{ - position: absolute; - top: 175px; -} -article{ - width: 100%; - position: relative; -} -.cover{ - display: block; - margin: auto; - max-width: 800px; - text-align: center; -} -footer{ - margin: 20px 0; - width: 100%; -} - -/******************** -* HEADER * -********************/ -header{ - font-weight: 700; - text-align: center; -} -header a{ - font-weight: 700; - font-size: 2.5em; - text-decoration: none; -} -header p{ - padding-top: 0; - margin-top: 0; -} - -/************************ -* NAVIGATION * -************************/ -.close{ - max-height: 0; - transition: max-height 0.25s ease-out; - overflow: hidden; - z-index: -1; -} -.open{ - max-height: 2500px; - transition: max-height 0.25s ease-in; - overflow: hidden; -} -.main-menu{ - line-height: 1.4em; - padding-left: 0px; - margin-left: 0px; -} -.main-menu a, .main-menu a:link, .main-menu a:focus, .main-menu a:hover, .main-menu a:active, .main-menu a:visited{ - text-decoration: none; - color: #333; -} -.main-menu a:focus, .main-menu a:hover, .main-menu a:active, .main-menu a.active{} -.main-menu ul, .main-menu li{ - padding:0 5px; - margin: 0; - list-style: none; - text-transform: none; - font-size: 1em; - font-weight: 300; -} -.main-menu li.folder{ - padding:5px; -} -.main-menu li.folder.level-1{ - padding-left: 15px; -} -.main-menu li.file.level-1{ - padding-left: 20px; -} -.main-menu > ul > li -{ - font-size: 0.8em; -} -.main-menu > ul > li.folder -{ - text-transform: uppercase; - margin: 15px 0 5px; - font-weight: 700; -} - -/************************ -* COVER * -************************/ -.cover h1{ - font-size: 2.5em; - font-weight: 700; -} -.cover .actionLink a, a.readMore{ - display: inline-block; - min-width: 100px; - padding: 5px 10px; - margin: 25px 5px; - border-radius: 3px; - font-size: 0.8em; - line-height: 1.7em; - text-align: center; - text-decoration: none; -} -.cover.startpage h1{ - margin: 1em 0 0.6em; -} -.cover.startpage .breadcrumb{ - background: transparent; -} -.cover footer{ - background: transparent; - width: 100%; - float: none; -} - -/************************ -* TOC-NAV * -************************/ - -.toc-nav{ - display: inline-block; - width: 100%; - font-size: 0.8em; - border-top: 2px solid #f9f8f6; - padding-top: 50px; - margin-bottom: 50px; -} -.cover .toc-nav{ - border-top: 0; - margin-top: 100px; -} -.toc-nav ul, .toc-nav li{ - padding: 0 0 0 0; - margin: 0 0 0 0; - list-style: none; - text-transform: none; - font-weight: 300; -} -.toc-nav li{ - box-sizing: border-box; - width: 100%; - display: inline-block; - text-transform: capitalize; - text-align: left; -} -.toc-nav li a { - display: inline-block; - margin: 5px 0; - width: 100%; - padding: 12px 8px; - box-sizing: border-box; -} -.toc-nav li.level-1{ - padding-left: 0px; - text-transform: uppercase; - margin: 15px 0 5px; - font-weight: 700; -} -.toc-nav li.level-1 a{ - text-decoration: none; - color: #444; -} -.toc-nav li.level-2{ - width: 100%; - margin: 0% 1%; -} -.toc-nav li.level-2 a{ - background: #fdfcfa; - border-left: 2px solid #ddd; - color: #444; - text-decoration: none; -} -.toc-nav li.level-2 a:hover{ - background: #f4f3f1; - border-left: 2px solid #e0474c; -} - - -/************************ -* CHAPTER * -************************/ -.chapterNumber, .chapter h1{ - text-align: center; -} -.chapterNumber{ - font-size: 1em; - font-weight: 300; - padding: 1.5em 0 0; - margin: 0px -} -.chapter h1{ - text-transform: uppercase; - padding-bottom: 40px; -} - -/************************ -* ARTICLE * -************************/ -article{ - padding: 30px 30px; - font-size: 1em; - line-height: 1.35em; -} - -img, figure,figure img{ - max-width: 100%; -} -figure{ - display: table; - margin: 2em auto; - padding: 0; -} -figure.left{ - width: auto; - float: left; - margin: 0px 30px 30px 0; -} -figure.right{ - width: auto; - float: right; - margin: 0px 0px 30px 30px; -} -figure img{ - display: block; - margin: auto; -} -figcaption{ - display: table-caption; - caption-side: bottom; -} - - -article img.youtube{ - position: relative; - max-width: 560px; -} -.video-container{ - position: relative; - text-align: center; -} -button.play-video { - position: absolute; - top: 50%; - left: 50%; - margin-top: -50px; - margin-left: -50px; - height: 100px; - width: 100px; - background: #e0474c; - color: #FFFFFF; - border-radius: 50%; - border: 0px; - padding: 0; - text-align: center; -} -button.play-video:hover { - background: #cc4146; - cursor: pointer; -} -button.play-video::after { - position: absolute; - top: 50%; - margin: -20px 0 0 -15px; - height: 0; - width: 0; - border-style: solid; - border-width: 20px 0 20px 40px; - border-color: transparent transparent transparent rgba(255, 255, 255, 0.75); - content: ' '; -} -article .gitlink{ - float: right; -} -.herocontainer{ - position: relative; - margin: -30px -90px 0px; - height: 300px; - overflow: hidden; -} -.heroimage{ - width: 100%; -} -.herocontainer .breadcrumb{ - position: absolute; - top: 30px; - left: 10%; - width: 80%; -} -.notice1 { - margin: 1em 0; - padding: 10px 1em; - background-color: #fdf0f0; - border-left: 10px solid #d00; -} -.notice2 { - margin: 1em 0; - padding: 10px 1em; - background-color: #fffbf0; - border-left: 10px solid #fb0; -} -.notice3, -.notice4, -.notice5, -.notice6 { - margin: 1em 0; - padding: 10px 1em; - background-color: #f0f8fe; - border-left: 10px solid #08e; -} - - -/************************ -* PAGING / BREADCRUMB * -************************/ -article .paging, article .breadcrumb{ - position: relative; - width: 100%; - padding: 5px 0; - font-size: 0.8em; - border-radius: 3px; - margin: 0 0 10px 0; - box-sizing: border-box; -} -article .breadcrumb{ - display: inline-block; - min-height: 40px; -} -article .paging a{ - display: inline-block; - border-radius: 3px; - padding: 5px 10px; - text-decoration: none; - width: 100%; - margin: 5px 0; - box-sizing: border-box; -} -article .breadcrumb a{ - text-decoration: none; - padding: 5px; -} -article .paging{ - margin: 50px 0 30px; -} -article .paging .next{ - text-align: right; -} -article .breadcrumb span{ - position: absolute; - top: 5px; -} -article .breadcrumb span a{ - display: inline-block; - padding: 0px; - border-radius: 50%; - width: 25px; - height: 25px; - text-align: center; -} -article .breadcrumb span.prev{ - left: 5px; -} -article .breadcrumb span.next{ - right: 5px; -} -article .breadcrumb ul{ - display: none; - list-style: none; - padding: 0; - margin: 0; -} -article .breadcrumb ul li{ - display: inline-block; - padding:0; - margin:0; -} -article .breadcrumb ul li:before{ - content: '>'; -} -article .breadcrumb ul li:first-child:before{ - content: ''; - padding:0; -} -article .breadcrumb button{ - display: block; - margin: auto; - border-radius: 3px; - padding: 5px; -} -/************************ -* FOOTER * -************************/ - -footer{ - font-size: 0.7em; - padding: 5px 30px; - box-sizing: border-box; -} -footer a{ - text-decoration: none; -} -footer p{ - line-height: 1.5em; -} - -/************************ -* CONTENT ELEMENTS * -************************/ - -code{ - display: inline-block; - padding: 0 0.5em; - font-size: 0.8em; - line-height: 1.4em; - border-radius: 3px; - word-break: break-all; -} -pre{ - white-space: pre; - padding: 10px; - display: block; - max-width: 100%; - overflow-x: auto; -} -.math{ - white-space: pre; -} -table{ - width: 100%; - border-collapse: collapse; -} -thead{ - border-bottom: 1px solid #e0474c; - border-top: 1px solid #e0474c; - background: #f9f8f6; - font-weight: 700; -} -tbody{} -tr{} -tr:nth-child(odd){ } -tr:nth-child(even){ background-color:#f9f8f6; } -td{ padding: 5px;} -th{ padding: 10px 0;} - - -dl{ - border-top: 1px solid #e0474c; - border-bottom: 1px solid #e0474c; - padding: 0.5em 0; - box-sizing: border-box; -} -dt,dd{ - width: 100%; - margin: 0; - padding: 3px 5px; - box-sizing: border-box; - display: inline-block; - vertical-align: top; -} -dt{ - font-weight: 700; -} -dt::after{ - content: ":"; -} -dd{ - width: 80% -} -ul,ol{ - padding-left: 0px; - margin-left: 18px; -} -ul.post{ - list-style: none; - padding: 0 0 0 0; - margin: 0 0 0 0; -} -blockquote{ - border-left: 4px solid #e0474c; - background: #f9f8f6; -} -blockquote{ - position: relative; - font-style: italic; - font-family: serif; - border-left: 4px solid #e0474c; - background: #f9f8f6; - margin: 0; - padding: 5px; -} -blockquote:before { - position: absolute; - left: 0px; - top: 20px; - color: #ccc; - content: open-quote; - font-size: 4em; -} -blockquote p{ - margin-left: 50px; -} -img{} -sup{} -cite{} -abbr{} -hr{} - -img.logo{ - width: 100%; -} -img.coverlogo{ - margin-top: 4em; -} -/**************************** -* download-commponent * -****************************/ - -a.tm-download -{ - line-height: 35px; - margin-left: 40px; -} -a.tm-download::before{ - content: '\2193'; - position: absolute; - margin-left: -40px; - width: 30px; - height: 30px; - line-height: 30px; - font-family: Calibri, "Segoe UI", Roboto, Courier, Helvetica, -apple-system, BlinkMacSystemFont, sans-serif, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 1.3em; - font-weight: 900; - border: 2px solid #e0474c; - border-radius: 50%; - text-align: center; - text-decoration: none; -} -a.tm-download:hover::before{ - text-decoration: none; - color: #fff; - background: #e0474c; -} -a.tm-heading-anchor { - display: none; - position: absolute; - top: 0; - left: -1em; - width: 1em; - opacity: 0; -} -a.tm-heading-anchor:hover,a.tm-heading-anchor:focus { - opacity: 1; - text-decoration: none; -} -h2:focus > .tm-heading-anchor, -h2:hover > .tm-heading-anchor, -h3:focus > .tm-heading-anchor, -h3:hover > .tm-heading-anchor, -h4:focus > .tm-heading-anchor, -h4:hover > .tm-heading-anchor, -h5:focus > .tm-heading-anchor, -h5:hover > .tm-heading-anchor, -h6:focus > .tm-heading-anchor, -h6:hover > .tm-heading-anchor{ - opacity: .75; -} - - -/************************ -* TABLE OF CONTENTS * -************************/ - -ul.TOC,.TOC ul{ - list-style: none; - padding-left: 0px; - margin-left: 0px; -} -.TOC li:before{ - content: "\2192"; - margin-left: -7px; - margin-right: 7px; -} -.TOC li.h1:before{ - content: ""; -} -ul.TOC{ - background: #f9f8f6; - width: 100%; - padding: 20px; - box-sizing:border-box; -} -li.h1{ - font-weight: 700; -} -li.h2, li.h3, li.h4, li.h5, li.h6 -{ - font-weight: 400; - padding-left: 25px; -} - -.control-set{ - margin: 10px 0; -} - -/************************ -* GitHub Ribbon * -************************/ - -.github a{ - color:#e0474c; - background:#f9f8f6; - text-decoration:none; - font-family: calibri,"Helvetica Neue",arial,sans-serif; - text-align:center; - font-weight:300; - padding:5px 30px; - font-size:1rem; - line-height:1.5rem; - position:relative; -} -.github a:hover{ - text-decoration: underline; -} - -/************************ -* Share Buttons * -************************/ - -.meta-info{ - position: relative; - display: inline-block; - width: 100%; -} -.meta-info .share-icons{ - position: absolute; - right: 0px; - display: inline-block; - background: #fff; -} -.meta-info .share-link, .meta-info .share-button{ - display: inline-block; - text-align: right; -} -.meta-info .hide .share-link{ - width: 0px; - opacity: 1; -} -.meta-info .hide .share-link a{ - color: #fff; -} -.meta-info .show .share-link{ - width: 30px; - opacity: 1; -} -.share-link{ - transition: width 0.25s ease out; -} -.share-icons .share-button{ - cursor: pointer; -} - -/* for test only */ - -img.imgClass{ - width: auto; - max-width: 100px; - display: block; -} -img.myClass{ - border: 4px solid #e0474c; -} - -/************************ -* RESPONSIVE * -************************/ -@media only screen and (min-width: 360px) { - .cover h1{ - font-size: 3em; - } - h1{ - margin: 1.6em 0 0.6em; - } - h2{ - margin: 1.4em 0 0.6em; - } -} -@media only screen and (min-width: 600px) { - .cover h1{ - font-size: 4em; - } - a.tm-heading-anchor{ - display: block; - } - .github{ - position:absolute; - display:block; - top:0; - right:0; - width:150px; - overflow:hidden; - height:150px; - z-index:9999; - } - .github a{ - background:#444; - color:#f9f8f6; - font-weight: 700; - width:150px; - position:absolute; - top:45px; - right:-45px; - transform:rotate(45deg); - -webkit-transform:rotate(45deg); - -ms-transform:rotate(45deg); - -moz-transform:rotate(45deg); - -o-transform:rotate(45deg); - box-shadow:1px 1px 2px rgba(0,0,0,0.8); - } - .github a:hover{ - text-decoration: none; - background:#e0474c; - color:#f9f8f6; - } - .github a::before,.github a::after{ - content:""; - width:100%; - display:block; - position:absolute; - top:1px; - left:0; - height:1px; - background:#f9f8f6; - } - .github a::after{ - bottom:1px; - top:auto; - } - .cover .lead a, a.readMore{ - min-width: 150px; - } - .cover .toc-nav{ - margin-top: 150px; - } - .toc-nav li.level-2{ - width: 47.5%; - } - article .paging a{ - width: auto; - } - article .paging .next{ - float: right; - } - ul,ol{ - list-style-position: outside; - padding-left: 40px; - } - dd{ - width: 80%; - } - dt{ - width: 19%; - text-align: right; - } - .meta-info .show .share-link{ - width: 40px; - } -} -@media only screen and (min-width: 980px) { - header p{ - margin: 20px 0; - } - .close{ - display: block; - max-height: none; - overflow: visible; - } - .chapterNumber{ - margin: 20px auto 0; - } - body{ - font-size: 18px; - } - header, aside{ - width: 20%; - margin-right: 5%; - float:left; - } - header{ - text-align: left; - } - aside, aside#tmnavigation{ - position: relative; - top: 0; - left: 0; - right: 0; - border-left: 0; - border-right: 0; - border-bottom: 0; - } - article,footer{ - width: 75%; - float: right; - } - footer{ - padding: 5px 90px; - } - article{ - padding: 30px 90px; - } - article .breadcrumb ul{ - display: inline-block; - } - article .breadcrumb span.prev{ - left: -40px; - } - article .breadcrumb span.next{ - right: -40px; - } - article .breadcrumb button{ - display: none; - } - .cover.startpage .breadcrumb{ - display:none; - } -} \ No newline at end of file diff --git a/themes/typemill/index.twig b/themes/typemill/index.twig deleted file mode 100644 index af16fef..0000000 --- a/themes/typemill/index.twig +++ /dev/null @@ -1,33 +0,0 @@ -{% extends '/partials/layout.twig' %} - -{% block title %}{{ metatabs.meta.title | default(title) }} | {{ settings.title }}{% endblock %} - -{% block content %} - - {% if metatabs.meta.heroimage %} - -
    - - {{ metatabs.meta.heroimagealt }} - - {% include '/partials/breadcrumb.twig' %} - -
    - - {% else %} - - {% include '/partials/breadcrumb.twig' %} - - {% endif %} - - {% if item.elementType == 'file' %} - - {% include 'page.twig' %} - - {% else %} - - {% include 'chapter.twig' %} - - {% endif %} - -{% endblock %} \ No newline at end of file diff --git a/themes/typemill/js/script.js b/themes/typemill/js/script.js deleted file mode 100644 index 69a62f2..0000000 --- a/themes/typemill/js/script.js +++ /dev/null @@ -1,55 +0,0 @@ -var menu = document.getElementById("tmmenu"), - navi = document.getElementById("tmnavigation"); - -if(menu) -{ - menu.addEventListener("click", function() - { - if(navi.className == "close") - { - navi.className = "open"; - menu.className = "active"; - } - else - { - navi.className = "close"; - menu.className = ""; - } - }); -} - -var shareButton = document.getElementById("share-button"); -var shareIcons = document.getElementById("share-icons"); - -if(shareButton) -{ - shareButton.addEventListener("click", function() - { - if(shareIcons.className == "share-icons show") - { - shareIcons.className = "share-icons hide"; - } - else - { - shareIcons.className = "share-icons show"; - } - }); -} - -var shareButtonBottom = document.getElementById("share-button-bottom"); -var shareIconsBottom = document.getElementById("share-icons-bottom"); - -if(shareButtonBottom) -{ - shareButtonBottom.addEventListener("click", function() - { - if(shareIconsBottom.className == "share-icons show") - { - shareIconsBottom.className = "share-icons hide"; - } - else - { - shareIconsBottom.className = "share-icons show"; - } - }); -} diff --git a/themes/typemill/languages/admin/de.yaml b/themes/typemill/languages/admin/de.yaml deleted file mode 100644 index 30099ba..0000000 --- a/themes/typemill/languages/admin/de.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# English -ACTIVATE_SPECIAL_STARTPAGE_DESIGN: Spezielles Start-Design aktivieren -ADD_LABEL_FOR_START_BUTTON: Label für Start-Button -ADD_NAME_FOR_CHAPTER: Name für Kapitel -AUTHOR_INTRO: Präfix für Autorenname -CHAPTER: Kapitel -COUNT_CHAPTERS_IN_NAVIGATION?: Kapitel in Navigation nummerieren? -DIFFERENT_DESIGN_FOR_STARTPAGE: Alternatives Design für Startseite -FACEBOOK: Facebook -GITHUB: GitHub -LABEL_FOR_CHAPTER: Label für Kapitel -LABEL_FOR_START_BUTTON: Label für Start-Button -LAST_MODIFIED_FORMAT: Format für zuletzt geändert -LAST_MODIFIED: Zuletzt geändert -LAST_MODIFIED_TEXT: Text für zuletzt geändert -LAST_UPDATED: Zuletzt geändert -LINKEDIN: Linkedin -LINK_TO_GIT_REPOSITORY: Link zum Git-Repository -LOGO_ON_STARTPAGE: Logo auf Startseite anzeigen? -MAIL: E-Mail -PLEASE_ADD_THE_BASE_URL_TO_THE_TEXT_REPOSITORY_E_G__ON_GITHUB_: Bitte füge die Basis-URL zum Git-Repository ein, zum Beispiel von github. -POSITION_OF_AUTHOR: Position des Autorennamens -POSITION_OF_GIT_EDIT_LINK: Position des Git Editier-Links -POSITION_OF_MODIFIED_TEXT: Position des Texts für zuletzt geändert -POSITION_OF_SHARE_BUTTONS: Position der Share-Buttons -SELECT_SHARE_BUTTONS: Wähle Share-Buttons aus -SHARE: Teilen -SHOW_CHAPTER_NUMBERS: Kapitel nummerieren -SHOW_LOGO_INSTEAD_OF_TITLE_ON_STARTPAGE: Logo anstelle des Titels anzeigen. -THE_STANDARD_THEME_FOR_TYPEMILL__RESPONSIVE__MINIMAL_AND_WITHOUT_ANY_DEPENDENCIES__IT_USES_THE_SYSTEM_FONTS_CALIBRI_AND_HELVETICA__NO_JAVASCRIPT_IS_USED_: 'Das Standard-Theme für Typemill. Minimal, responsiv und ohne Abhängigkeiten. kein JavaScript erforderlich. Gut für Dokumentationen und text-fokussierte Webseiten.' -TWITTER: Twitter -WHATSAPP: WhatsApp -XING: Xing diff --git a/themes/typemill/languages/admin/en.yaml b/themes/typemill/languages/admin/en.yaml deleted file mode 100644 index 49a4d62..0000000 --- a/themes/typemill/languages/admin/en.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# English -ACTIVATE_SPECIAL_STARTPAGE_DESIGN: Activate Special Startpage-Design -ADD_LABEL_FOR_START_BUTTON: Add Label for Start-Button -ADD_NAME_FOR_CHAPTER: Add Name for Chapter -AUTHOR_INTRO: Author Intro -CHAPTER: Chapter -COUNT_CHAPTERS_IN_NAVIGATION?: Count chapters in navigation? -DIFFERENT_DESIGN_FOR_STARTPAGE: Different Design for Startpage -FACEBOOK: Facebook -GITHUB: GitHub -LABEL_FOR_CHAPTER: Label for Chapter -LABEL_FOR_START_BUTTON: Label for Start Button -LAST_MODIFIED_FORMAT: Last Modified Format -LAST_MODIFIED: Last Modified -LAST_MODIFIED_TEXT: Last Modified Text -LAST_UPDATED: Last Updated -LINKEDIN: Linkedin -LINK_TO_GIT_REPOSITORY: Link to git repository -LOGO_ON_STARTPAGE: Logo on startpage -MAIL: Mail -PLEASE_ADD_THE_BASE_URL_TO_THE_TEXT_REPOSITORY_E_G__ON_GITHUB_: Please add the base url to the text repository e.g. on github. -POSITION_OF_AUTHOR: Position of Author -POSITION_OF_GIT_EDIT_LINK: Position of Git Edit Link -POSITION_OF_MODIFIED_TEXT: Position of Modified Text -POSITION_OF_SHARE_BUTTONS: Position of Share-Buttons -SELECT_SHARE_BUTTONS: Select Share Buttons -SHARE: Share -SHOW_CHAPTER_NUMBERS: Show Chapter Numbers -SHOW_LOGO_INSTEAD_OF_TITLE_ON_STARTPAGE: Show logo instead of title on startpage -THE_STANDARD_THEME_FOR_TYPEMILL__RESPONSIVE__MINIMAL_AND_WITHOUT_ANY_DEPENDENCIES__IT_USES_THE_SYSTEM_FONTS_CALIBRI_AND_HELVETICA__NO_JAVASCRIPT_IS_USED_: 'The standard theme for Typemill. Responsive, minimal and without any dependencies. It uses the system fonts Calibri and Helvetica. No JavaScript is used.' -TWITTER: Twitter -WHATSAPP: WhatsApp -XING: Xing diff --git a/themes/typemill/languages/admin/fr.yaml b/themes/typemill/languages/admin/fr.yaml deleted file mode 100644 index f8a4e96..0000000 --- a/themes/typemill/languages/admin/fr.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Français -ACTIVATE_SPECIAL_STARTPAGE_DESIGN: Activer le design spécial pour la page d'accueil -ADD_LABEL_FOR_START_BUTTON: Ajouter une étiquette pour le bouton de démarrage -ADD_NAME_FOR_CHAPTER: Ajouter des noms de chapitre -AUTHOR_INTRO: Étiquette de mention de l'auteur -CHAPTER: Chapitre -COUNT_CHAPTERS_IN_NAVIGATION?: Numéroter les chapitres dans la navigation ? -DIFFERENT_DESIGN_FOR_STARTPAGE: Design différent pour la page d'accueil -FACEBOOK: Facebook -GITHUB: GitHub -LABEL_FOR_CHAPTER: Étiquette de chapitre -LABEL_FOR_START_BUTTON: Étiquette pour le bouton Démarrer -LAST_MODIFIED_FORMAT: Format de la date de modification -LAST_MODIFIED: Dernière modification -LAST_MODIFIED_TEXT: Étiquette pour la date de modification -LAST_UPDATED: Dernière mise à jour -LINKEDIN: Linkedin -LINK_TO_GIT_REPOSITORY: Lien vers le dépôt git -LOGO_ON_STARTPAGE: Logo sur la page d'accueil -MAIL: Courriel -PLEASE_ADD_THE_BASE_URL_TO_THE_TEXT_REPOSITORY_E_G__ON_GITHUB_: Veuillez ajouter l'url de base pour le dépôt git (par ex. Github) -POSITION_OF_AUTHOR: Position de l'auteur -POSITION_OF_GIT_EDIT_LINK: Position du lien d'édition dans github -POSITION_OF_MODIFIED_TEXT: Position de la date de modification -POSITION_OF_SHARE_BUTTONS: Position des boutons de partage -SELECT_SHARE_BUTTONS: Sélection des boutons de partage -SHARE: Partager -SHOW_CHAPTER_NUMBERS: Afficher les numéros de chapitre -SHOW_LOGO_INSTEAD_OF_TITLE_ON_STARTPAGE: Afficher le logo au lieu du titre en page d'accueil -THE_STANDARD_THEME_FOR_TYPEMILL__RESPONSIVE__MINIMAL_AND_WITHOUT_ANY_DEPENDENCIES__IT_USES_THE_SYSTEM_FONTS_CALIBRI_AND_HELVETICA__NO_JAVASCRIPT_IS_USED_: 'Le thème standard pour Typemill. Responsive, minimal et sans aucune dépendances. Il emploie les polices système Calibri et Helvetica. Pas de Javascript utilisé.' -TWITTER: Twitter -WHATSAPP: WhatsApp -XING: Xing diff --git a/themes/typemill/languages/admin/it.yaml b/themes/typemill/languages/admin/it.yaml deleted file mode 100644 index a7de154..0000000 --- a/themes/typemill/languages/admin/it.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Italiano -ACTIVATE_SPECIAL_STARTPAGE_DESIGN: Attiva il disegno speciale della pagina iniziale -ADD_LABEL_FOR_START_BUTTON: Aggiungi etichetta per pulsante di avvio -ADD_NAME_FOR_CHAPTER: Aggiungi nome per capitolo -AUTHOR_INTRO: Introduzione dell'autore -CHAPTER: Capitolo -COUNT_CHAPTERS_IN_NAVIGATION?: Contare i capitoli nella navigazione? -DIFFERENT_DESIGN_FOR_STARTPAGE: Disegno diverso per la pagina iniziale -FACEBOOK: Facebook -GITHUB: GitHub -LABEL_FOR_CHAPTER: Etichetta per capitolo -LABEL_FOR_START_BUTTON: Etichetta per il pulsante Comincia -LAST_MODIFIED_FORMAT: Ultimo formato modificato -LAST_MODIFIED_TEXT: Ultimo testo modificato -LAST_MODIFIED: Ultima modifica -LAST_UPDATED: Ultimo aggiornamento -LINKEDIN: Linkedin -LINK_TO_GIT_REPOSITORY: Collegamento al deposito git -LOGO_ON_STARTPAGE: Logo sulla pagina iniziale -MAIL: Mail -PLEASE_ADD_THE_BASE_URL_TO_THE_TEXT_REPOSITORY_E_G__ON_GITHUB_: Aggiungi l'URL di base al deposito di testo, ad es. su github. -POSITION_OF_AUTHOR: Posizione dell'autore -POSITION_OF_GIT_EDIT_LINK: Posizione del collegamento modifica Git -POSITION_OF_MODIFIED_TEXT: Posizione del testo modificato -POSITION_OF_SHARE_BUTTONS: Posizione dei pulsanti di condivisione -SELECT_SHARE_BUTTONS: Seleziona i pulsanti pulsanti di condivisione -SHARE: Condividere -SHOW_CHAPTER_NUMBERS: Mostra i numeri dei capitoli -SHOW_LOGO_INSTEAD_OF_TITLE_ON_STARTPAGE: Mostra logo invece del titolo sulla pagina iniziale -THE_STANDARD_THEME_FOR_TYPEMILL__RESPONSIVE__MINIMAL_AND_WITHOUT_ANY_DEPENDENCIES__IT_USES_THE_SYSTEM_FONTS_CALIBRI_AND_HELVETICA__NO_JAVASCRIPT_IS_USED_: 'Il tema standard per Typemill. Reattivo, minimo e senza dipendenze. Utilizza i caratteri di sistema Calibri ed Helvetica. Non viene utilizzato JavaScript.' -TWITTER: Twitter -WHATSAPP: WhatsApp -XING: Xing diff --git a/themes/typemill/languages/admin/nl.yaml b/themes/typemill/languages/admin/nl.yaml deleted file mode 100644 index 5f74914..0000000 --- a/themes/typemill/languages/admin/nl.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# Dutch -ACTIVATE_SPECIAL_STARTPAGE_DESIGN: Activeer speciaal startpagina-ontwerp -AUTHOR_INTRO: Auteur Intro -COUNT_CHAPTERS_IN_NAVIGATION?: Hoofdstukken tellen in navigatie? -DIFFERENT_DESIGN_FOR_STARTPAGE: ander ontwerp voor startpagina -FACEBOOK: Facebook -GITHUB: GitHub -LABEL_FOR_CHAPTER: Label voor hoofdstuk -LABEL_FOR_START_BUTTON: label voor startknop -LAST_MODIFIED_FORMAT: Laatst gewijzigd formaat -LAST_MODIFIED: Laatst gewijzigd -LAST_MODIFIED_TEXT: Laatst gewijzigde tekst -LINKEDIN: Linkedin -LINK_TO_GIT_REPOSITORY: Link naar git repository -MAIL: Mail -POSITION_OF_AUTHOR: Positie van auteur -POSITION_OF_GIT_EDIT_LINK: Positie van Git Link bewerken -POSITION_OF_MODIFIED_TEXT: Positie van gemodificeerde tekst -POSITION_OF_SHARE_BUTTONS: Positie van Share-knoppen -SELECT_SHARE_BUTTONS: Selecteer Share-knoppen -SHARE: deel -SHOW_CHAPTER_NUMBERS: hoofdstuknummers tonen -TWITTER: Twitter -WHATSAPP: Whatsapp -XING: Xing diff --git a/themes/typemill/languages/admin/ru.yaml b/themes/typemill/languages/admin/ru.yaml deleted file mode 100644 index 0377081..0000000 --- a/themes/typemill/languages/admin/ru.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# Russian -#Translation: Paul (https://paul.bid) paulbid@protonmail.com -ACTIVATE_SPECIAL_STARTPAGE_DESIGN: Активировать особый дизайн для Главной страницы -AUTHOR_INTRO: Напись перед указанием автора -COUNT_CHAPTERS_IN_NAVIGATION?: Нумеровать разделы в панели навигации? -DIFFERENT_DESIGN_FOR_STARTPAGE: Особый дизайн для Главной страницы -FACEBOOK: Facebook -GITHUB: GitHub -LABEL_FOR_CHAPTER: Надпись обозначающая раздел -LABEL_FOR_START_BUTTON: Надпись на кнопке «Начать» -LAST_MODIFIED_FORMAT: Формат даты последнего изменения -LAST_MODIFIED: Последние изменения -LAST_MODIFIED_TEXT: Текст перед указанием даты последнего изменения -LINKEDIN: LinkedIn -LINK_TO_GIT_REPOSITORY: Ссылка на git репозиторий -LOGO_ON_STARTPAGE: Логотип на Стартовой странице -MAIL: Почта -POSITION_OF_AUTHOR: Место для отображения авторства -POSITION_OF_GIT_EDIT_LINK: Позиция Git-ссылки на редактирование -POSITION_OF_MODIFIED_TEXT: Позиция надписи о последнем изменении -POSITION_OF_SHARE_BUTTONS: Позиция кнопок «поделиться» -SELECT_SHARE_BUTTONS: Выберите кнопки нужные «поделиться» -SHARE: Поделиться -SHOW_CHAPTER_NUMBERS: Отображать нумерацию разделов -SHOW_LOGO_INSTEAD_OF_TITLE_ON_STARTPAGE: Показывать логотип вместо названия на Стартовой странице -TWITTER: Twitter -WHATSAPP: WhatsApp -XING: Xing diff --git a/themes/typemill/languages/user/en.yaml b/themes/typemill/languages/user/en.yaml deleted file mode 100644 index 33806a3..0000000 --- a/themes/typemill/languages/user/en.yaml +++ /dev/null @@ -1 +0,0 @@ -# English diff --git a/themes/typemill/languages/user/it.yaml b/themes/typemill/languages/user/it.yaml deleted file mode 100644 index 5cef266..0000000 --- a/themes/typemill/languages/user/it.yaml +++ /dev/null @@ -1 +0,0 @@ -# Italiano diff --git a/themes/typemill/page.twig b/themes/typemill/page.twig deleted file mode 100644 index ea9cb64..0000000 --- a/themes/typemill/page.twig +++ /dev/null @@ -1,70 +0,0 @@ -{% set published = metatabs.meta.manualdate ? metatabs.meta.manualdate : metatabs.meta.modified %} - - {% if content is empty %} - -

    {{ item.name }}

    - - {% endif %} - -

    {{ title }}

    - - {% if (settings.themes.typemill.socialPosition.top or settings.themes.typemill.modifiedPosition.top or settings.themes.typemill.authorPosition.top or settings.themes.typemill.gitPosition.top) %} -
    - {% if settings.themes.typemill.authorPosition.top %} - {{ settings.themes.typemill.authorIntro }}: {{ metatabs.meta.author|default(settings.author) }} - {% endif %} - {% if settings.themes.typemill.modifiedPosition.top %} - {{ settings.themes.typemill.modifiedText }}: {{ published|date(settings.themes.typemill.modifiedFormat) }} - {% endif %} - {% if settings.themes.typemill.socialPosition.top %} - - {% endif %} - {% if settings.themes.typemill.gitPosition.top %} - - {% endif %} -
    - {% endif %} - - {{ content }} - - - {% if (settings.themes.typemill.socialPosition.bottom or settings.themes.typemill.modifiedPosition.bottom or settings.themes.typemill.authorPosition.bottom or settings.themes.typemill.gitPosition.bottom) %} -
    - {% if settings.themes.typemill.authorPosition.bottom %} - {{ settings.themes.typemill.authorIntro }}: {{ metatabs.meta.author|default(settings.author) }} - {% endif %} - {% if settings.themes.typemill.modifiedPosition.bottom %} - {{ settings.themes.typemill.modifiedText }}: {{ published|date(settings.themes.typemill.modifiedFormat) }} - {% endif %} - {% if settings.themes.typemill.socialPosition.bottom %} - - {% endif %} - {% if settings.themes.typemill.gitPosition.bottom %} - - {% endif %} -
    - {% endif %} - - - {% if item.prevItem or item.nextItem %} - -
    - {% if item.prevItem %} - {{ item.prevItem.name }} - {% endif %} - {% if item.nextItem %} - {{ item.nextItem.name }} - {% endif %} -
    - - {% endif %} diff --git a/themes/typemill/partials/breadcrumb.twig b/themes/typemill/partials/breadcrumb.twig deleted file mode 100644 index 31a7eb6..0000000 --- a/themes/typemill/partials/breadcrumb.twig +++ /dev/null @@ -1,15 +0,0 @@ - - diff --git a/themes/typemill/partials/footer.twig b/themes/typemill/partials/footer.twig deleted file mode 100644 index 58c3d42..0000000 --- a/themes/typemill/partials/footer.twig +++ /dev/null @@ -1,8 +0,0 @@ -{% set nowYear = "now"|date("Y") %} -{% if settings.year is empty or settings.year == nowYear %} - {% set copyrightYears = nowYear %} -{% else %} - {% set copyrightYears = settings.year ~ ' - ' ~ nowYear %} -{% endif %} - -

    {{ settings.copyright }} by {{ settings.author }}, {{ copyrightYears }}. All Rights Reserved. Built with TYPEMILL.

    \ No newline at end of file diff --git a/themes/typemill/partials/layout.twig b/themes/typemill/partials/layout.twig deleted file mode 100644 index 0eb0bdd..0000000 --- a/themes/typemill/partials/layout.twig +++ /dev/null @@ -1,84 +0,0 @@ - - - - - {% block title %}{% endblock %} - - - - - - - - - {% if favicon %} - - - - - - {% endif %} - - - - - - - - - - - - - {% block stylesheets %} - - - - - {{ assets.renderCSS() }} - - {% endblock %} - - -
    -
    -

    - {% if logo %} - - {% else %} - {{ settings.title }} - {% endif %} -

    -
    - -
    - {% block content %}{% endblock %} -
    - - {% if widgets %} - {% for index,widget in widgets %} - - {% endfor %} - {% endif %} - -
    - {% include 'partials/footer.twig' %} -
    -
    - {% block javascripts %} - - - - - - {{ assets.renderJS() }} - - {% endblock %} - - \ No newline at end of file diff --git a/themes/typemill/partials/layoutCover.twig b/themes/typemill/partials/layoutCover.twig deleted file mode 100644 index 258ca7b..0000000 --- a/themes/typemill/partials/layoutCover.twig +++ /dev/null @@ -1,63 +0,0 @@ - - - - - {% block title %}{% endblock %} - - - - - - - - - {% if favicon %} - - - - - - {% endif %} - - - - - - - - - - - - - {% block stylesheets %} - - - - - {{ assets.renderCSS() }} - - {% endblock %} - - -
    - {% block content %}{% endblock %} - -
    - {% include 'partials/footer.twig' %} -
    -
    - - {% block javascripts %} - - - - - {{ assets.renderJS() }} - - {% endblock %} - - - \ No newline at end of file diff --git a/themes/typemill/partials/navigation.twig b/themes/typemill/partials/navigation.twig deleted file mode 100644 index 7d8e0e7..0000000 --- a/themes/typemill/partials/navigation.twig +++ /dev/null @@ -1,34 +0,0 @@ -{% macro loop_over(navigation,chapnum) %} - - {% import _self as macros %} - - {% for element in navigation %} - - {% set depth = element.keyPathArray|length %} - - {% if element.activeParent %} -
  • - {% elseif element.active %} -
  • - {% else %} -
  • - {% endif %} - {% if (element.elementType == 'folder') %} - {% if chapnum %}{{ element.chapter }}. {% endif %}{{ element.name }} - {% if ( element.folderContent|length > 0 ) and (element.contains == 'pages') %} -
      - {{ macros.loop_over(element.folderContent,chapnum) }} -
    - {% endif %} - {% else %} - {% if chapnum %}{{ element.chapter }} {% endif %}{{ element.name }} - {% endif %} -
  • - {% endfor %} -{% endmacro %} - -{% import _self as macros %} - -
      - {{ macros.loop_over(navigation,settings.themes.typemill.chapnum) }} -
    diff --git a/themes/typemill/partials/navigationCover.twig b/themes/typemill/partials/navigationCover.twig deleted file mode 100644 index 9ec4ccf..0000000 --- a/themes/typemill/partials/navigationCover.twig +++ /dev/null @@ -1,29 +0,0 @@ -{% macro loop_over(navigation,chapnum) %} - - {% import _self as macros %} - - {% for element in navigation %} - {% if element.activeParent %} -
  • - {% elseif element.active %} -
  • - {% else %} -
  • - {% endif %} - {% if element.elementType == 'folder' and element.keyPathArray|length == 1 %} - {% if chapnum %}{{ element.chapter }}. {% endif %}{{ element.name }} -
      - {{ macros.loop_over(element.folderContent,chapnum) }} -
    - {% else %} - {% if chapnum %}{{ element.chapter }} {% endif %}{{ element.name }} - {% endif %} -
  • - {% endfor %} -{% endmacro %} - -{% import _self as macros %} - -
      - {{ macros.loop_over(navigation,settings.themes.typemill.chapnum) }} -
    \ No newline at end of file diff --git a/themes/typemill/partials/share.twig b/themes/typemill/partials/share.twig deleted file mode 100644 index 5785c7f..0000000 --- a/themes/typemill/partials/share.twig +++ /dev/null @@ -1,15 +0,0 @@ -{% if share.twitter %} - {% endif %}{% if share.facebook %}{% endif %}{% if share.xing %}{% endif %}{% if share.linkedin %}{% endif %}{% if share.whatsapp %}{% endif %}{% if share.mail %} -{% endif %} \ No newline at end of file diff --git a/themes/typemill/typemill-thumb.png b/themes/typemill/typemill-thumb.png deleted file mode 100644 index 38c48c3..0000000 Binary files a/themes/typemill/typemill-thumb.png and /dev/null differ diff --git a/themes/typemill/typemill.png b/themes/typemill/typemill.png deleted file mode 100644 index 38c48c3..0000000 Binary files a/themes/typemill/typemill.png and /dev/null differ diff --git a/themes/typemill/typemill.yaml b/themes/typemill/typemill.yaml deleted file mode 100644 index 87d4e4b..0000000 --- a/themes/typemill/typemill.yaml +++ /dev/null @@ -1,128 +0,0 @@ -name: Typemill Theme -version: 1.2.5 -description: The standard theme for Typemill. Responsive, minimal and without any dependencies. It uses the system fonts Calibri and Helvetica. No JavaScript is used. -author: Sebastian Schürmanns -homepage: https://typemill.net -licence: MIT -paypal: https://paypal.me/typemill -amount: 10 - -settings: - chapter: Chapter - start: Start - cover: true - modified: true - modifiedText: 'Last updated' - modifiedFormat: 'd.m.Y' - authorIntro: 'Author' - images: - live: - width: 820 - -forms: - fields: - - cover: - type: checkbox - label: Different Design for Startpage - checkboxlabel: Activate Special Startpage-Design - - coverlogo: - type: checkbox - label: Logo on startpage - checkboxlabel: Show logo instead of title on startpage - - start: - type: text - label: Label for Start Button - placeholder: Add Label for Start-Button - required: true - - chapter: - type: text - label: Label for Chapter - placeholder: Add Name for Chapter - - chapnum: - type: checkbox - label: Show Chapter Numbers - checkboxlabel: Count chapters in navigation? - - fieldset0: - type: fieldset - legend: Author - fields: - authorPosition: - type: checkboxlist - label: Position of Author - options: - top: Top - bottom: Bottom - - authorIntro: - type: text - label: Author Intro - placeholder: Author - - fieldset1: - type: fieldset - legend: Last Modified - fields: - modifiedPosition: - type: checkboxlist - label: Position of Modified Text - options: - top: Top - bottom: Bottom - - modifiedText: - type: text - label: Last Modified Text - placeholder: Last Updated - - modifiedFormat: - type: select - label: Last Modified Format - placeholder: 'Add name of theme' - options: - 'm/d/Y': 01/20/2020 - 'd.m.Y': 20.01.2020 - - fieldset2: - type: fieldset - legend: Share - fields: - socialPosition: - type: checkboxlist - label: Position of Share-Buttons - options: - top: Top - bottom: Bottom - - socialButtons: - type: checkboxlist - label: Select Share Buttons - options: - facebook: Facebook - twitter: Twitter - xing: Xing - linkedin: Linkedin - whatsapp: WhatsApp - mail: Mail - - fieldset3: - type: fieldset - legend: GitHub - fields: - gitPosition: - type: checkboxlist - label: Position of Git Edit Link - options: - top: Top - bottom: Bottom - - gitlink: - type: text - label: Link to git repository - placeholder: https://github.com/typemill/documentation - help: Please add the base url to the text repository e.g. on github. \ No newline at end of file