mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
4
This commit is contained in:
parent
c4db359a85
commit
7c448656a9
@ -14,7 +14,7 @@
|
||||
0px 0px 0px 0.9375px rgba(0, 0, 0, 0.5);
|
||||
background-color: var(--white);
|
||||
border: 2px solid hsla(0, 0%, 100%, .1);
|
||||
border-radius: 10px;
|
||||
border-radius: 20px;
|
||||
box-shadow: var(--shadow);
|
||||
color: var(--black);
|
||||
background-color: var(--white);
|
||||
@ -39,13 +39,15 @@
|
||||
.tight-container {
|
||||
--window-width: 100vw;
|
||||
--window-height: var(--full-height);
|
||||
--window-content-width: 768px;
|
||||
--window-content-width: 868px;
|
||||
|
||||
|
||||
|
||||
@include container();
|
||||
|
||||
max-width: 100vw;
|
||||
max-height: var(--full-height);
|
||||
background: var(--gray);
|
||||
|
||||
border-radius: 0;
|
||||
}
|
||||
@ -60,7 +62,7 @@
|
||||
background-color: var(--second);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: inset -2px 0px 2px 0px rgb(0, 0, 0, 0.05);
|
||||
// box-shadow: inset -2px 0px 2px 0px rgb(0, 0, 0, 0.05);
|
||||
position: relative;
|
||||
transition: width ease 0.1s;
|
||||
}
|
||||
@ -90,6 +92,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 auto;
|
||||
background-color: var(--white);
|
||||
}
|
||||
|
||||
.mobile {
|
||||
@ -157,12 +160,15 @@
|
||||
|
||||
.chat-list {}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.chat-item {
|
||||
box-sizing: border-box;
|
||||
padding: 12px 10px;
|
||||
color: var(--black);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
|
||||
border-radius: 10px;
|
||||
margin: 0 1px;
|
||||
margin-bottom: 14px;
|
||||
@ -180,8 +186,8 @@
|
||||
background-image: linear-gradient(to right, var(--second), var(--second)),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.8) 73.67%, rgba(255, 255, 255, 0) 99.95%),
|
||||
linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
|
||||
box-shadow: 0px 16px 32px -16px rgba(0, 0, 0, 0.5),
|
||||
0px 0px 0px 0.9375px rgba(0, 0, 0, 0.5);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@keyframes slide-in {
|
||||
@ -200,7 +206,6 @@
|
||||
background-color: var(--hover-color);
|
||||
}
|
||||
|
||||
|
||||
.chat-item-selected {
|
||||
color: var(--black);
|
||||
border: 1px solid transparent;
|
||||
@ -392,7 +397,7 @@
|
||||
}
|
||||
|
||||
.chat-message-user>.chat-message-container>.chat-message-item {
|
||||
background: rgba(78, 91, 246, 0.60);
|
||||
background: var(--chatpop);
|
||||
border-radius: 10px 4px 10px 10px;
|
||||
border: none;
|
||||
}
|
||||
@ -503,7 +508,7 @@
|
||||
width: 100%;
|
||||
border-radius: 10px;
|
||||
border: var(--border-in-light);
|
||||
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
|
||||
// box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
|
||||
background-color: var(--white);
|
||||
color: var(--black);
|
||||
padding: 12px 62px 12px 12px;
|
||||
@ -537,7 +542,7 @@
|
||||
border-box;
|
||||
background-image: linear-gradient(to right, var(--white), var(--white)),
|
||||
linear-gradient(90deg, rgba(255, 99, 99, 0.8), rgba(155, 77, 255, 0.8));
|
||||
box-shadow: 1px 0px 14px 0px rgb(69 80 219 / 55%);
|
||||
box-shadow: 0px 3px 22px 0px rgb(69 80 219 / 50%);
|
||||
// padding: inherit;
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
@ -588,7 +593,32 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.addConversation {
|
||||
|
||||
|
||||
|
||||
.addConversation {
|
||||
box-sizing:border-box;
|
||||
color: var(--black);
|
||||
font-weight: bold;
|
||||
height: 52px;
|
||||
width: 100%;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 14px;
|
||||
border: var(--border-in-light);
|
||||
background-color: var(--white);
|
||||
box-shadow: var(--card-shadow);
|
||||
font-size: 14px;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
// justify-content: center;
|
||||
padding: 12px 10px;
|
||||
transition: all 0.5s ease;
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.addConversationDark {
|
||||
box-sizing: border-box;
|
||||
color: var(--black);
|
||||
font-weight: bold;
|
||||
|
@ -85,6 +85,8 @@ function useSwitchTheme() {
|
||||
}, [config.theme]);
|
||||
}
|
||||
|
||||
// const isDarkTheme = config.theme === "dark";
|
||||
|
||||
function useDragSideBar() {
|
||||
const limit = (x: number) => Math.min(500, Math.max(220, x));
|
||||
|
||||
@ -200,7 +202,9 @@ function _Home() {
|
||||
}}
|
||||
>
|
||||
<button
|
||||
className={styles["addConversation"]}
|
||||
className={`${styles.addConversation} ${
|
||||
config.theme === "dark" ? styles.addConversationDark : ""
|
||||
}`}
|
||||
onClick={() => {
|
||||
createNewSession();
|
||||
setShowSideBar(false);
|
||||
|
@ -3,8 +3,8 @@
|
||||
--white: white;
|
||||
--black: rgb(48, 48, 48);
|
||||
--gray: rgb(250, 250, 250);
|
||||
--primary: rgba(78, 91, 246, 0.8);
|
||||
--second: #dadefd83;
|
||||
--primary: rgba(78, 91, 246);
|
||||
--second: rgba(40, 40, 255, .04);
|
||||
--hover-color: rgba(78, 91, 246, 0.1);
|
||||
--bar-color: rgba(0, 0, 0, 0.1);
|
||||
--theme-color: var(--gray);
|
||||
@ -12,9 +12,10 @@
|
||||
/* shadow */
|
||||
--shadow: 50px 50px 100px 10px rgb(0, 0, 0, 0.1);
|
||||
--card-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.05);
|
||||
|
||||
/* stroke */
|
||||
--border-in-light: 1px solid rgb(222, 222, 222);
|
||||
--border-in-light: 1px solid #E1E1E1;
|
||||
|
||||
--chatpop:rgba(40, 40, 255, .04);
|
||||
}
|
||||
|
||||
@mixin dark {
|
||||
@ -29,6 +30,7 @@
|
||||
--bar-color: rgba(255, 255, 255, 0.1);
|
||||
--border-in-light: 1px solid #dadefd36;
|
||||
--theme-color: var(--white);
|
||||
--chatpop:rgba(78, 91, 246, 0.4);
|
||||
}
|
||||
|
||||
.light {
|
||||
|
Loading…
Reference in New Issue
Block a user