Skip to content

Commit e71bbc9

Browse files
committed
Scrollbar
1 parent 9977f69 commit e71bbc9

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
3838
<link rel="stylesheet" id="us-fonts-css" href="https://fonts.googleapis.com/css?family=Montserrat%3A300%2C400%2C500%2C600%2C700&amp;display=swap&amp;ver=6.0.2" media="all">
3939
<link rel="stylesheet" href="./xterm/xterm.css" />
40+
<link rel="stylesheet" href="./scrollbar.css" />
4041
<script>
4142
window.networkInterface = {};
4243
</script>
@@ -156,7 +157,7 @@
156157
<div style="flex-grow:0; flex-shrink: 0; height:1px; width: 100%; background-color: white;">
157158
</div>
158159
<main style="display: flex; flex-direction: row; justify-content: space-between; margin:0; height:100%;">
159-
<div style="flex-grow:1; height:100%;display:inline-block;margin:0;" id="console">
160+
<div style="flex-grow:1; height:100%;display:inline-block;margin:0;" class="scrollbar" id="console">
160161
</div>
161162

162163
</main>

scrollbar.css

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.scrollbar {
2+
scrollbar-color: #777 #0000;
3+
}
4+
5+
.scrollbar *::-webkit-scrollbar {
6+
height: 6px;
7+
width: 6px;
8+
background-color: #0000;
9+
}
10+
11+
/* Add a thumb */
12+
.scrollbar *::-webkit-scrollbar-thumb {
13+
border-radius: 3px;
14+
height: 6px;
15+
width: 6px;
16+
background: #777;
17+
}
18+
19+
.scrollbar *::-webkit-scrollbar-thumb:hover {
20+
background: #555;
21+
}

0 commit comments

Comments
 (0)