-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpopup.css
More file actions
250 lines (216 loc) · 4.94 KB
/
popup.css
File metadata and controls
250 lines (216 loc) · 4.94 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
body {
margin: 0;
font-family: sans-serif;
width: 320px; /* Increased width for references */
max-height: 500px; /* Limit popup height */
overflow-y: auto; /* Allow scrolling if content exceeds height */
background: #f9f9f9;
}
.container {
position: relative;
padding-top: 8px;
}
.container {
padding: 16px;
}
h1 {
font-size: 20px; /* Slightly bigger */
margin: 0 0 8px 0; /* No top margin, small bottom */
color: #36406B;
text-align: left;
}
p {
font-size: 14px;
margin-bottom: 12px;
}
.radio {
display: flex;
align-items: center;
margin-bottom: 8px;
font-size: 14px;
}
.radio input {
margin-right: 8px;
}
button {
width: 100%;
padding: 8px;
font-size: 14px;
background: #36406B;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 8px; /* Add some margin between elements */
}
button:hover {
background: #2a324f;
}
/* Style for the secondary report button */
button.secondary {
background-color: #6c757d; /* Grey background */
}
button.secondary:hover {
background-color: #5a6268; /* Darker grey on hover */
}
#status {
margin-top: 8px;
font-size: 12px;
color: #226622;
min-height: 1em; /* Prevent layout shift when empty */
}
/* Style for the separator */
.separator {
border: none;
border-top: 1px solid #ccc;
margin: 16px 0; /* Increased margin */
}
/* --- Reference List Styles --- */
h2 {
font-size: 16px;
margin-bottom: 8px;
color: #36406B;
}
#referencesListContainer {
max-height: 200px; /* Limit height of the list container */
overflow-y: auto; /* Allow scrolling within the list */
border: 1px solid #ddd;
background-color: #fff;
padding: 4px 0; /* Padding top/bottom */
border-radius: 4px;
margin-bottom: 12px; /* Space below the list */
}
#referencesList {
list-style: none; /* Remove default bullets */
padding: 0 12px; /* Padding left/right inside the list */
margin: 0;
}
#referencesList li {
font-size: 12px;
padding: 6px 0;
border-bottom: 1px solid #eee;
line-height: 1.4;
cursor: pointer; /* Make it look clickable */
transition: background-color 0.15s ease-in-out; /* Smooth hover effect */
}
#referencesList li:hover {
background-color: #f0f0f0; /* Slight background change on hover */
}
#referencesList li:last-child {
border-bottom: none; /* Remove border from last item */
}
#referencesList li .ref-number {
font-weight: bold;
color: #555;
margin-right: 4px;
}
#referencesList li .ref-text {
color: #333;
}
/* Remove or comment out .ref-link styles as it's no longer used */
/*
#referencesList li .ref-link {
font-size: 11px;
color: #007bff;
text-decoration: none;
margin-left: 4px;
}
#referencesList li .ref-link:hover {
text-decoration: underline;
}
*/
/* Style for placeholder/error messages */
#referencesList li.placeholder,
#referencesList li.error {
font-style: italic;
color: #777;
text-align: center;
padding: 10px;
border-bottom: none;
}
#referencesList li.error {
color: #dc3545; /* Red for errors */
}
/* --- End Reference List Styles --- */
/* Settings Icon */
#settingsIcon {
position: absolute;
top: 10px;
right: 10px;
background: transparent;
border: none;
padding: 2px;
cursor: pointer;
z-index: 10;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
}
#settingsIcon svg {
display: block;
}
/* Settings Panel */
.settings-panel {
display: none;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
padding: 14px 12px 8px 12px;
margin-bottom: 14px;
margin-top: 2px;
box-shadow: 0 2px 10px rgba(54,64,107,0.07);
position: relative;
}
.settings-panel.open {
display: block;
}
.settings-title {
font-size: 14px;
font-weight: 500;
margin-bottom: 10px;
color: #36406B;
margin-top: 10px; /* Add some space above new section title */
}
/* Styles for new settings in popup */
.setting-item {
display: flex;
align-items: center;
margin-bottom: 10px; /* Increased margin */
font-size: 14px;
}
.setting-item .color-label { /* Class for the "Highlight Color:" text */
margin-right: 8px;
flex-shrink: 0; /* Prevent shrinking if space is tight */
}
.checkbox-label { /* For aligning checkbox and its text */
display: flex;
align-items: center;
cursor: pointer;
flex-grow: 1; /* Allow text to take available space */
}
.checkbox-label input[type="checkbox"] {
margin-right: 8px; /* Increased margin */
flex-shrink: 0;
}
.checkbox-label span {
line-height: 1.3; /* Improve readability */
}
.color-picker-input {
border: 1px solid #ccc;
border-radius: 4px;
padding: 0; /* Remove padding if it affects appearance */
height: 28px;
width: 45px; /* Adjust as needed */
cursor: pointer;
background-color: #fff; /* Ensure background for color swatch */
margin-left: auto; /* Push color picker to the right if in flex container */
}
/* Warning text style */
.setting-warning {
color: red;
font-size: 0.85em;
margin-left: 8px;
}
/* End Styles for new settings */