diff options
Diffstat (limited to 'website4/public/assets/css/extras.css')
-rw-r--r-- | website4/public/assets/css/extras.css | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/website4/public/assets/css/extras.css b/website4/public/assets/css/extras.css new file mode 100644 index 0000000..4a9f2fc --- /dev/null +++ b/website4/public/assets/css/extras.css @@ -0,0 +1,180 @@ +.send-btn { + background-color: var(--primary-color); + color: var(--secondary-color); +} + +.send-btn:hover { + background-color: #ffbb00; +} + +.chat-toggle-btn { + position: fixed; + bottom: 20px; + right: 20px; + width: 50px; + height: 50px; + border: none; + border-radius: 50%; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); + cursor: pointer; + z-index: 1000; + display: flex; + align-items: center; + justify-content: center; + padding: 0; + transition: background-color 0.3s ease; + background-color: var(--background-color); + color: var(--primary-color); +} + +.chat-toggle-btn svg { + width: 24px; + height: 24px; + fill: var(--primary-color); + transition: fill 0.3s ease; +} + +.chat-toggle-btn:hover, +.chat-toggle-btn.open { + background-color: var(--primary-color); +} + +.chat-toggle-btn:hover svg, +.chat-toggle-btn.open svg { + fill: var(--secondary-color); +} + +.chat-close-btn { + color: var(--primary-color); +} + +.chat-close-btn:hover { + color: var(--secondary-color); +} + +.chat-close-btn { + position: absolute; + top: 0; + right: 0; + font-size: 18px; + background: none; + border: none; + cursor: pointer; +} + +.chat-log { + height: 300px; + overflow-y: auto; + padding: 10px; + border-radius: 10px; + margin-bottom: 10px; + font-family: 'Courier New', Courier, monospace; +} + +.chat-message { + margin: 5px 0; + font-family: 'default-512', Arial, sans-serif; +} + +.chat-message .sender { + font-weight: bold; +} + +.chat-message .virtual-assistant { + color: red; +} + +.chat-message .user { + color: blue; +} + +.chat-input-container { + display: flex; + gap: 10px; +} + +.chat-input { + flex: 1; + padding: 10px; + border-radius: 10px; + font-family: 'default-512', Arial, sans-serif; + color: var(--primary-color); + background-color: var(--secondary-color); + border: 1px solid var(--border-color); +} + +.chat-input:focus { + outline: none; + border-color: var(--primary-color); +} + +.send-btn { + padding: 10px; + border: none; + cursor: pointer; + border-radius: 10px; +} + +.chat-container { + position: fixed; + bottom: 0; + right: 0; + margin-right: 20px; + max-width: 400px; + background-color: var(--secondary-color); + border: 2px solid var(--border-color); + border-radius: 10px; + padding: 20px; + z-index: 1001; + transform: translateY(100%); + opacity: 0; + transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease; + visibility: hidden; +} + +.chat-container.open { + transform: translateY(0); + opacity: 1; + visibility: visible; +} + +.chat-header { + font-size: 20px; + font-weight: bold; + color: var(--primary-color); + text-align: center; + margin-bottom: 10px; + position: relative; + font-family: 'default-512', Arial, sans-serif; +} + +@media (max-width: 600px) { + .chat-container { + width: 100%; + margin: 0px; + padding: 20px; + box-sizing: border-box; + } +} + +@media (min-width: 1280px) { + .sidebar, .sidebar-right { + display: block; + } + + .chat-toggle-btn { + bottom: 20px; + right: 20px; + } +} + +@media (max-width: 1279px) { + .sidebar, .sidebar-right { + display: none; + } + + .chat-toggle-btn { + bottom: 100px; + right: 20px; + } +} |