freegpt-webui / client /css /sidebar.css
monra's picture
Responsiveness adjustment
1a3aeb0
raw
history blame
3.09 kB
.sidebar {
max-width: 260px;
padding: var(--section-gap);
overflow: auto;
flex-shrink: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.sidebar .title {
font-size: 14px;
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;
gap: 16px;
overflow: auto;
padding-right: 8px;
}
.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%;
display: flex;
flex-direction: column;
gap: 10px;
}
.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;
}
}