diff options
author | Romeo Disca <romeo.disca@gmail.com> | 2019-05-20 20:54:38 +0200 |
---|---|---|
committer | Romeo Disca <romeo.disca@gmail.com> | 2019-05-20 20:54:38 +0200 |
commit | fea7367ccd55ed1af5f06001ae28b5fb2cfe5351 (patch) | |
tree | f8504fc60dc8f625347c1f089a865db7b4cf7c33 | |
parent | 709559bfe6bb9de935774360d8c55417225291a3 (diff) |
add knowledge base css
5 files changed, 13 insertions, 6 deletions
diff --git a/themes/rusticus/data/config/head.yml b/themes/rusticus/data/config/head.yml index df688e4..3284f90 100644 --- a/themes/rusticus/data/config/head.yml +++ b/themes/rusticus/data/config/head.yml @@ -1,5 +1,5 @@ -css: styles.e7261ebb638932b7a389.css
+css: styles.9830eec8c21d5ccd6f97.css
javascript: main.5d45697faa28ef608a86.js
diff --git a/themes/rusticus/layouts/partials/home/knowledge-base-section.html b/themes/rusticus/layouts/partials/home/knowledge-base-section.html new file mode 100644 index 0000000..1b6844a --- /dev/null +++ b/themes/rusticus/layouts/partials/home/knowledge-base-section.html @@ -0,0 +1,9 @@ +<div class="thumbnails">
+{{ range (.Site.GetPage "section" "knowledge-base").Pages }}
+<div class="thumbnail">
+ <a href="{{ .Permalink}}">
+ {{ .LinkTitle }}
+ </a>
+</div>
+{{ end }}
+</div>
diff --git a/themes/rusticus/layouts/partials/main.html b/themes/rusticus/layouts/partials/main.html index faf8be7..162d27d 100644 --- a/themes/rusticus/layouts/partials/main.html +++ b/themes/rusticus/layouts/partials/main.html @@ -16,8 +16,6 @@ </section>
<section class="knowledge-base">
<h1>knowledge base</h1>
- <div class="thumbnail">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti veniam possimus nemo repellat, ex neque et nesciunt vero labore id quam quas repellendus odio error reiciendis officiis? Dolore, deserunt temporibus.</div>
- <div class="thumbnail">Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum esse aliquam magnam inventore maiores quasi dolore perspiciatis et, laudantium sint labore nostrum quod dolorem blanditiis fugit at amet! Commodi, fuga!</div>
- <div class="thumbnail">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nobis quo explicabo repellendus voluptatibus quidem excepturi odio eum quod ullam atque tenetur velit a cumque in aspernatur corporis, aperiam quibusdam architecto.</div>
+ {{ partial "home/knowledge-base-section.html" . }}
</section>
</main>
diff --git a/themes/rusticus/static/assets/css/styles.9830eec8c21d5ccd6f97.css b/themes/rusticus/static/assets/css/styles.9830eec8c21d5ccd6f97.css new file mode 100644 index 0000000..e157853 --- /dev/null +++ b/themes/rusticus/static/assets/css/styles.9830eec8c21d5ccd6f97.css @@ -0,0 +1,2 @@ +abbr[title]{-webkit-text-decoration:underline dotted}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}*{box-sizing:border-box;position:relative}body{color:#333;font-family:Roboto,sans-serif}p{line-height:1.6}a{text-decoration:none;color:#4b45a1}a:active{color:#f74d00}.container{max-width:80rem;margin:0 auto}body>header{margin-bottom:4rem;text-align:right}body>header ul{margin:4rem 3rem 0}body>header ul li{display:inline;margin-left:2rem}body>header ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}body>header ul li a:hover{background:#4b45a1;color:#fff}main>header{text-align:right;width:100%;border-radius:3em;height:400px;background-color:#4b45a1;background-image:url(rust-community-animated-logo.302544f5b17fd3b9e23e.gif);background-repeat:no-repeat;background-position:0 100%;background-size:cover}main>header>div{height:100%;width:100%}main>header>div>h1{color:#fff;text-shadow:.2rem .2rem .3rem #333;width:20rem;vertical-align:bottom;right:2rem;bottom:1.5rem;position:absolute;letter-spacing:.5rem;font-size:2.6rem;font-family:Raleway,sans-serif}main>header>div>h1 .rust-cog{width:150px;height:150px;display:inline-block;background-image:url(rust-cog.97024771a5c53b73c62f.png);background-repeat:no-repeat;background-position:50%;background-size:cover;right:-15px}main>section>h1{border-bottom:1px solid #333;margin-top:5rem}footer{margin:5rem 1.25em;border-top:1px solid #333;border-color:#cccae8;padding:2rem 0 0;text-align:center;width:100%}footer ul li{display:inline;margin:0 1rem}footer ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}footer ul li a:hover{background:#4b45a1;color:#fff}.container>main.list li.list-entry,.container>main.list ul.pagination li,.front-page-summary li,.knowledge-base .thumbnails .thumbnail a{margin:0 0 .6rem;display:block;border:1px solid #cccae8;border-radius:.3rem}.container>main.list li.list-entry:hover,.container>main.list ul.pagination li:hover,.front-page-summary li:hover,.knowledge-base .thumbnails .thumbnail a:hover{background-color:#eeeef8}.container>main.list li.list-entry a,.container>main.list ul.pagination li a,.front-page-summary li a,.knowledge-base .thumbnails .thumbnail a a{display:block;padding:0 1rem;text-decoration:none}.container>main.list li.list-entry a:active,.container>main.list ul.pagination li a:active,.front-page-summary li a:active,.knowledge-base .thumbnails .thumbnail a a:active{color:#f74d00}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container{margin-left:2.5em;margin-right:2.5em}}@media only screen and (min-width:40rem){.container{margin-left:2.5em;margin-right:2.5em}}@media only screen and (min-width:60rem){.container{margin:0 auto}}.container>main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container>main{width:100%;margin:0}}@media only screen and (min-width:60rem){.container>main{width:70%;margin:0 1.25em}}.container>main.home-page>header,.container>main.home-page>section.knowledge-base{width:100%}@media only screen and (max-width:40rem){.container>main.home-page>section.blog,.container>main.home-page>section.news{width:100%}}@media only screen and (min-width:40rem){.container>main.home-page>section.blog,.container>main.home-page>section.news{width:45%}}.container>main.list,.container>main.single{display:block;width:100%}@media only screen and (min-width:60rem){.container>main.list,.container>main.single{width:70%}}.container>main.list>h1,.container>main.single>h1{color:#fff;background-color:#4b45a1;padding:1rem 2rem;border-radius:4px}.container>main.list p.summary,.container>main.single p.summary{font-size:1.3rem}.container>main.list ul{padding:0;text-align:center}.container>main.list ul.pagination li{display:inline-block;padding:.3rem;border-width:0}.container>main.list ul.pagination li a:hover{background-color:#eeeef8}.container>main.list li.list-entry{padding:0;border-width:0 0 1px;border-radius:0;border-color:#eeeef8}.container>main.list li.list-entry:first-child{border-top-width:1px}.container>main.list li.list-entry a{display:block;text-align:left;padding:1em 2em 1.2rem}.container>main.list li.list-entry a:hover{background-color:#eeeef8}.container>main.list li.list-entry a .date{margin-right:.5rem}.container>main.list li.list-entry a .title{font-size:2rem}.container>main.list li.list-entry a .summary{display:block;font-size:1.3rem;margin-top:.8rem}.container>aside{display:-webkit-box;display:-ms-flexbox;display:flex}@media only screen and (max-width:40rem){.container>aside{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%;margin:0}}@media only screen and (min-width:40rem){.container>aside{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:5rem 0 0}}@media only screen and (min-width:60rem){.container>aside{width:20%;margin:0 1.25em;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media only screen and (max-width:40rem){.container>aside>*{width:100%;margin:2.5rem 0 0}}@media only screen and (min-width:40rem){.container>aside>*{width:30%;margin:0}}@media only screen and (min-width:60rem){.container>aside>*{width:100%}}.front-page-summary{padding:0}.knowledge-base .thumbnails{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.knowledge-base .thumbnails .thumbnail{width:22.7%;margin-left:3%;margin-bottom:1rem}.knowledge-base .thumbnails .thumbnail:first-child,.knowledge-base .thumbnails .thumbnail:nth-child(5),.knowledge-base .thumbnails .thumbnail:nth-child(9),.knowledge-base .thumbnails .thumbnail:nth-child(13),.knowledge-base .thumbnails .thumbnail:nth-child(17),.knowledge-base .thumbnails .thumbnail:nth-child(21),.knowledge-base .thumbnails .thumbnail:nth-child(25),.knowledge-base .thumbnails .thumbnail:nth-child(29),.knowledge-base .thumbnails .thumbnail:nth-child(33),.knowledge-base .thumbnails .thumbnail:nth-child(37){margin-left:0}@media only screen and (max-width:60rem){.knowledge-base .thumbnails .thumbnail{width:31%;margin-left:3%}.knowledge-base .thumbnails .thumbnail:first-child,.knowledge-base .thumbnails .thumbnail:nth-child(5),.knowledge-base .thumbnails .thumbnail:nth-child(9),.knowledge-base .thumbnails .thumbnail:nth-child(13),.knowledge-base .thumbnails .thumbnail:nth-child(17),.knowledge-base .thumbnails .thumbnail:nth-child(21),.knowledge-base .thumbnails .thumbnail:nth-child(25),.knowledge-base .thumbnails .thumbnail:nth-child(29),.knowledge-base .thumbnails .thumbnail:nth-child(33),.knowledge-base .thumbnails .thumbnail:nth-child(37){margin-left:3%}.knowledge-base .thumbnails .thumbnail:first-child,.knowledge-base .thumbnails .thumbnail:nth-child(4),.knowledge-base .thumbnails .thumbnail:nth-child(7),.knowledge-base .thumbnails .thumbnail:nth-child(10),.knowledge-base .thumbnails .thumbnail:nth-child(13),.knowledge-base .thumbnails .thumbnail:nth-child(16),.knowledge-base .thumbnails .thumbnail:nth-child(19),.knowledge-base .thumbnails .thumbnail:nth-child(22),.knowledge-base .thumbnails .thumbnail:nth-child(25),.knowledge-base .thumbnails .thumbnail:nth-child(28){margin-left:0}}@media only screen and (max-width:40rem){.knowledge-base .thumbnails .thumbnail{width:100%;margin-left:0}.knowledge-base .thumbnails .thumbnail:first-child,.knowledge-base .thumbnails .thumbnail:nth-child(5),.knowledge-base .thumbnails .thumbnail:nth-child(9),.knowledge-base .thumbnails .thumbnail:nth-child(13),.knowledge-base .thumbnails .thumbnail:nth-child(17),.knowledge-base .thumbnails .thumbnail:nth-child(21),.knowledge-base .thumbnails .thumbnail:nth-child(25),.knowledge-base .thumbnails .thumbnail:nth-child(29),.knowledge-base .thumbnails .thumbnail:nth-child(33),.knowledge-base .thumbnails .thumbnail:nth-child(37){margin-left:0}}.knowledge-base .thumbnails .thumbnail a{padding:1rem 0;text-align:center;display:block;height:4rem;vertical-align:middle} +/*# sourceMappingURL=styles.9830eec8c21d5ccd6f97.css.map */
\ No newline at end of file diff --git a/themes/rusticus/static/assets/css/styles.e7261ebb638932b7a389.css b/themes/rusticus/static/assets/css/styles.e7261ebb638932b7a389.css deleted file mode 100644 index bdee017..0000000 --- a/themes/rusticus/static/assets/css/styles.e7261ebb638932b7a389.css +++ /dev/null @@ -1,2 +0,0 @@ -abbr[title]{-webkit-text-decoration:underline dotted}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}*{box-sizing:border-box;position:relative}body{color:#333;font-family:Roboto,sans-serif}a{text-decoration:none;color:#4b45a1}a:active{color:#f74d00}.container{max-width:80rem;margin:0 auto}body>header{margin-bottom:4rem;text-align:right}body>header ul{margin:4rem 3rem 0}body>header ul li{display:inline;margin-left:2rem}body>header ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}body>header ul li a:hover{background:#4b45a1;color:#fff}main>header{text-align:right;width:100%;border-radius:3em;height:400px;background-color:#4b45a1;background-image:url(rust-community-animated-logo.302544f5b17fd3b9e23e.gif);background-repeat:no-repeat;background-position:0 100%;background-size:cover}main>header>div{height:100%;width:100%}main>header>div>h1{color:#fff;text-shadow:.2rem .2rem .3rem #333;width:20rem;vertical-align:bottom;right:2rem;bottom:1.5rem;position:absolute;letter-spacing:.5rem;font-size:2.6rem;font-family:Raleway,sans-serif}main>header>div>h1 .rust-cog{width:150px;height:150px;display:inline-block;background-image:url(rust-cog.97024771a5c53b73c62f.png);background-repeat:no-repeat;background-position:50%;background-size:cover;right:-15px}main>section>h1{border-bottom:1px solid #333;margin-top:5rem}footer{margin:5rem 1.25em;border-top:1px solid #333;border-color:#cccae8;padding:2rem 0 0;text-align:center;width:100%}footer ul li{display:inline;margin:0 1rem}footer ul li a{text-decoration:none;display:inline-block;padding:.3rem .6rem;border-bottom:.2rem solid #4b45a1}footer ul li a:hover{background:#4b45a1;color:#fff}.container>main.list li.list-entry,.container>main.list ul.pagination li,.front-page-summary li{margin:0 0 .6rem;display:block;border:1px solid #cccae8;border-radius:.3rem}.container>main.list li.list-entry:hover,.container>main.list ul.pagination li:hover,.front-page-summary li:hover{background-color:#eeeef8}.container>main.list li.list-entry a,.container>main.list ul.pagination li a,.front-page-summary li a{display:block;padding:0 1rem;text-decoration:none}.container>main.list li.list-entry a:active,.container>main.list ul.pagination li a:active,.front-page-summary li a:active{color:#f74d00}.container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container{margin-left:2.5em;margin-right:2.5em}}@media only screen and (min-width:40rem){.container{margin-left:2.5em;margin-right:2.5em}}@media only screen and (min-width:60rem){.container{margin:0 auto}}.container>main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}@media only screen and (max-width:40rem){.container>main{width:100%;margin:0}}@media only screen and (min-width:60rem){.container>main{width:70%;margin:0 1.25em}}.container>main.home-page>header,.container>main.home-page>section.knowledge-base{width:100%}@media only screen and (max-width:40rem){.container>main.home-page>section.blog,.container>main.home-page>section.news{width:100%}}@media only screen and (min-width:60rem){.container>main.home-page>section.blog,.container>main.home-page>section.news{width:45%}}.container>main.list,.container>main.single{display:block;width:100%}@media only screen and (min-width:60rem){.container>main.list,.container>main.single{width:70%}}.container>main.list>h1,.container>main.single>h1{color:#fff;background-color:#4b45a1;padding:1rem 2rem;border-radius:4px}.container>main.list p.summary,.container>main.single p.summary{font-size:1.3rem}.container>main.list ul{padding:0;text-align:center}.container>main.list ul.pagination li{display:inline-block;padding:.3rem;border-width:0}.container>main.list ul.pagination li a:hover{background-color:#eeeef8}.container>main.list li.list-entry{padding:0;border-width:0 0 1px;border-radius:0;border-color:#eeeef8}.container>main.list li.list-entry:first-child{border-top-width:1px}.container>main.list li.list-entry a{display:block;text-align:left;padding:1em 2em 1.2rem}.container>main.list li.list-entry a:hover{background-color:#eeeef8}.container>main.list li.list-entry a .date{margin-right:.5rem}.container>main.list li.list-entry a .title{font-size:2rem}.container>main.list li.list-entry a .summary{display:block;font-size:1.3rem;margin-top:.8rem}.container>aside{display:-webkit-box;display:-ms-flexbox;display:flex}@media only screen and (max-width:40rem){.container>aside{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%;margin:0}}@media only screen and (min-width:40rem){.container>aside{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:5rem 0 0}}@media only screen and (min-width:60rem){.container>aside{width:20%;margin:0 1.25em;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media only screen and (max-width:40rem){.container>aside>*{width:100%;margin:2.5rem 0 0}}@media only screen and (min-width:40rem){.container>aside>*{width:30%;margin:0}}@media only screen and (min-width:60rem){.container>aside>*{width:100%}}.front-page-summary{padding:0} -/*# sourceMappingURL=styles.e7261ebb638932b7a389.css.map */
\ No newline at end of file |