Repository navigation
Expand file tree
/
Copy pathfloating-menu.css
More file actions
125 lines (111 loc) · 2.83 KB
/
Copy pathfloating-menu.css
File metadata and controls
125 lines (111 loc) · 2.83 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/* Floating Menu - Modern Design */
#floating-menu {
position: absolute;
display: none;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(108, 99, 255, 0.3);
border-radius: 24px;
padding: 10px 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 99, 255, 0.1);
z-index: 1000;
transition: opacity 0.2s ease, transform 0.2s ease;
opacity: 0;
transform: translateY(10px);
}
#floating-menu.show {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
left: 50%;
transform: translateX(-50%) translateY(0);
opacity: 1;
animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateX(-50%) translateY(10px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
/* Button Styles */
#floating-menu button {
margin: 0;
padding: 10px 18px;
background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
color: #ffffff;
border: none;
border-radius: 18px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
white-space: nowrap;
position: relative;
overflow: hidden;
}
#floating-menu button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
opacity: 0;
transition: opacity 0.2s ease;
}
#floating-menu button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(108, 99, 255, 0.5);
}
#floating-menu button:hover::before {
opacity: 1;
}
#floating-menu button:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(108, 99, 255, 0.4);
}
/* Special styling for Clear All button */
#floating-menu button:last-child {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
#floating-menu button:last-child:hover {
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}
/* Special styling for placeholder buttons */
#floating-menu button:nth-child(2),
#floating-menu button:nth-child(3) {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
min-width: 45px;
padding: 10px 14px;
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
#floating-menu button:nth-child(2):hover,
#floating-menu button:nth-child(3):hover {
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}
/* Responsive adjustments */
@media (max-width: 768px) {
#floating-menu {
padding: 8px 12px;
border-radius: 20px;
}
#floating-menu button {
padding: 8px 14px;
font-size: 0.85rem;
}
#floating-menu button:nth-child(2),
#floating-menu button:nth-child(3) {
min-width: 40px;
padding: 8px 12px;
}
}