Skip to content

Commit

Permalink
scrollbar aesthetics
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Jun 26, 2019
1 parent 4a9eb7c commit 40bb12e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 99_start.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let canvas_bottom = canvas.getBoundingClientRect().bottom;
infobox.style.height = (canvas_bottom - infobox_top).toString() + "px";

function set_movelist_height() {
let desired_height = window.innerHeight - movelist.getBoundingClientRect().top - 10;
let desired_height = window.innerHeight - movelist.getBoundingClientRect().top - 16;
if (desired_height < 60) {
desired_height = 60;
}
Expand Down
10 changes: 10 additions & 0 deletions nibbler.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ body {
padding: 0;
}

::-webkit-scrollbar {
background-color: #080808;
}

::-webkit-scrollbar-thumb {
background-color: #444444;
}

.margin1em {
margin: 1em;
}
Expand Down Expand Up @@ -98,6 +106,7 @@ input[type=text]:focus{
font-family: monospace, monospace;
overflow-x: hidden;
overflow-y: auto;
padding-right: 10px; /* so the text doesn't get so near the scroll bar */
user-select: none;
white-space: pre-wrap;
}
Expand All @@ -107,6 +116,7 @@ input[type=text]:focus{
margin-top: 1em;
overflow-x: hidden;
overflow-y: auto;
padding-right: 10px; /* so the text doesn't get so near the scroll bar */
user-select: none;
white-space: pre-wrap;
}
Expand Down

0 comments on commit 40bb12e

Please sign in to comment.