Some style fixes

This commit is contained in:
2019-07-07 22:34:20 +02:00
parent 6f0cbee326
commit e45cb6e45b
5 changed files with 83 additions and 46 deletions

View File

@@ -189,6 +189,10 @@ var DetailsWindow = {
this.detailsButton.classList.add("button_highlight")
this.visible = true;
// This is a workaround for a chrome bug which makes it so hidden
// windows can't be scrolled after they are shown
this.popupDiv.focus();
if (this.graph === 0) {
this.renderGraph();
}
@@ -301,6 +305,9 @@ var DetailsWindow = {
scaleLabel: {
display: true,
labelString: "Downloads"
},
gridLines: {
color: "rgba(100, 255, 100, .1)"
}
}, {
type: "linear",
@@ -312,7 +319,14 @@ var DetailsWindow = {
labelString: "Views"
},
gridLines: {
color: "rgba(0, 0, 0, 0)"
color: "rgba(128, 128, 255, .2)"
}
}
],
xAxes: [
{
gridLines: {
display: false
}
}
]

View File

@@ -194,8 +194,10 @@ body{
.popup {
position: fixed;
visibility: hidden;
display: flex;
flex-direction: column;
opacity: 0;
transition: visibility 1s, opacity 1s;
transition: visibility .5s, opacity .5s;
background-color: var(--body_color);
border-color: var(--accent_color_dark_border);
max-height: 100%;
@@ -207,13 +209,18 @@ body{
box-sizing: border-box;
text-align: left;
box-shadow: var(--shadow_color) 0px 0px 50px;
overflow: hidden;
}
.popup .highlight_light {
.popup > .highlight_light {
font-size: 1.2em;
}
.popup > .content_area {
flex: 1;
overflow-y: scroll;
padding: 10px;
}
.details_popup{
overflow-y: scroll;
width: 1500px;
height: 800px;
z-index: 100;