-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyles.css
More file actions
177 lines (156 loc) · 4 KB
/
Copy pathstyles.css
File metadata and controls
177 lines (156 loc) · 4 KB
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
168
169
170
171
172
173
174
175
176
177
.stMain {
height: 100vh;
width: 100vw;
overflow: hidden;
}
.stAppViewContainer {
margin: 0; /* Remove margin auto */
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
overflow: hidden; /* Prevent unnecessary scrollbars */
background: linear-gradient(
315deg,
#050a1a 3%,
#0c1c3d 20%,
#163a69 50%,
#1b4e8b 75%,
#0a1628 98%
);
background-attachment: fixed;
animation: gradientShift 15s ease infinite;
position: relative;
width: 100vw; /* Ensure it takes up the full viewport width */
height: 100vh; /* Ensure it takes up the full viewport height */
box-shadow: inset 0 0 60px rgba(0, 40, 80, 0.8);
}
/* Smooth Gradient Animation */
@keyframes gradientShift {
0% {
background-position: 0% 0%;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0% 0%;
}
}
/* Adding a Pulsating Radial Glow for 3D Effect */
.stApp::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100vw; /* Ensure it does not overflow horizontally */
height: 100vh; /* Ensure it does not overflow vertically */
background: radial-gradient(circle, rgba(0, 150, 255, 0.2) 0%, rgba(0, 50, 150, 0) 70%);
opacity: 0.5;
filter: blur(50px);
animation: glowPulse 8s ease-in-out infinite alternate;
}
@keyframes glowPulse {
0% {
opacity: 0.3;
transform: scale(1);
}
100% {
opacity: 0.5;
transform: scale(1.1);
}
}
/* Subtle Glass Reflection Effect */
.stApp::after {
content: "";
position: absolute;
top: 0;
left: 50%;
width: 50%; /* Reduce width to prevent overflow */
height: 100%;
background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 10%, rgba(255, 255, 255, 0) 50%);
transform: skewX(-15deg); /* Reduce skew angle */
opacity: 0.3;
pointer-events: none;
}
.stMainBlockContainer {
width: 100vw;
height: 100vh;
}
button[kind="header"]:hover {
background-color: rgb(255, 51, 51);
}
/* Fix layout to ensure other elements remain fixed */
.main .block-container {
display: flex !important;
flex-direction: column !important;
height: 100vh !important;
min-height: 0 !important; /* Fix potential flexbox overflow */
overflow: hidden !important;
}
/* Hide the Streamlit deploy button */
.stAppDeployButton {
visibility: hidden;
}
/* Sidebar styling */
.stSidebar {
background-color: rgba(255, 255, 255, 0.2);
padding: 15px;
border-radius: 10px;
box-sizing: border-box; /* Ensures padding does not add to total width */
}
/* User messages */
.stChatMessage.user {
background-color: rgba(0, 120, 215, 0.2);
color: black;
}
/* Assistant messages */
.stChatMessage.assistant {
background-color: rgba(0, 200, 150, 0.2);
color: black;
}
/* Style the iFrame container */
iframe {
border-radius: 10px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
/* Ensure the chat container has a fixed height and is scrollable */
.stChatMessageContainer {
max-height: 50vh !important; /* Prevent chat from pushing the page down */
flex-grow: 1 !important; /* Allow it to adjust inside a flex container */
overflow-y: auto !important;
}
button[kind="header"]:hover {
background-color: rgb(255, 51, 51);
}
/* Hide the streamlit deploy button */
.stAppDeployButton {
visibility: hidden;
}
/* Ensure chat panel has a fixed height & scrolling */
[role="tabpanel"]:not([hidden]) {
height: 40vh; /* Adjust height as needed */
overflow-y: auto !important;
display: flex;
flex-direction: column;
scroll-behavior: smooth; /* Smooth scrolling */
scroll-snap-type: y mandatory; /* Ensures chat always snaps to bottom */
}
/* Chat container should grow inside the tab panel */
#chat-container {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
padding: 10px;
max-height: 100%;
scroll-snap-align: end; /* Always keep the last message in view */
}
/* Custom scrollbar */
#chat-container::-webkit-scrollbar {
width: 8px;
}
#chat-container::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.4);
border-radius: 4px;
}
.stIFrame {
margin-top: 60px;
}