diff --git a/res/include/script/Viewer.js b/res/include/script/Viewer.js index 27bf36d..9f6c718 100644 --- a/res/include/script/Viewer.js +++ b/res/include/script/Viewer.js @@ -47,10 +47,10 @@ var Viewer = { document.getElementById("file_viewer_headerbar_title").style.lineHeight = "1em"; document.getElementById("file_viewer_list_title").innerText = this.title; document.getElementById("file_viewer_file_title").innerText = file.name; - document.title = this.title + " ~ " + file.name + " ~ PixelDrain"; + document.title = this.title + " ~ " + file.name + " ~ pixeldrain"; } else { document.getElementById("file_viewer_file_title").innerText = file.name; - document.title = file.name + " ~ PixelDrain"; + document.title = file.name + " ~ pixeldrain"; } $.get("/u/" + file.id + "/preview", function(response){ diff --git a/res/include/style/layout.css b/res/include/style/layout.css index dc5b696..bd9198e 100644 --- a/res/include/style/layout.css +++ b/res/include/style/layout.css @@ -8,26 +8,11 @@ } /* Fonts */ - -@font-face { - font-family: 'default'; - font-display: fallback; - font-style: normal; - font-weight: normal; - text-rendering: optimizeLegibility; - src: - local('Cantarell'), - local('Cantarell Regular'), - local('Cantarell, Regular'), - local('Cantarell-Regular'), - url("/res/misc/Cantarell-Regular.otf") format("opentype"); -} @font-face { font-family: 'light'; font-display: fallback; font-style: normal; font-weight: normal; - text-rendering: optimizeLegibility; src: local('Cantarell Light'), local('Cantarell, Light'), @@ -43,7 +28,7 @@ body{ background-color: #0d0d0d; /* Fallback */ background-color: var(--body_color); background-repeat: repeat; - font-family: "default"; + font-family: sans-serif; margin: 0; line-height: 1.5em; color: #bfbfbf; /* Fallback */ @@ -136,7 +121,7 @@ body{ padding: 0; box-sizing: border-box; text-align: left; - word-break: break-word; + word-break: break-all; clear: both; } .page_body > h1 { @@ -245,9 +230,9 @@ h1, h2, h3, h4, h5, h6 { h1{font-size: 2em; font-family: "light"; font-weight: normal;} h2{font-size: 1.75em; font-family: "light"; font-weight: normal;} h3{font-size: 1.5em; font-family: "light"; font-weight: normal;} -h4{font-size: 1.25em; font-family: "default"; font-weight: normal;} -h5{font-size: 1em; font-family: "default"; font-weight: normal;} -h6{font-size: .75em; font-family: "default"; font-weight: normal;} +h4{font-size: 1.25em; font-family: sans-serif; font-weight: normal;} +h5{font-size: 1em; font-family: sans-serif; font-weight: normal;} +h6{font-size: .75em; font-family: sans-serif; font-weight: normal;} h2, h3{border-bottom: 1px var(--layer_3_color_border) solid;} /* Differentiate it a bit, else it just looks like bold text */ p, .indent { diff --git a/res/include/style/viewer.css b/res/include/style/viewer.css index 2fd7b55..ab42407 100644 --- a/res/include/style/viewer.css +++ b/res/include/style/viewer.css @@ -66,7 +66,6 @@ display: none; /* Becomes visible if the page is a list */ width: 100%; background-color: var(--layer_1_color); - /* box-shadow: 0 0 8px var(--shadow_color); */ text-align: center; line-height: 1em; overflow-x: scroll; @@ -182,9 +181,7 @@ } .text-container > pre { white-space: pre-wrap; - word-wrap: break-word; overflow: hidden; - } .pannable{ @@ -196,7 +193,6 @@ cursor: move; top: 50%; transform: translateY(-50%); - -webkit-transform: translateY(-50%); } .center{ @@ -207,7 +203,6 @@ max-height: 100%; top: 50%; transform: translateY(-50%); - -webkit-transform: translateY(-50%); } .drop-shadow{ diff --git a/res/static/misc/clientinfo.html b/res/static/misc/clientinfo.html deleted file mode 100644 index 3386e4d..0000000 --- a/res/static/misc/clientinfo.html +++ /dev/null @@ -1,80 +0,0 @@ -
-
-
-
-
- I created a desktop client for users who want the convenience to
- share (parts of) their desktop with just the press of a key.
- You can
- check out the client in action here. The client will also zip
- files for you automatically when you try to upload multiple files
- at once, just to save you those valueable seconds!
-
- Here are all files you have previously uploaded to PixelDrain using this computer. + Here are all files you have previously uploaded to pixeldrain using this computer. This data is saved locally in your web browser and gets updated every time you upload a file through your current browser.
- By uploading files to Pixeldrain you accept that a cookie will + By uploading files to pixeldrain you accept that a cookie will be placed in your web browser. More information on the about page
@@ -87,19 +87,19 @@
{{template `open_in_new.svg` .}}
Open link