fix: small styling fixes and prism.js fixes

This commit is contained in:
Stefan 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; background-color: #fff;
font-family: "Fira Sans", sans-serif; font-family: "Fira Sans", sans-serif;
font-size: 1.1em; font-size: 1.1em;
line-height: 1.3;
color: #222; color: #222;
-moz-hyphens: auto; -moz-hyphens: auto;
-webkit-hyphens: auto; -webkit-hyphens: auto;
@ -119,7 +120,7 @@ blockquote:last-child {
pre { pre {
margin: 0 -2.6% 2rem; margin: 0 -2.6% 2rem;
max-width: 105.2%; max-width: 105.2%;
padding: 5%; padding: 2.5%;
background-color: #f5f5f5; background-color: #f5f5f5;
} }
@ -164,37 +165,42 @@ code {
/* Headlines */ /* Headlines */
h1 { h1 {
font-family: "Montserrat", serif; font-family: "Montserrat", serif;
font-size: 2em; font-size: 2em;
border: none !important; font-weight: 400;
margin-bottom: .5rem; border: none !important;
margin-bottom: .5rem;
} }
h2 { h2 {
font-family: "Montserrat", serif; font-family: "Montserrat", serif;
font-size: 1.6em; font-size: 1.6em;
margin-bottom: .5rem; font-weight: 400;
margin-bottom: .5rem;
} }
h3 { h3 {
font-family: "Montserrat", serif; font-family: "Montserrat", serif;
font-size: 1.3em; font-size: 1.3em;
margin-bottom: .5rem; font-weight: 400;
margin-bottom: .5rem;
} }
h4 { h4 {
font-family: "Montserrat", serif; font-family: "Montserrat", serif;
font-size: 1.2em; font-size: 1.2em;
color: #888; font-weight: 400;
margin-bottom: .5rem; color: #888;
margin-bottom: .5rem;
} }
h5 { h5 {
font-family: "Montserrat", serif; font-family: "Montserrat", serif;
font-style: italic; font-style: italic;
color: #888; color: #888;
font-size: 1.2em; font-size: 1.2em;
margin-bottom: .5rem; font-weight: 400;
margin-bottom: .5rem;
} }
/* Header */ /* Header */

View File

@ -13,7 +13,7 @@
</footer> </footer>
<?php echo js('assets/js/prism.js')?> <?php echo js('assets/js/prism.js')?>
<script type="text/javascript"> <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> </script>
</body> </body>
</html> </html>