pretty.html: add aez, line numbers, default font
Should look a lot cleaner now. Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
parent
ef96dcff33
commit
153aaf2215
|
@ -6,6 +6,8 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tonsky/FiraCode@4/distr/fira_code.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
/* Use Ayu-Colors by default */
|
/* Use Ayu-Colors by default */
|
||||||
|
@ -13,14 +15,51 @@
|
||||||
|
|
||||||
/* fill entire page */
|
/* fill entire page */
|
||||||
code {
|
code {
|
||||||
background: #fff;
|
padding: 0px;
|
||||||
position: fixed;
|
background: transparent !important;
|
||||||
width: 100%;
|
font-family: 'Fira Code', monospace;
|
||||||
bottom: 0;
|
|
||||||
right: 0;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
/* Change background color to that of your theme's */
|
||||||
|
background: #191f26;
|
||||||
|
padding: 20px 50px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* for block of numbers */
|
||||||
|
.hljs-ln-numbers {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
|
text-align: centre;
|
||||||
|
/* Change color to that of your theme's comment color */
|
||||||
|
color: #5c6773;
|
||||||
|
border-right: 20px solid transparent;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* for block of code */
|
||||||
|
.hljs-ln-code {
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remove scrollbar */
|
||||||
|
html {
|
||||||
|
overflow: scroll;
|
||||||
|
overflow-x: hidden;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 0px;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Bring your own theme -->
|
<!-- Bring your own theme -->
|
||||||
|
@ -35,8 +74,10 @@
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/highlight.min.js"
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/highlight.min.js"
|
||||||
integrity="sha512-DrpaExP2d7RJqNhXB41Q/zzzQrtb6J0zfnXD5XeVEWE8d9Hj54irCLj6dRS3eNepPja7DvKcV+9PnHC7A/g83A=="
|
integrity="sha512-DrpaExP2d7RJqNhXB41Q/zzzQrtb6J0zfnXD5XeVEWE8d9Hj54irCLj6dRS3eNepPja7DvKcV+9PnHC7A/g83A=="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
hljs.initHighlightingOnLoad();
|
hljs.initHighlightingOnLoad();
|
||||||
|
hljs.initLineNumbersOnLoad();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user