forked from caiocarvalhofre/moodle-mod_maici
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
140 lines (133 loc) · 2.51 KB
/
styles.css
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#maici_container {
width: -webkit-fill-available;
}
.path-mod-maici .overflow-hidden {
max-height: 7rem;
overflow-y: auto !important;
}
.path-mod-maici .overlay {
opacity: 0.15;
pointer-events: none;
}
#openai_chat_log {
display: flex;
flex-direction: column;
height: 20rem;
overflow-y: scroll;
margin-bottom: 0.5rem;
}
#openai_chat_log p {
margin: 0;
}
#openai_chat_log a {
color: white;
text-decoration: underline;
}
#control_bar {
display: flex;
gap: 0.5rem;
justify-content: center;
}
#control_bar button {
background: var(--blue);
color: var(--white);
border: none;
border-radius: 0.5rem;
width: 2.5rem;
}
#control_bar #go {
border-radius: 0 0.5rem 0.5rem 0;
}
#control_bar #refresh {
background-color: var(--secondary);
color: black;
}
#input_bar {
display: flex;
}
#openai_input {
padding: 0.5rem;
border-radius: 0.5rem 0 0 0.5rem;
border: 1px solid gray;
width: 100%;
transition: background 0.4s ease;
}
#openai_input.error {
border: 1px solid red;
}
.openai_message {
padding: 0.75rem 1rem;
background: #f4f4f4;
border-radius: 0.5rem;
margin-bottom: 1.75rem;
width: fit-content;
max-width: 90%;
animation: block_openai_chat_popup 0.4s cubic-bezier(0.87, 0, 0.13, 1);
position: relative;
}
.openai_message:before {
position: absolute;
top: -1.5rem;
left: 0;
color: gray;
opacity: 0;
animation: block_openai_chat_fade-in 0.4s ease 0.4s forwards;
}
.openai_message.user {
align-self: flex-end;
text-align: right;
}
.openai_message.user:before {
right: 0;
left: unset;
}
.openai_message.bot {
background: var(--blue);
color: var(--white);
}
.openai_message.alert {
background: var(--red);
color: var(--white);
}
.openai_message.loading {
animation: block_openai_chat_thinking 1s ease infinite;
}
.openai_message.loading:before {
animation: none;
opacity: 0;
}
@keyframes block_openai_chat_popup {
0% {
opacity: 0;
transform: translateY(5px);
}
70% {
opacity: 1;
transform: translateY(-2.5px);
}
85% {
transform: translateY(2.5px);
}
100% {
transform: translateY(0);
}
}
@keyframes block_openai_chat_thinking {
0% {
opacity: 1;
}
50% {
opacity: 0.25;
}
100% {
opacity: 1;
}
}
@keyframes block_openai_chat_fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}