Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
209 lines (187 loc) · 4.67 KB
/
Copy pathstyles.css
File metadata and controls
209 lines (187 loc) · 4.67 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
/* Import a friendly, rounded font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
:root {
--bg-off-white: #FDF8F1;
--panel-bg: #F4F1ED;
--accent-orange: #F2994A;
--accent-orange-hover: #E88D3D;
--accent-blue-hover: #E3F2FD;
--text-color: #4A4A4A;
--border-color: #E0DCD6;
--font-family: 'Inter', sans-serif;
}
/* Main Panel Container */
#ai-mindful-panel {
position: fixed;
top: 100px; /* Initial position */
right: 20px; /* Initial position */
width: 320px;
background-color: var(--panel-bg);
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
font-family: var(--font-family);
color: var(--text-color);
z-index: 10000;
overflow: hidden;
transition: all 0.3s ease-in-out;
display: flex; /* Use flexbox for layout */
flex-direction: column;
max-height: 400px; /* Set a max height for the whole panel */
}
/* Disable transitions when dragging for a more responsive feel */
#ai-mindful-panel.dragging {
transition: none;
}
/* Minimized State for the Panel */
#ai-mindful-panel.minimized {
height: 45px; /* Height of the header */
max-height: 45px; /* Ensure max-height is also set */
/* bottom: 20px; We don't control bottom anymore */
}
#ai-mindful-panel.minimized .ai-panel-body {
display: none; /* Hide the body when minimized */
}
/* Panel Header */
.ai-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
border-bottom: 1px solid var(--border-color);
font-weight: 500;
font-size: 14px;
cursor: grab; /* Indicate it can be moved */
flex-shrink: 0; /* Prevent header from shrinking */
user-select: none; /* Prevent text selection on the header */
}
.ai-panel-header .contact-name {
font-weight: 700;
}
.ai-panel-header .ai-panel-controls button {
background: none;
border: none;
cursor: pointer;
font-size: 20px;
color: var(--text-color);
opacity: 0.7;
padding: 5px;
line-height: 1;
}
.ai-panel-header .ai-panel-controls button:hover {
opacity: 1;
}
/* Panel Body */
.ai-panel-body {
padding: 15px;
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto; /* This makes the body scrollable if content overflows */
flex-grow: 1; /* Allow body to grow and fill available space */
}
/* Suggestions Container */
#ai-suggestions-container .suggestion {
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 14px;
line-height: 1.4;
cursor: pointer;
background-color: var(--bg-off-white);
transition: background-color 0.2s ease, border-color 0.2s ease;
margin-bottom: 8px; /* Add margin between suggestions */
}
/* Remove margin from the last suggestion */
#ai-suggestions-container .suggestion:last-child {
margin-bottom: 0;
}
#ai-suggestions-container .suggestion:hover {
background-color: var(--accent-blue-hover);
border-color: #A0C9E1;
}
/* Loading/Status Messages */
.ai-status-message {
text-align: center;
font-style: italic;
color: #888;
padding: 20px 0;
}
/* Refine Button */
.ai-refine-button {
width: 100%;
padding: 12px;
border: none;
border-radius: 8px;
background-color: var(--accent-orange);
color: white;
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease;
}
.ai-refine-button:hover {
background-color: var(--accent-orange-hover);
}
/* Settings Modal */
#ai-settings-modal {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
z-index: 10001;
justify-content: center;
align-items: center;
}
.ai-settings-content {
background-color: var(--panel-bg);
padding: 25px;
border-radius: 12px;
width: 90%;
max-width: 450px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
/* Scrollability for the modal content */
max-height: 80vh;
overflow-y: auto;
}
.ai-settings-content h3 {
margin-top: 0;
font-size: 18px;
color: var(--text-color);
}
.ai-settings-content textarea {
width: 100%;
height: 150px;
border-radius: 8px;
border: 1px solid var(--border-color);
padding: 10px;
font-family: var(--font-family);
font-size: 14px;
resize: vertical;
background-color: var(--bg-off-white);
box-sizing: border-box;
}
.ai-settings-controls {
margin-top: 15px;
display: flex;
justify-content: flex-end;
gap: 10px;
}
.ai-settings-controls button {
padding: 10px 20px;
border-radius: 8px;
border: none;
font-size: 14px;
font-weight: 500;
cursor: pointer;
}
#ai-settings-save {
background-color: var(--accent-orange);
color: white;
}
#ai-settings-cancel {
background-color: #E0E0E0;
color: var(--text-color);
}