-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
246 lines (218 loc) · 5.78 KB
/
styles.css
File metadata and controls
246 lines (218 loc) · 5.78 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
body {
@apply bg-midnight-background text-midnight-foreground;
}
h1 {
@apply text-4xl font-bold text-midnight-cyan mb-4;
}
h2 {
@apply text-3xl font-semibold text-midnight-purple mb-3;
}
h3 {
@apply text-2xl font-semibold text-midnight-orange mb-2;
}
a {
@apply text-midnight-orange hover:text-midnight-yellow transition-colors duration-200;
}
}
@layer components {
.layout-grid {
display: grid;
grid-template-columns: minmax(200px, auto) 5px 1fr 5px minmax(200px, auto);
height: 100vh;
width: 100vw;
overflow: hidden;
}
.sidebar {
@apply bg-base-200 p-4 overflow-y-auto;
height: 100vh;
min-width: 300px;
max-width: 50vw;
width: 25vw;
}
.left-sidebar {
grid-column: 1 / 2;
}
.main-content {
grid-column: 3 / 4;
@apply p-4 overflow-y-auto;
height: 100vh;
}
.right-sidebar {
grid-column: 5 / 6;
resize: none;
overflow-x: hidden;
display: flex;
flex-direction: column;
}
#homeworkChatDisplay {
flex-grow: 1;
overflow-y: auto;
max-height: calc(100vh - 150px); /* Adjust 150px based on the height of other elements in the sidebar */
}
.resize-handle {
grid-row: 1 / -1;
cursor: col-resize;
background-color: #2c2c2c;
transition: background-color 0.3s;
}
.resize-handle:hover {
background-color: #3e3e3e;
}
#leftResizeHandle {
grid-column: 2 / 3;
}
#rightResizeHandle {
grid-column: 4 / 5;
}
.btn {
@apply py-2 px-4 rounded font-bold transition-colors duration-200;
}
.btn-primary {
@apply bg-purple-700 text-gray-100 hover:bg-purple-600;
}
.btn-secondary {
@apply bg-gray-600 text-gray-100 hover:bg-gray-500;
}
.btn-success {
@apply bg-green-700 text-gray-100 hover:bg-green-600;
}
.btn-warning {
@apply bg-yellow-600 text-gray-100 hover:bg-yellow-500;
}
.btn-error {
@apply bg-red-600 text-gray-100 hover:bg-red-500;
}
.card {
@apply bg-midnight-currentLine rounded-lg shadow-md p-6;
}
.navbar {
@apply flex items-center justify-between bg-midnight-currentLine p-4;
}
.navbar-item {
@apply text-midnight-foreground hover:text-midnight-cyan px-3 py-2 transition-colors duration-200;
}
.form-input {
@apply bg-midnight-background border border-midnight-comment rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-midnight-purple;
}
.spinner {
border: 4px solid rgba(0, 0, 0, 0.1);
width: 36px;
height: 36px;
border-radius: 50%;
border-left-color: #09f;
animation: spin 1s ease infinite;
display: inline-block;
vertical-align: middle;
margin-left: 10px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.hidden {
display: none;
}
/* Settings Overlay */
#settingsOverlay {
backdrop-filter: blur(5px);
}
#settingsOverlay > div {
max-width: 800px;
}
/* Dropdown styles */
.dropdown {
@apply relative inline-block;
}
.dropdown-content {
@apply hidden absolute z-10 bg-midnight-currentLine border border-midnight-comment rounded shadow-lg;
min-width: 160px;
}
.dropdown:hover .dropdown-content {
@apply block;
}
.dropdown-item {
@apply block px-4 py-2 text-midnight-foreground hover:bg-midnight-background hover:text-midnight-cyan;
}
/* Select and input element styles */
select, input[type="text"], input[type="password"] {
@apply bg-midnight-currentLine text-midnight-foreground border border-midnight-comment rounded px-3 py-2 appearance-none;
background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
linear-gradient(135deg, currentColor 50%, transparent 50%);
background-position: calc(100% - 20px) calc(1em + 2px),
calc(100% - 15px) calc(1em + 2px);
background-size: 5px 5px,
5px 5px;
background-repeat: no-repeat;
}
select:focus, input[type="text"]:focus, input[type="password"]:focus {
@apply outline-none ring-2 ring-midnight-purple;
}
select option {
@apply bg-midnight-currentLine text-midnight-foreground;
}
select option:hover,
select option:focus,
select option:active {
@apply bg-midnight-background text-midnight-cyan;
}
/* Bordered container styles */
.container-bordered {
@apply border border-black rounded-lg p-4;
}
.bg-base-200 {
@apply border border-black;
}
.info-window {
@apply bg-midnight-currentLine border border-black p-4 rounded-lg overflow-y-auto;
}
/* Chat item styles for the sidebar */
.chat-item {
@apply p-3 mb-3 rounded cursor-pointer transition-all duration-300 ease-in-out border border-midnight-comment;
}
/* Highlighted chat item */
.chat-item-selected {
@apply bg-midnight-purple text-midnight-foreground font-bold shadow-lg border-midnight-cyan;
}
/* Hover effect for chat items */
.chat-item:hover:not(.chat-item-selected) {
@apply bg-midnight-currentLine border-midnight-orange;
}
.chat-item-selected {
@apply relative pl-8;
}
.chat-item-selected::before {
content: '►';
position: absolute;
left: 12px;
color: #ff79c6; /* Dracula pink */
font-size: 1.2em;
}
/* Sidebar styles */
.sidebar {
@apply bg-midnight-background border-r border-midnight-comment;
}
/* Chat list container */
#chatList {
@apply space-y-2 p-2;
}
}
@layer utilities {
.text-glow {
text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
}
.border-glow {
box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
}
.gradient-text {
@apply text-transparent bg-clip-text bg-gradient-to-r from-midnight-purple to-midnight-pink;
}
}
@media (max-width: 768px) {
.navbar {
@apply flex-col;
}
}