fix: small styling fixes and prism.js fixes

This commit is contained in:
Shannon Sterz 2017-08-17 14:37:22 +02:00
parent d874542ce0
commit 442df35368
2 changed files with 27 additions and 21 deletions

View file

@ -50,6 +50,7 @@ html {
background-color: #fff;
font-family: "Fira Sans", sans-serif;
font-size: 1.1em;
line-height: 1.3;
color: #222;
-moz-hyphens: auto;
-webkit-hyphens: auto;
@ -119,7 +120,7 @@ blockquote:last-child {
pre {
margin: 0 -2.6% 2rem;
max-width: 105.2%;
padding: 5%;
padding: 2.5%;
background-color: #f5f5f5;
}
@ -166,6 +167,7 @@ code {
h1 {
font-family: "Montserrat", serif;
font-size: 2em;
font-weight: 400;
border: none !important;
margin-bottom: .5rem;
}
@ -173,18 +175,21 @@ h1 {
h2 {
font-family: "Montserrat", serif;
font-size: 1.6em;
font-weight: 400;
margin-bottom: .5rem;
}
h3 {
font-family: "Montserrat", serif;
font-size: 1.3em;
font-weight: 400;
margin-bottom: .5rem;
}
h4 {
font-family: "Montserrat", serif;
font-size: 1.2em;
font-weight: 400;
color: #888;
margin-bottom: .5rem;
}
@ -194,6 +199,7 @@ h5 {
font-style: italic;
color: #888;
font-size: 1.2em;
font-weight: 400;
margin-bottom: .5rem;
}

View file

@ -13,7 +13,7 @@
</footer>
<?php echo js('assets/js/prism.js')?>
<script type="text/javascript">
Prism.plugins.autoloader.languages_path='assets/js/components/';
Prism.plugins.autoloader.languages_path='<?php echo kirby()->urls()->index() ?>/assets/js/components/';
</script>
</body>
</html>