UntilDot commited on
Commit
e2d2341
·
verified ·
1 Parent(s): d92563e

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +96 -97
static/style.css CHANGED
@@ -27,6 +27,7 @@
27
  --aqua: #8ec07c;
28
  }
29
 
 
30
  body {
31
  background-color: var(--bg0);
32
  color: var(--fg0);
@@ -58,137 +59,135 @@ button:hover {
58
  color: var(--fg0) !important;
59
  }
60
 
61
- .dropdown {
62
- position: relative;
 
63
  overflow: visible;
64
- text-align: center;
 
 
 
65
  }
66
 
67
- .options {
68
- position: absolute;
69
- top: 100%;
70
- left: 50%;
71
- transform: translateX(-50%);
72
- width: 240px;
73
- z-index: 9999;
74
- background-color: var(--bg-statusline1) !important;
75
- color: var(--fg0);
76
- backdrop-filter: none !important;
77
- -webkit-backdrop-filter: none !important;
78
- box-shadow: 0 4px 8px rgba(0,0,0,0.25) !important;
79
- scrollbar-width: thin;
80
- scrollbar-color: #665c54 var(--bg-statusline1);
81
- border-radius: 0.5rem;
82
- white-space: nowrap;
83
- text-align: center;
84
  }
85
 
86
- .options::-webkit-scrollbar {
87
- width: 8px;
88
- }
89
- .options::-webkit-scrollbar-track {
90
- background-color: var(--bg-statusline1) !important;
91
- border-radius: 0.25rem;
92
- }
93
- .options::-webkit-scrollbar-thumb {
94
- background-color: #665c54 !important;
95
- border-radius: 4px;
96
- border: 2px solid var(--bg-statusline1);
97
- }
98
- .options::-webkit-scrollbar-thumb:hover {
99
- background-color: #7c6f64 !important;
100
  }
101
- .options div:hover {
102
- background-color: var(--blue) !important;
103
- color: var(--fg1) !important;
104
- font-weight: 600;
105
- cursor: pointer;
106
  }
107
- .options div {
108
- padding: 0.5rem 0.75rem;
109
- text-align: center;
 
 
110
  }
111
 
112
- footer {
113
- margin-top: 1rem;
114
- padding-top: 1rem;
115
- font-size: 0.875rem;
116
- color: var(--fg1);
117
- opacity: 0.7;
118
  }
119
 
120
- form#chatForm {
121
- margin-bottom: 0.5rem;
122
  }
123
 
124
- @keyframes bounce {
125
- 0%, 80%, 100% {
126
- transform: scale(0);
127
- }
128
- 40% {
129
- transform: scale(1);
130
- }
131
  }
132
 
133
- .dot {
134
- width: 8px;
135
- height: 8px;
136
- margin: 0 4px;
137
- background-color: var(--aqua);
138
- border-radius: 50%;
139
- animation: bounce 1.4s infinite ease-in-out both;
140
  }
141
 
142
- .animation-delay-150 {
143
- animation-delay: 0.15s;
 
144
  }
145
- .animation-delay-300 {
146
- animation-delay: 0.3s;
 
 
 
 
 
 
 
 
 
147
  }
148
- .bg-aqua {
149
- background-color: var(--aqua);
 
 
150
  }
151
 
152
- #configPanel {
153
- max-height: 1000px;
154
- overflow: visible;
155
- transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
156
- display: flex;
157
- justify-content: space-around;
158
  }
159
 
160
- #configPanel.minimal .model-zone .model-label,
161
- #configPanel.minimal .model-zone .dropdown {
162
- display: none;
 
 
 
 
163
  }
164
 
165
- #configPanel.minimal .model-zone .model-name,
166
- #configPanel.minimal .model-zone .loader {
167
- display: inline-block;
 
 
 
 
168
  }
169
 
170
- #configPanel.expanded .model-zone .model-name {
171
- display: none;
 
 
 
 
172
  }
173
 
174
- #configPanel.expanded .model-zone .model-label,
175
- #configPanel.expanded .model-zone .dropdown {
176
- display: block;
177
  }
178
 
179
- .model-zone {
180
- display: flex;
181
- flex-direction: column;
182
- align-items: center;
183
- text-align: center;
184
  }
185
 
186
- .model-name {
187
- font-weight: bold;
188
- padding: 0.5rem 0;
 
 
 
189
  }
190
 
 
191
  #chatContainer {
192
- position: relative;
193
- z-index: 0;
194
  }
 
27
  --aqua: #8ec07c;
28
  }
29
 
30
+ /* Base Styling */
31
  body {
32
  background-color: var(--bg0);
33
  color: var(--fg0);
 
59
  color: var(--fg0) !important;
60
  }
61
 
62
+ /* === Config Panel Behavior === */
63
+ #configPanel {
64
+ max-height: 1000px;
65
  overflow: visible;
66
+ transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: 1rem;
70
  }
71
 
72
+ #configPanel.minimal .model-label,
73
+ #configPanel.minimal .dropdown,
74
+ #configPanel.minimal .options {
75
+ display: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
77
 
78
+ #configPanel.minimal .model-name {
79
+ display: block;
80
+ font-weight: bold;
81
+ margin-top: 0.25rem;
82
+ text-align: center;
 
 
 
 
 
 
 
 
 
83
  }
84
+
85
+ #configPanel.minimal .loader {
86
+ display: none;
 
 
87
  }
88
+
89
+ #configPanel.minimal .model-zone.loading .loader {
90
+ display: flex;
91
+ justify-content: center;
92
+ margin-top: 0.5rem;
93
  }
94
 
95
+ /* Expanded mode: show everything */
96
+ #configPanel.expanded .model-label,
97
+ #configPanel.expanded .dropdown,
98
+ #configPanel.expanded .model-name {
99
+ display: block;
 
100
  }
101
 
102
+ #configPanel.expanded .loader {
103
+ display: none;
104
  }
105
 
106
+ #configPanel.expanded .model-zone.loading .loader {
107
+ display: flex;
108
+ justify-content: center;
109
+ margin-top: 0.5rem;
 
 
 
110
  }
111
 
112
+ /* Model zone layout */
113
+ .model-zone {
114
+ display: flex;
115
+ flex-direction: column;
116
+ align-items: center;
117
+ text-align: center;
 
118
  }
119
 
120
+ /* Dropdown */
121
+ .model-dropdown {
122
+ width: 100%;
123
  }
124
+
125
+ .options {
126
+ background-color: var(--bg-statusline1);
127
+ color: var(--fg0);
128
+ box-shadow: 0 4px 8px rgba(0,0,0,0.25);
129
+ border-radius: 0.5rem;
130
+ max-height: 200px;
131
+ overflow-y: auto;
132
+ position: absolute;
133
+ z-index: 9999;
134
+ margin-top: 0.5rem;
135
  }
136
+
137
+ .options div {
138
+ padding: 0.5rem;
139
+ cursor: pointer;
140
  }
141
 
142
+ .options div:hover {
143
+ background-color: var(--blue);
144
+ color: var(--fg1);
 
 
 
145
  }
146
 
147
+ /* Loader dots */
148
+ .loader {
149
+ display: flex;
150
+ justify-content: center;
151
+ align-items: center;
152
+ flex-direction: row;
153
+ gap: 0.5rem;
154
  }
155
 
156
+ @keyframes bounce {
157
+ 0%, 80%, 100% {
158
+ transform: scale(0);
159
+ }
160
+ 40% {
161
+ transform: scale(1);
162
+ }
163
  }
164
 
165
+ .dot {
166
+ width: 8px;
167
+ height: 8px;
168
+ background-color: var(--aqua);
169
+ border-radius: 50%;
170
+ animation: bounce 1.4s infinite ease-in-out both;
171
  }
172
 
173
+ .animation-delay-150 {
174
+ animation-delay: 0.15s;
 
175
  }
176
 
177
+ .animation-delay-300 {
178
+ animation-delay: 0.3s;
 
 
 
179
  }
180
 
181
+ /* Footer */
182
+ footer {
183
+ margin-top: 1rem;
184
+ font-size: 0.875rem;
185
+ color: var(--fg1);
186
+ opacity: 0.7;
187
  }
188
 
189
+ /* Chat container */
190
  #chatContainer {
191
+ position: relative;
192
+ z-index: 0;
193
  }