Spaces:
Runtime error
Runtime error
File size: 1,789 Bytes
00df592 50af71c 00df592 68a494a 00df592 50af71c 00df592 68a494a 00df592 50af71c 00df592 68a494a 00df592 50af71c 00df592 |
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 |
/*
* SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
* SPDX-License-Identifier: Apache-2.0
*/
.bubble {
display: block !important;
align-self: flex-start;
background: #1f1f1f;
color: #e8e8e8;
border-radius: var(--bubble-radius, 1rem);
line-height: 1.5;
white-space: normal;
font-family: 'Inter', sans-serif;
font-size: 0.95rem;
position: relative;
opacity: 1 !important;
animation: bubbleAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
margin: 0.75rem 0;
overflow-wrap: break-word;
word-break: break-word;
vertical-align: middle;
padding: 1rem;
box-sizing: border-box;
max-width: 100%;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.3s ease;
min-height: 20px;
user-select: text; /* للسماح بتحديد النصوص */
}
.bubble:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
transform: translateY(-1px);
}
@keyframes bubbleAppear {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.bubble-user {
align-self: flex-end;
background: #2b2b2b;
color: #fff;
border-bottom-right-radius: 0.5rem;
box-shadow: none;
}
.bubble-assist {
align-self: flex-start;
background: transparent;
border: none;
box-shadow: none;
}
.message-container {
margin: 1rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.message-actions {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.message-container:hover .message-actions {
opacity: 1;
}
.action-btn {
background: none;
border: none;
cursor: pointer;
color: #3b82f6;
font-size: 0.9rem;
padding: 0.2rem 0.5rem;
}
.action-btn:hover {
color: #60a5fa;
} |