Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
61 lines (57 loc) · 1.6 KB
/
Copy pathstyle.css
File metadata and controls
61 lines (57 loc) · 1.6 KB
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
/* Toggle Button - Fixed at Top Left */
.toggle-btn {
position: absolute;
top: 20px;
left: 20px;
width: 36px;
height: 36px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
color: white;
cursor: pointer;
z-index: 100; /* Ensure it's above everything */
font-size: 1.2rem;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.toggle-btn:hover {
background: rgba(255, 255, 255, 0.4);
transform: scale(1.1);
}
/* Container - Shifted down to accommodate the button */
.controls-container {
position: absolute;
top: 70px; /* Moved down */
left: 20px;
width: 300px;
max-height: calc(100vh - 90px);
background: rgba(20, 20, 30, 0.7);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border-radius: 15px;
padding: 20px;
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
user-select: none;
z-index: 10;
overflow: hidden;
display: flex;
flex-direction: column;
}
.controls-container.collapsed {
transform: translateX(-350px); /* Move completely off screen */
opacity: 0;
pointer-events: none; /* Prevent clicking when hidden */
}
/* Make sure the button stays visible when panel is collapsed */
.toggle-btn.collapsed {
background: rgba(20, 20, 30, 0.6);
}