-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.css
110 lines (97 loc) · 2.32 KB
/
content.css
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
:root {
/* Light Mode Colors */
--primary-100: #4285f4;
--primary-200: #002fa7;
--primary-300: #dffffd;
--accent-100: #8a2be2;
--accent-200: #ccccff;
--text-100: #1f305e;
--text-200: #4d598c;
--bg-100: #d7e8f9;
--bg-200: #afdbf5;
--bg-300: #191970;
/* Light Mode Styles */
body.light-mode {
--primary-100: var(--primary-100);
--primary-200: var(--primary-200);
--primary-300: var(--primary-300);
--accent-100: var(--accent-100);
--accent-200: var(--accent-200);
--text-100: var(--text-100);
--text-200: var(--text-200);
--bg-100: var(--bg-100);
--bg-200: var(--bg-200);
--bg-300: var(--bg-300);
background-color: var(--bg-100);
color: var(--text-100);
}
/* Floating Navbar Container */
#searchSwitcherNavbar {
position: fixed;
top: 20px;
right: 20px;
background-color: var(--bg-100); /* Adjust as needed */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
z-index: 1000;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
animation: fadeIn 0.5s ease-out;
transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Navbar Buttons */
#navbarContainer button {
background-color: var(--primary-100); /* Adjust as needed */
color: #fff;
border: none;
padding: 10px 15px;
margin: 5px 0;
cursor: pointer;
border-radius: 5px;
font-family: 'Roboto', sans-serif;
font-size: 14px;
transition: background-color 0.3s, transform 0.3s;
}
/* Hover Effects */
#navbarContainer button:hover {
background-color: var(--primary-200); /* Adjust as needed */
transform: translateY(-2px);
}
/* Button Active Effects */
#navbarContainer button:active {
transform: translateY(2px);
}
/* Tooltip for better UX */
#navbarContainer button[data-tooltip]:hover:after {
content: attr(data-tooltip);
position: absolute;
top: 50%;
left: 100%;
margin-left: 10px;
padding: 5px 10px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
border-radius: 3px;
white-space: nowrap;
transform: translateY(-50%);
animation: tooltipFade 0.3s;
pointer-events: none;
z-index: 1001;
}
@keyframes tooltipFade {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Adding transitions for smooth removal */
#searchSwitcherNavbar.exiting {
opacity: 0;
transform: translate(-20px);
}