Hadiil commited on
Commit
680c92c
·
verified ·
1 Parent(s): 68d28d7

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +38 -46
static/styles.css CHANGED
@@ -1,6 +1,6 @@
1
-
2
  body {
3
- background: #0A1A3A; /* Bleu nuit */
 
4
  font-family: 'Arial', sans-serif;
5
  overflow-x: hidden;
6
  }
@@ -17,7 +17,7 @@ body {
17
  }
18
 
19
  @keyframes twinkle {
20
- 0%, 100% { opacity: 0.8; } /* Augmenté l'opacité pour visibilité sur bleu nuit */
21
  50% { opacity: 1; }
22
  }
23
 
@@ -42,11 +42,6 @@ body {
42
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
43
  }
44
 
45
- .function-box.active {
46
- transform: scale(1.1); /* Agrandissement au clic, légèrement plus grand que le survol */
47
- box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
48
- }
49
-
50
  .function-box.shadowed {
51
  opacity: 0.3;
52
  filter: blur(2px);
@@ -67,7 +62,8 @@ body {
67
  }
68
 
69
  .modal-content {
70
- background: #0A1A3A; /* Bleu nuit */
 
71
  border-radius: 0;
72
  padding: 30px;
73
  width: 90%;
@@ -78,13 +74,14 @@ body {
78
  }
79
 
80
  .chatbot-modal {
 
 
81
  display: flex;
82
  flex-direction: column;
83
- /* Supprimé max-width: 400px et max-height: 500px pour aligner avec .modal-content */
84
  }
85
 
86
  .chatbot-conversation {
87
- max-height: 450px; /* Augmenté pour s'adapter au modal plus grand */
88
  overflow-y: auto;
89
  margin-bottom: 10px;
90
  padding: 10px;
@@ -145,36 +142,13 @@ body {
145
  border: none;
146
  border-radius: 8px;
147
  cursor: pointer;
148
- transition: transform 0.2s, opacity 0.2s;
149
  }
150
 
151
- .cosmic-btn:hover:not(.loading) {
152
  transform: scale(1.05);
153
  }
154
 
155
- .cosmic-btn.loading {
156
- opacity: 0.7;
157
- cursor: not-allowed;
158
- display: flex;
159
- align-items: center;
160
- justify-content: center;
161
- }
162
-
163
- .cosmic-btn.loading .spinner {
164
- display: inline-block;
165
- width: 16px;
166
- height: 16px;
167
- border: 2px solid #fff;
168
- border-top-color: transparent;
169
- border-radius: 50%;
170
- animation: spin 1s linear infinite;
171
- margin-right: 8px;
172
- }
173
-
174
- @keyframes spin {
175
- to { transform: rotate(360deg); }
176
- }
177
-
178
  .response-card {
179
  margin-top: 20px;
180
  padding: 15px;
@@ -184,14 +158,6 @@ body {
184
  color: #fff;
185
  }
186
 
187
- .response-image {
188
- max-width: 100%;
189
- max-height: 300px;
190
- object-fit: contain;
191
- margin-bottom: 10px;
192
- border-radius: 8px;
193
- }
194
-
195
  .chatbot-icon {
196
  position: fixed;
197
  bottom: 20px;
@@ -255,12 +221,38 @@ body {
255
  padding: 8px 16px;
256
  }
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  @media (max-width: 768px) {
259
  .modal-content {
260
  width: 95%;
261
  }
262
  .chatbot-modal {
263
- width: 95%; /* Aligné avec .modal-content pour petits écrans */
 
264
  }
265
  .input-bar {
266
  flex-direction: column;
@@ -270,4 +262,4 @@ body {
270
  margin-top: 10px;
271
  margin-left: 0;
272
  }
273
- }
 
 
1
  body {
2
+ background: url('/images/starry-bg.jpg') no-repeat center center fixed;
3
+ background-size: cover;
4
  font-family: 'Arial', sans-serif;
5
  overflow-x: hidden;
6
  }
 
17
  }
18
 
19
  @keyframes twinkle {
20
+ 0%, 100% { opacity: 0.7; }
21
  50% { opacity: 1; }
22
  }
23
 
 
42
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
43
  }
44
 
 
 
 
 
 
45
  .function-box.shadowed {
46
  opacity: 0.3;
47
  filter: blur(2px);
 
62
  }
63
 
64
  .modal-content {
65
+ background: url('/images/starry-bg.jpg') no-repeat center center fixed;
66
+ background-size: cover;
67
  border-radius: 0;
68
  padding: 30px;
69
  width: 90%;
 
74
  }
75
 
76
  .chatbot-modal {
77
+ max-width: 400px;
78
+ max-height: 500px;
79
  display: flex;
80
  flex-direction: column;
 
81
  }
82
 
83
  .chatbot-conversation {
84
+ max-height: 350px;
85
  overflow-y: auto;
86
  margin-bottom: 10px;
87
  padding: 10px;
 
142
  border: none;
143
  border-radius: 8px;
144
  cursor: pointer;
145
+ transition: transform 0.2s;
146
  }
147
 
148
+ .cosmic-btn:hover {
149
  transform: scale(1.05);
150
  }
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  .response-card {
153
  margin-top: 20px;
154
  padding: 15px;
 
158
  color: #fff;
159
  }
160
 
 
 
 
 
 
 
 
 
161
  .chatbot-icon {
162
  position: fixed;
163
  bottom: 20px;
 
221
  padding: 8px 16px;
222
  }
223
 
224
+ .loading-spinner {
225
+ margin-top: 10px;
226
+ color: #fff;
227
+ font-size: 1rem;
228
+ text-align: center;
229
+ display: none;
230
+ }
231
+
232
+ .loading-spinner::before {
233
+ content: '';
234
+ display: inline-block;
235
+ width: 20px;
236
+ height: 20px;
237
+ border: 3px solid #fff;
238
+ border-top-color: transparent;
239
+ border-radius: 50%;
240
+ animation: spin 1s linear infinite;
241
+ margin-right: 10px;
242
+ vertical-align: middle;
243
+ }
244
+
245
+ @keyframes spin {
246
+ to { transform: rotate(360deg); }
247
+ }
248
+
249
  @media (max-width: 768px) {
250
  .modal-content {
251
  width: 95%;
252
  }
253
  .chatbot-modal {
254
+ max-width: 90%;
255
+ max-height: 80vh;
256
  }
257
  .input-bar {
258
  flex-direction: column;
 
262
  margin-top: 10px;
263
  margin-left: 0;
264
  }
265
+ }