Skip to content

Commit 77af1e7

Browse files
committed
add scroll to list of site & change default style for scroll
1 parent eee6ffc commit 77af1e7

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<body>
1414
<hr>
15-
<div id="resultTable"></div>
15+
<div class="list-of-site" id="resultTable"></div>
1616
<hr>
1717
<div class="inline-flex">
1818
<span class="span-total">Total</span>

style/webact.css

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ body {
33
color: #262626;
44
}
55

6+
.list-of-site{
7+
height: 400px;
8+
overflow-y: auto;
9+
}
10+
611
.inline-flex{
712
display: inline-flex;
813
}
@@ -29,13 +34,14 @@ body {
2934
}
3035

3136
.span-percentage{
37+
width: 40px;
3238
color: rgb(78, 78, 78);
3339
font-size: 11px;
3440
}
3541

3642
.span-time{
3743
margin-left: 10px;
38-
width: 70px;
44+
width: 80px;
3945
font-weight: 500;
4046
}
4147

@@ -47,4 +53,24 @@ hr {
4753
border: none;
4854
background-color: rgb(223, 222, 222);
4955
height: 2px;
50-
}
56+
}
57+
58+
::-webkit-scrollbar-track
59+
{
60+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
61+
border-radius: 10px;
62+
background-color: #F5F5F5;
63+
}
64+
65+
::-webkit-scrollbar
66+
{
67+
width: 7px;
68+
background-color: #F5F5F5;
69+
}
70+
71+
::-webkit-scrollbar-thumb
72+
{
73+
border-radius: 10px;
74+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
75+
background-color: #555;
76+
}

0 commit comments

Comments
 (0)