-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.html
98 lines (89 loc) · 2.6 KB
/
sidebar.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sidebar</title>
<style>
/* Styles for the sidebar */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
overflow: hidden; /* To keep the sidebar outside of the visible area */
width: 100%;
}
.sidebar {
position: fixed;
top: 0;
right: 0;
height: 100%;
width: 100%;
overflow-x: hidden;
transition: 0.5s;
padding-top: 20px;
z-index: 9999; /* Ensure the sidebar is displayed above all other content */
font-size: 18px;
}
.sidebar-content {
color: black;
overflow-x: scroll;
line-height: 1.2; /* Adjust this value to increase or decrease the space between lines */
padding-left: 20px;
padding-right: 10px;
padding-bottom: 70px;
}
#close {
overflow: hidden;
position: fixed;
top: 20px; /* Adjust as needed */
right: 20px; /* Adjust as needed */
border: none;
padding: 0;
width: 2em;
height: 2em;
border-radius: 50%;
background: transparent;
color: #1da1f2;
font: inherit;
text-indent: 100%;
cursor: pointer;
}
#close:focus {
outline: solid 0 transparent;
box-shadow: 0 0 0 2px #8ed0f9;
}
#close:hover {
background: rgb(255, 0, 0);
color: #ffffff;
}
#close:before, #close:after {
position: absolute;
top: 15%;
left: calc(50% - .0625em);
width: .125em;
height: 70%;
border-radius: .125em;
transform: rotate(45deg);
background: currentcolor;
content: '';
}
#close:after {
transform: rotate(-45deg);
}
</style>
</head>
<body>
<div class="sidebar">
<!-- Close button -->
<button class="close-btn" id='close'>×</button>
<h2 style="text-align: center">Test Cases List</h2>
<div id="sidebar-content" class="sidebar-content">
<!-- Content rendered based on the 'xpath' parameter -->
</div>
</div>
<script src="sidebar.js"></script>
<script src="sidebar_close.js"></script>
<script src="indexed_db_library.js"></script>
</body>
</html>