Comments (10)
sidebar.css
.sidebar {
max-width: 300px;
padding: var(--section-gap);
flex-shrink: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.sidebar .title {
font-size: 10px;
font-weight: 500;
}
.sidebar .conversation-sidebar {
padding: 8px 12px;
display: flex;
gap: 18px;
align-items: center;
user-select: none;
justify-content: space-between;
}
.sidebar .conversation-sidebar .left {
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
}
.sidebar i {
color: var(--conversations);
cursor: pointer;
}
.sidebar .top {
display: flex;
flex-direction: column;
overflow: hidden;
gap: 16px;
padding-right: 8px;
}
.sidebar .top:hover {
overflow: auto;
}
.sidebar .info {
padding: 8px 12px 0px 12px;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
background: transparent;
width: 100%;
border: none;
text-decoration: none;
}
.sidebar .info span {
color: var(--conversations);
line-height: 1.5;
font-size: 0.75rem;
}
.sidebar .info i::before {
margin-right: 8px;
}
.sidebar-footer {
width: 100%;
margin-top: 16px;
display: flex;
flex-direction: column;
}
.sidebar-footer button {
cursor: pointer;
user-select: none;
background: transparent;
}
.sidebar.shown {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
.sidebar.shown .box {
background-color: #16171a;
width: 80%;
height: 100%;
overflow-y: auto;
}
@keyframes spinner {
to {
transform: rotate(360deg);
}
}
/* scrollbar */
.sidebar .top::-webkit-scrollbar {
width: 4px;
padding: 8px 0px;
}
.sidebar .top::-webkit-scrollbar-track {
background-color: #ffffff00;
}
.sidebar .top::-webkit-scrollbar-thumb {
background-color: #555555;
border-radius: 10px;
}
.spinner:before {
content: "";
box-sizing: border-box;
position: absolute;
top: 50%;
left: 45%;
width: 20px;
height: 20px;
border-radius: 50%;
border: 1px solid var(--conversations);
border-top-color: white;
animation: spinner 0.6s linear infinite;
}
.mobile-sidebar {
display: none !important;
position: absolute;
z-index: 100000;
top: 0;
left: 0;
margin: 10px;
font-size: 20px;
cursor: pointer;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
background-color: var(--blur-bg);
border-radius: 10px;
border: 1px solid var(--blur-border);
width: 40px;
height: 40px;
justify-content: center;
align-items: center;
transition: 0.33s;
}
.mobile-sidebar i {
transition: 0.33s;
}
.rotated {
transform: rotate(360deg);
}
.mobile-sidebar.rotated {
position: fixed;
top: 10px;
left: 10px;
z-index: 1001;
}
@media screen and (max-width: 990px) {
.sidebar {
display: none;
width: 100%;
max-width: none;
}
.mobile-sidebar {
display: flex !important;
}
}
@media (max-width: 990px) {
.sidebar .top {
padding-top: 48px;
}
}
@media (min-width: 768px) {
.sidebar.shown {
position: static;
width: auto;
height: auto;
background-color: transparent;
}
.sidebar.shown .box {
background-color: #16171a;
width: auto;
height: auto;
overflow-y: auto;
}
}
from freegpt-webui.
https://chat.unofficial-ai.top/chat/
from freegpt-webui.
I had been considering creating the "light theme" for the project for some time, but I currently don't have the available time. I really liked your implementation. Could you open it as a Pull Request? That way, I can approve it, and you can become a contributor to the project.
from freegpt-webui.
okay
from freegpt-webui.
Do I pull the request directly or do I pull the request after I have written the toggle button
from freegpt-webui.
You can do the PR, I create the button and merge them together.
Thanks for the contribution. Good job!
from freegpt-webui.
@ramonvc I PR a new version, I am already finished this.
from freegpt-webui.
Button is created
from freegpt-webui.
I think you can release this version now.
from freegpt-webui.
@ramonvc I find some bug on my code, you must be fix them, (or me fix)
from freegpt-webui.
Related Issues (20)
- FileNotFoundError: [WinError 3],系统找不到指定的的路径。:'translations’ HOT 1
- {"_action":"_ask","error":"an error occurred list index out of range","success":false} HOT 8
- How i can to reinstall freegpt
- discord群聊是不是没有了,我怎么找不到 HOT 1
- ChimeraGPT挂了? discord进不去了 HOT 8
- Use gpt-4 HOT 3
- Error: 500 HOT 2
- [Feature] New API Provider HOT 20
- error not working anymore HOT 6
- Chimera not work HOT 2
- naga error... HOT 4
- Problem with Naga in freegpt-webui
- AI超元域,免费开源多AI协作应用
- This API key has been suspended HOT 4
- Not Working ! HOT 4
- [Suggestion] Add reload/delete message function in the UI
- [Suggestion] CSS Typing Effect HOT 1
- Fail HOT 1
- docker HOT 1
- Not working anymore now HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freegpt-webui.