Agent AI
This commit is contained in:
163
styles.css
163
styles.css
@@ -876,3 +876,166 @@ li a span {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Floating AI chat joke widget */
|
||||
.ai-chat {
|
||||
position: fixed;
|
||||
right: 24px;
|
||||
bottom: 24px;
|
||||
z-index: 1100;
|
||||
transition: bottom 0.25s ease;
|
||||
font-family:
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
"Helvetica Neue",
|
||||
Arial,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
.ai-chat.ai-chat--raised {
|
||||
bottom: 96px;
|
||||
}
|
||||
|
||||
.ai-chat__fab {
|
||||
border: 1px solid var(--accent-color);
|
||||
background: rgba(26, 16, 60, 0.92);
|
||||
color: var(--text-color);
|
||||
border-radius: 999px;
|
||||
height: 52px;
|
||||
min-width: 110px;
|
||||
padding: 0 18px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
.ai-chat__fab:hover {
|
||||
box-shadow: 0 0 18px var(--accent-glow);
|
||||
}
|
||||
|
||||
.ai-chat__panel {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 64px;
|
||||
width: min(90vw, 340px);
|
||||
background: rgba(30, 20, 60, 0.92);
|
||||
border: 1px solid var(--container-border);
|
||||
border-radius: 16px;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ai-chat__panel.is-open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ai-chat__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.ai-chat__close {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.ai-chat__messages {
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.ai-chat__bubble {
|
||||
margin: 0;
|
||||
padding: 10px 12px;
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--text-color);
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.35;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ai-chat__bubble--user {
|
||||
background: rgba(244, 162, 97, 0.2);
|
||||
border: 1px solid rgba(244, 162, 97, 0.35);
|
||||
}
|
||||
|
||||
.ai-chat__form {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.ai-chat__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-color);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.ai-chat__input::placeholder {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ai-chat__send {
|
||||
border: 1px solid var(--accent-color);
|
||||
background: var(--accent-color);
|
||||
color: #1a103c;
|
||||
border-radius: 10px;
|
||||
padding: 10px 12px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.ai-chat {
|
||||
right: 14px;
|
||||
bottom: 14px;
|
||||
}
|
||||
|
||||
.ai-chat.ai-chat--raised {
|
||||
bottom: 82px;
|
||||
}
|
||||
|
||||
.ai-chat__panel {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100vw;
|
||||
max-width: none;
|
||||
border-radius: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.ai-chat__panel.is-open {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ai-chat__messages {
|
||||
flex: 1;
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user