-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
167 lines (148 loc) · 2.99 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
body {
width: 400px;
margin: 0;
font-family: 'Segoe UI', system-ui, sans-serif;
animation: slideIn 0.3s ease-out;
background: rgb(255, 255, 255);
border-radius: 16px;
overflow: hidden;
}
.container {
padding: 24px;
background: white;
min-height: 360px;
}
h1 {
font-size: 24px;
background: linear-gradient(45deg, #845EC2, #00C9A7, #FF6B6B);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-align: center;
margin: 0 0 24px 0;
animation: gradient 3s ease infinite;
background-size: 200% 200%;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.slider-container {
margin-bottom: 24px;
}
.slider {
appearance:none;
-webkit-appearance: none;
width: 100%;
height: 6px;
border-radius: 3px;
background: #e2e8f0;
outline: none;
margin: 16px 0;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: #845EC2;
cursor: pointer;
transition: all 0.3s ease;
}
.levels {
display: flex;
justify-content: space-between;
color: #64748b;
font-size: 14px;
}
#summarizeButton {
width: 100%;
padding: 12px;
background: white;
color: #845EC2; /* Default color */
font-weight: 600;
cursor: pointer;
position: relative;
border: none;
border-radius: 8px;
transition: all 0.3s ease;
z-index: 1;
overflow: hidden;
}
#summarizeButton::before {
content: "";
position: absolute;
inset: 0;
border-radius: 8px;
padding: 2px;
background: linear-gradient(45deg, #845EC2, #00C9A7, #FF6B6B, #845EC2);
-webkit-mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
background-size: 300% 300%;
z-index: -1;
animation: moveGradient 2s ease infinite;
}
#summarizeButton:hover {
color: #fff; /* Change text color on hover */
}
#summarizeButton:hover::before {
-webkit-mask: none;
mask: none;
}
#summarizeButton:active {
color: #ffffff; /* Keep text visible after click */
}
#summarizeButton.loading {
color: #ffffff; /* Keep text visible while loading */
}
#summarizeButton.loading::before {
-webkit-mask: none;
mask: none;
}
@keyframes moveGradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
#output {
margin-top: 24px;
padding: 16px;
height: 200px;
border-radius: 8px;
background: #f1f5f9;
overflow-y: auto;
font-size: 14px;
line-height: 1.6;
}
.typing-effect {
display: block;
white-space: pre-wrap;
overflow: hidden;
border-right: 2px solid #845EC2;
animation: typing 5s steps(50) 1s forwards, blink-caret 0.75s step-end infinite;
}
@keyframes typing {
from {
width: 0;
}
to {
width: 100%;
}
}
@keyframes blink-caret {
50% {
border-color: transparent;
}
}