Updated stylesheet
Browse files
style.css
CHANGED
|
@@ -1,28 +1,86 @@
|
|
| 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 |
}
|
|
|
|
| 1 |
+
.ai-assistant-container {
|
| 2 |
+
/* Fixed positioning makes it float relative to the browser window */
|
| 3 |
+
position: fixed;
|
| 4 |
+
bottom: 20px; /* Adjust vertical position */
|
| 5 |
+
right: 20px; /* Adjust horizontal position */
|
| 6 |
+
z-index: 1000; /* Ensures it stays above other content */
|
| 7 |
+
|
| 8 |
+
/* Layout for image and text */
|
| 9 |
+
display: flex;
|
| 10 |
+
align-items: flex-end; /* Aligns items to the bottom */
|
| 11 |
+
gap: 10px; /* Space between the image and the chat bubble */
|
| 12 |
+
|
| 13 |
+
/* Optional: Add a smooth transition for opening/closing animations */
|
| 14 |
+
transition: transform 0.3s ease-in-out;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
/* Positioning for Agent 1 (bottom one) */
|
| 18 |
+
#aiAssistant {
|
| 19 |
+
right: 20px;
|
| 20 |
+
bottom: 20px; /* Distance from the bottom of the viewport */
|
| 21 |
}
|
| 22 |
|
| 23 |
+
/* Positioning for Agent 2 (top one, stacked above Agent 1) */
|
| 24 |
+
#agenticLoop {
|
| 25 |
+
right: 20px;
|
| 26 |
+
/* This calculation places it 200px (height) + 20px (margin) above agent 1 */
|
| 27 |
+
bottom: 140px;
|
| 28 |
}
|
| 29 |
|
| 30 |
+
.assistant-avatar {
|
| 31 |
+
width: 60px; /* Adjust size of the avatar */
|
| 32 |
+
height: 60px;
|
| 33 |
+
border-radius: 50%; /* Makes the image circular */
|
| 34 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 35 |
+
cursor: pointer; /* Indicates it's interactive */
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.chat-bubble {
|
| 39 |
+
/* Styling for the text area appearance */
|
| 40 |
+
background-color: #fff;
|
| 41 |
+
padding: 15px;
|
| 42 |
+
border-radius: 20px;
|
| 43 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
| 44 |
+
max-width: 250px;
|
| 45 |
+
position: relative;
|
| 46 |
+
|
| 47 |
+
/* Initially hide the text area */
|
| 48 |
+
display: none;
|
| 49 |
}
|
| 50 |
|
| 51 |
+
/* CSS pseudo-element for the chat bubble "tail" */
|
| 52 |
+
.chat-bubble::after {
|
| 53 |
+
content: "";
|
| 54 |
+
position: absolute;
|
| 55 |
+
bottom: 10px;
|
| 56 |
+
right: -8px; /* Position the tail near the avatar */
|
| 57 |
+
width: 0;
|
| 58 |
+
height: 0;
|
| 59 |
+
border-top: 10px solid transparent;
|
| 60 |
+
border-left: 10px solid #fff;
|
| 61 |
+
border-bottom: 10px solid transparent;
|
| 62 |
}
|
| 63 |
+
.networkContainer {
|
| 64 |
+
display: flex;
|
| 65 |
+
align-items: center;
|
| 66 |
+
justify-content: space-around;
|
| 67 |
+
}
|
| 68 |
+
.item {
|
| 69 |
+
/* Add some styling to see the boxes */
|
| 70 |
+
|
| 71 |
+
color: white;
|
| 72 |
+
padding: 3px;
|
| 73 |
+
border: 1px solid #fff;
|
| 74 |
+
flex: 1; /* Optional: Distributes available space equally among items */
|
| 75 |
+
}
|
| 76 |
+
.rotate-svg {
|
| 77 |
+
/* Ensure the rotation is around the element's center */
|
| 78 |
+
transform-origin: center center;
|
| 79 |
+
/* Define the transition effect */
|
| 80 |
+
transition: transform 1s ease;
|
| 81 |
+
}
|
| 82 |
|
| 83 |
+
/* Apply the rotation when the container is hovered */
|
| 84 |
+
.item:active .rotate-svg {
|
| 85 |
+
transform: rotate(360deg);
|
| 86 |
}
|