-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
153 lines (137 loc) · 2.85 KB
/
Copy pathstyles.css
File metadata and controls
153 lines (137 loc) · 2.85 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/* Reset some defaults */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", Arial, sans-serif;
background: #151521;
color: #f3f4f6;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px 20px;
min-height: 100vh;
}
/* Title */
h1 {
font-size: 2rem;
font-weight: 600;
color: #ffffff;
margin-bottom: 20px;
text-align: center;
}
/* Container for search form and history button */
#searchContainer {
display: flex;
justify-content: center;
gap: 10px;
width: 100%;
max-width: 700px;
margin-bottom: 24px;
}
/* Form itself: input + search button */
#searchForm {
display: flex;
gap: 10px;
flex: 1;
}
.input-wrapper {
position: relative;
flex: 1;
}
#searchInput:-webkit-autofill,
#searchInput:-webkit-autofill:hover,
#searchInput:-webkit-autofill:focus {
-webkit-text-fill-color: #f9fafb;
border: 1px solid #d811b3;
box-shadow: 0 0 6px #d811b3;
transition: background-color 9999s ease-in-out 0s;
}
/* Input - Simplified focus handling */
#searchInput {
width: 100%;
padding: 12px 40px 12px 14px;
font-size: 1rem;
border: 1px solid #374151;
border-radius: 10px;
background: #2a2a3b;
color: #f9fafb;
outline: none !important; /* Force remove all outlines */
transition: border 0.2s ease, box-shadow 0.2s ease;
}
/* Only show custom focus when actively typing */
#searchInput:focus {
border: 1px solid #d811b3;
box-shadow: 0 0 6px #d811b3;
outline: none !important;
}
.clear-btn {
display: none;
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
font-size: 1.2rem;
color: #f87171;
cursor: pointer;
}
.clear-btn:hover {
color: #ffffff;
}
/* Buttons - Simplified focus handling */
#searchForm button,
#historyButton {
padding: 12px 18px;
font-size: 1rem;
background: #d811b3;
color: #ffffff;
border: 1px solid #374151;
border-radius: 10px;
cursor: pointer;
transition: background 0.2s ease;
outline: none !important; /* Force remove all outlines */
}
/* Hover effect for buttons */
#searchForm button:hover,
#historyButton:hover {
background: #3f0639;
}
/* Custom focus for buttons only when tabbing */
#searchForm button:focus,
#historyButton:focus {
background: #3f0639;
outline: none !important;
}
/* Results card */
#results {
background: #2a2a3b;
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
max-width: 700px;
width: 100%;
line-height: 1.6;
color: #e5e7eb;
}
.error {
color: #f87171;
font-weight: 500;
}
/* History modal */
.history {
display: none;
color: #f9fafb;
background: #2a2a3b;
border: 1px solid #374151;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
max-width: 700px;
width: 100%;
padding: 20px;
margin-top: 10px;
margin-bottom: 10px;
flex-direction: column;
gap: 8px;
}