fix html errors
This commit is contained in:
@@ -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){
|
||||
|
@@ -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 {
|
||||
|
@@ -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{
|
||||
|
Reference in New Issue
Block a user