forked from saionjisekai/css-scrollbar-like-win11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (43 loc) · 1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>css-scrollbar-like-win11</title>
<style>
.demo-panel {
width: 300px;
height: 300px;
display: flex;
flex-direction: column;
border: 1px solid #ccc;
}
.demo-header {
border-bottom: 1px solid #ccc;
padding: 10px;
}
.demo-contents {
flex: 1;
overflow: auto;
padding: 10px;
}
.dark {
/*color-scheme: dark;*/
}
</style>
<link rel="stylesheet" href="./scrollbar.scss">
</head>
<body>
<div style="display: flex; column-gap: 10px;">
<div class="demo-panel">
<div class="demo-header">css scrollbar</div>
<div class="demo-contents"></div>
</div>
<div class="demo-panel">
<div class="demo-header">native scrollbar</div>
<div class="demo-contents native-scroll"></div>
</div>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>