mirror of
https://github.com/perlbot/perlbuut-pastebin
synced 2025-06-07 14:17:26 -04:00
Current state of production pastebin. updated font and a few other things
This commit is contained in:
parent
3a00e9921d
commit
3fbdb36277
9 changed files with 10 additions and 7 deletions
1
extern/ace
vendored
Submodule
1
extern/ace
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a44cfe68431420bd0c5b96afbe10882962e00f82
|
2
extern/ace-builds
vendored
2
extern/ace-builds
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 8dcfcd6d0d6e0167f2282fa51308facc6f4fc46c
|
||||
Subproject commit 784ffa862c5351e0d300370f61471b1eb95ebcf1
|
BIN
pastes.db
BIN
pastes.db
Binary file not shown.
BIN
static/fonts/AnonymousPro-Bold.woff2
Normal file
BIN
static/fonts/AnonymousPro-Bold.woff2
Normal file
Binary file not shown.
BIN
static/fonts/AnonymousPro-BoldItalic.woff2
Normal file
BIN
static/fonts/AnonymousPro-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/AnonymousPro-Italic.woff2
Normal file
BIN
static/fonts/AnonymousPro-Italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/AnonymousPro-Regular.woff2
Normal file
BIN
static/fonts/AnonymousPro-Regular.woff2
Normal file
Binary file not shown.
|
@ -6,6 +6,7 @@
|
|||
width: 100%;
|
||||
height: 500px;
|
||||
display: none;
|
||||
font-variant-ligatures: none;
|
||||
}
|
||||
|
||||
#paste {
|
||||
|
@ -16,8 +17,8 @@
|
|||
width: 100%;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "FiraCode";
|
||||
src: url("/static/fonts/FiraCode-Regular.woff2") format('woff2');
|
||||
font-family: "AnonymousPro";
|
||||
src: url("/static/fonts/AnonymousPro-Regular.woff2") format('woff2');
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
@ -148,7 +149,7 @@
|
|||
//editor.setTheme("ace/theme/twilight");
|
||||
editor.session.setMode("ace/mode/perl");
|
||||
|
||||
editor.setOptions({maxLines: Infinity, fontFamily: ['FiraCode']});
|
||||
editor.setOptions({fontFamily: ['AnonymousPro', 'monospace', 'mono']});
|
||||
/*editor.middleClick = false;
|
||||
editor.on("mousedown", function (e) {
|
||||
if (e.domEvent.which == 2) { // middle click
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
margin: auto;
|
||||
position: relative !important;
|
||||
width: 100%;
|
||||
font-variant-ligatures: none;
|
||||
}
|
||||
|
||||
html, body, #content {
|
||||
|
@ -11,8 +12,8 @@
|
|||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "FiraCode";
|
||||
src: url("/static/fonts/FiraCode-Regular.woff2") format('woff2');
|
||||
font-family: "AnonymousPro";
|
||||
src: url("/static/fonts/AnonymousPro-Regular.woff2") format('woff2');
|
||||
}
|
||||
</style>
|
||||
[% END %]
|
||||
|
@ -65,7 +66,7 @@
|
|||
editor.session.setMode("ace/mode/perl");
|
||||
|
||||
editor.setReadOnly(true);
|
||||
editor.setOptions({maxLines: Infinity, fontFamily: ['FiraCode']});
|
||||
editor.setOptions({maxLines: Infinity, fontFamily: ['AnonymousPro', 'monospace', 'mono']});
|
||||
/*function resizeAce() {
|
||||
var h = window.innerHeight;
|
||||
var ch = h - 400;
|
||||
|
|
Loading…
Add table
Reference in a new issue