Giter Site home page Giter Site logo

[Future] White version about freegpt-webui HOT 10 CLOSED

rxm0n avatar rxm0n commented on July 22, 2024
[Future] White version

from freegpt-webui.

Comments (10)

black-fruit avatar black-fruit commented on July 22, 2024

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.

black-fruit avatar black-fruit commented on July 22, 2024

https://chat.unofficial-ai.top/chat/

from freegpt-webui.

ramon-victor avatar ramon-victor commented on July 22, 2024

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.

black-fruit avatar black-fruit commented on July 22, 2024

okay

from freegpt-webui.

black-fruit avatar black-fruit commented on July 22, 2024

Do I pull the request directly or do I pull the request after I have written the toggle button

from freegpt-webui.

ramon-victor avatar ramon-victor commented on July 22, 2024

You can do the PR, I create the button and merge them together.

Thanks for the contribution. Good job!

from freegpt-webui.

black-fruit avatar black-fruit commented on July 22, 2024

@ramonvc I PR a new version, I am already finished this.

from freegpt-webui.

black-fruit avatar black-fruit commented on July 22, 2024

Button is created

from freegpt-webui.

black-fruit avatar black-fruit commented on July 22, 2024

I think you can release this version now.

from freegpt-webui.

black-fruit avatar black-fruit commented on July 22, 2024

@ramonvc I find some bug on my code, you must be fix them, (or me fix)

from freegpt-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.