mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 07:36:39 +08:00
home style
This commit is contained in:
parent
98449320d6
commit
063d1ea309
@ -1,18 +1,15 @@
|
|||||||
@mixin container {
|
@mixin container {
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
border: var(--border-in-light);
|
border: var(--border-in-light);
|
||||||
border-radius: 20px;
|
border-radius: 16px;
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
background-color: var(--white);
|
|
||||||
min-width: 600px;
|
min-width: 600px;
|
||||||
min-height: 370px;
|
min-height: 370px;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
width: var(--window-width);
|
width: var(--window-width);
|
||||||
height: var(--window-height);
|
height: var(--window-height);
|
||||||
}
|
}
|
||||||
@ -21,23 +18,21 @@
|
|||||||
@include container();
|
@include container();
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 600px) {
|
@media (min-width: 600px) {
|
||||||
.tight-container {
|
.tight-container {
|
||||||
--window-width: 100vw;
|
--window-width: 100vw;
|
||||||
--window-height: var(--full-height);
|
--window-height: var(--full-height);
|
||||||
--window-content-width: calc(100% - var(--sidebar-width));
|
--window-content-width: calc(100% - var(--sidebar-width));
|
||||||
|
|
||||||
@include container();
|
@include container();
|
||||||
|
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
max-height: var(--full-height);
|
max-height: var(--full-height);
|
||||||
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
border: 0;
|
border: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
|
position: relative;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: var(--sidebar-width);
|
width: var(--sidebar-width);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -45,9 +40,8 @@
|
|||||||
background-color: var(--second);
|
background-color: var(--second);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
box-shadow: inset -2px 0px 2px 0px rgb(0, 0, 0, 0.05);
|
box-shadow: inset -2px 0px 2px rgba(0, 0, 0, 0.05);
|
||||||
position: relative;
|
transition: width 0.3s ease;
|
||||||
transition: width ease 0.05s;
|
|
||||||
|
|
||||||
.sidebar-header-bar {
|
.sidebar-header-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -62,10 +56,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover,
|
&:hover, &:active {
|
||||||
&:active {
|
|
||||||
.sidebar-drag {
|
.sidebar-drag {
|
||||||
background-color: rgba($color: #000000, $alpha: 0.01);
|
background-color: rgba(0, 0, 0, 0.01);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
@ -75,16 +68,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-drag {
|
.sidebar-drag {
|
||||||
$width: 14px;
|
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: $width;
|
width: 14px;
|
||||||
background-color: rgba($color: #000000, $alpha: 0);
|
background-color: transparent;
|
||||||
cursor: ew-resize;
|
cursor: ew-resize;
|
||||||
transition: all ease 0.3s;
|
transition: all 0.3s ease;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
@ -105,13 +96,13 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.container {
|
.container {
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
min-width: unset;
|
min-width: unset;
|
||||||
max-height: unset;
|
max-height: unset;
|
||||||
min-width: unset;
|
min-width: unset;
|
||||||
border: 0;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +111,7 @@
|
|||||||
left: -100%;
|
left: -100%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
height: var(--full-height);
|
height: var(--full-height);
|
||||||
transition: all ease 0.3s;
|
transition: all 0.3s ease;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,11 +126,11 @@
|
|||||||
|
|
||||||
.sidebar-header {
|
.sidebar-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-top: 20px;
|
padding: 20px 0;
|
||||||
padding-bottom: 20px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
&-narrow {
|
&-narrow {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@ -157,18 +148,18 @@
|
|||||||
.sidebar-title {
|
.sidebar-title {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
animation: slide-in ease 0.3s;
|
animation: slide-in 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-sub-title {
|
.sidebar-sub-title {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
animation: slide-in ease 0.3s;
|
animation: slide-in 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-body {
|
.sidebar-body {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,59 +175,59 @@
|
|||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
position: relative;
|
position: relative;
|
||||||
content-visibility: auto;
|
content-visibility: auto;
|
||||||
}
|
|
||||||
|
|
||||||
.chat-item:hover {
|
&:hover {
|
||||||
background-color: var(--hover-color);
|
background-color: var(--hover-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-item-selected {
|
&-selected {
|
||||||
border-color: var(--primary);
|
border-color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-item-title {
|
&-title {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
display: block;
|
display: block;
|
||||||
width: calc(100% - 15px);
|
width: calc(100% - 15px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
animation: slide-in ease 0.3s;
|
animation: slide-in 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-item-delete {
|
&-delete {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
transition: all ease 0.3s;
|
transition: all 0.3s ease;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
|
||||||
|
|
||||||
.chat-item:hover > .chat-item-delete {
|
&:hover {
|
||||||
opacity: 0.5;
|
opacity: 1;
|
||||||
transform: translateX(-4px);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-item:hover > .chat-item-delete:hover {
|
&:hover > .chat-item-delete {
|
||||||
opacity: 1;
|
opacity: 0.5;
|
||||||
}
|
transform: translateX(-4px);
|
||||||
|
}
|
||||||
|
|
||||||
.chat-item-info {
|
&-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
color: rgb(166, 166, 166);
|
color: rgb(166, 166, 166);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
animation: slide-in ease 0.3s;
|
animation: slide-in 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-item-count,
|
&-count,
|
||||||
.chat-item-date {
|
&-date {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.narrow-sidebar {
|
.narrow-sidebar {
|
||||||
@ -244,6 +235,7 @@
|
|||||||
.sidebar-sub-title {
|
.sidebar-sub-title {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-logo {
|
.sidebar-logo {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -267,7 +259,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: all ease 0.3s;
|
transition: all 0.3s ease;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -282,7 +274,7 @@
|
|||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
transition: all ease 0.3s;
|
transition: all 0.3s ease;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -329,10 +321,10 @@
|
|||||||
|
|
||||||
.sidebar-actions {
|
.sidebar-actions {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-action:not(:last-child) {
|
.sidebar-action:not(:last-child) {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-content {
|
.loading-content {
|
||||||
|
Loading…
Reference in New Issue
Block a user