mirror of
https://github.com/Funkoala14/CreatorCenter_OOIN.git
synced 2025-06-08 02:58:14 +08:00
424 lines
11 KiB
SCSS
424 lines
11 KiB
SCSS
// @import './custom-theme.scss';
|
|
|
|
// 导入变量
|
|
@import './variables';
|
|
|
|
.inbox-list-container {
|
|
background-color: #fff;
|
|
border-radius: 0.4rem;
|
|
padding: 1.5rem;
|
|
width: 360px;
|
|
flex-shrink: 0;
|
|
.list-filter {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.875rem;
|
|
|
|
.toggle-list {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
background-color: $neutral-200;
|
|
border-radius: 0.4rem;
|
|
|
|
.toggle-option {
|
|
padding: 0.5rem 0;
|
|
cursor: pointer;
|
|
border-right: 1px solid #d4d7de;
|
|
transition: 0.25s;
|
|
flex-grow: 1;
|
|
text-align: center;
|
|
|
|
&.active {
|
|
color: white;
|
|
background-color: $primary;
|
|
&:hover {
|
|
color: white;
|
|
background-color: $primary;
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
&:hover {
|
|
color: $neutral-700;
|
|
background-color: $neutral-350;
|
|
}
|
|
&:first-child {
|
|
border-top-left-radius: 0.4rem;
|
|
border-bottom-left-radius: 0.4rem;
|
|
}
|
|
&:last-child {
|
|
border-top-right-radius: 0.4rem;
|
|
border-bottom-right-radius: 0.4rem;
|
|
border-right: 1px solid transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
.select-list {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
width: fit-content;
|
|
.select-option {
|
|
padding: 0 1rem;
|
|
cursor: pointer;
|
|
|
|
&:first-child {
|
|
border-right: 1px solid $neutral-350;
|
|
}
|
|
&.active {
|
|
color: $primary;
|
|
}
|
|
}
|
|
}
|
|
.actions {
|
|
width: fit-content;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.list-content {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
gap: 0.5rem;
|
|
|
|
.list-item {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: 0.25s;
|
|
|
|
&:hover {
|
|
background-color: $neutral-150;
|
|
}
|
|
&.active {
|
|
background-color: $neutral-200;
|
|
}
|
|
|
|
.list-item-left {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
.list-item-left-avatar {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
}
|
|
.list-item-info {
|
|
.list-message {
|
|
color: $neutral-700;
|
|
}
|
|
}
|
|
}
|
|
.list-item-right {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
gap: 0.25rem;
|
|
|
|
.list-item-right-time {
|
|
color: $neutral-600;
|
|
font-size: 0.875rem;
|
|
}
|
|
.list-item-right-badge {
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
border-radius: 50%;
|
|
background-color: #de3b40;
|
|
color: white;
|
|
text-align: center;
|
|
font-size: 0.75rem;
|
|
line-height: 1.25rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-window {
|
|
background-color: #fff;
|
|
border-radius: 0.4rem;
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
flex-grow: 1;
|
|
|
|
.chat-window-header {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
border-bottom: 1px solid $neutral-200;
|
|
|
|
.chat-window-header-left {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
|
|
.chat-window-header-left-avatar {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.chat-window-header-right {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
font-size: 0.875rem;
|
|
|
|
.platform-selection {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
|
|
.platform-selection-item {
|
|
padding: 0.5rem;
|
|
cursor: pointer;
|
|
transition: 0.25s;
|
|
border-bottom: 3px solid transparent;
|
|
font-weight: 600;
|
|
&.active {
|
|
color: $primary;
|
|
border-bottom: 3px solid $primary;
|
|
}
|
|
}
|
|
}
|
|
.actions {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
.chat-window-body {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
flex-grow: 1;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
|
|
.chat-body {
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
.message {
|
|
max-width: 80%;
|
|
margin-bottom: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 1rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.message.user {
|
|
background-color: $primary-150;
|
|
align-self: flex-end;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.message.assistant {
|
|
background-color: $neutral-200;
|
|
align-self: flex-start;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
}
|
|
.chat-window-footer {
|
|
border-top: 1px solid $neutral-200;
|
|
padding: 1rem;
|
|
.footer-input {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-textarea {
|
|
resize: none; /* 禁用右下角拖拽 */
|
|
overflow: hidden; /* 防止出现滚动条 */
|
|
line-height: 1.5;
|
|
font-size: 1rem;
|
|
border-radius: 0.5rem;
|
|
padding: 0.75rem 1rem;
|
|
box-shadow: none;
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.chat-details {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
flex-grow: 1;
|
|
background-color: #fff;
|
|
border-radius: 0.4rem;
|
|
padding: 1rem;
|
|
width: 300px;
|
|
flex-shrink: 0;
|
|
overflow-y: auto;
|
|
|
|
.chat-details-header {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
font-weight: 700;
|
|
gap: 1rem;
|
|
border-bottom: 1px solid $neutral-200;
|
|
padding-bottom: 1rem;
|
|
|
|
.chat-header-title {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.chat-detail-close-btn {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.chat-detail-header-creator {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
.chat-detail-header-creator-avatar {
|
|
width: 115px;
|
|
height: 115px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
background: $primary-150;
|
|
}
|
|
}
|
|
}
|
|
.chat-detail-header-infos {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
gap: 0.5rem;
|
|
padding: 1rem 0;
|
|
font-size: 0.875rem;
|
|
border-bottom: 1px solid $neutral-200;
|
|
|
|
.chat-detail-header-info-item {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
.chat-detail-header-info-item-label {
|
|
color: $neutral-900;
|
|
font-weight: 700;
|
|
width: 80px;
|
|
}
|
|
}
|
|
}
|
|
.chat-detail-summary {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
gap: 0.5rem;
|
|
padding: 1rem 0;
|
|
border-bottom: 1px solid $neutral-200;
|
|
.chat-detail-summary-title {
|
|
font-weight: 700;
|
|
}
|
|
.chat-detail-summary-input {
|
|
background-color: $neutral-200;
|
|
border: 0 solid transparent;
|
|
border-radius: 0.25rem;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
}
|
|
.chat-detail-generate {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
padding: 1rem 0;
|
|
.chat-detail-generate-title {
|
|
font-weight: 700;
|
|
}
|
|
.chat-detail-generate-input {
|
|
background-color: $neutral-200;
|
|
border: 0 solid transparent;
|
|
border-radius: 0.25rem;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
.generate-form {
|
|
position: relative;
|
|
.generate-input {
|
|
}
|
|
.submit-btn {
|
|
position: absolute;
|
|
bottom: 0.5rem;
|
|
right: 0.75rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.template-list {
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
overflow-y: auto;
|
|
height: calc(100% - 85px);
|
|
padding-bottom: 1rem;
|
|
|
|
.template-item {
|
|
background-color: #fff;
|
|
border-radius: 6px;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
gap: .875rem;
|
|
box-shadow: 0px 0px 1px #171a1f12, 0px 0px 2px #171a1f1F;
|
|
max-height: 380px;
|
|
height: fit-content;
|
|
|
|
.template-item-name {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: $primary;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.template-item-item {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
font-size: 0.875rem;
|
|
align-items: flex-start;
|
|
.label {
|
|
width: 95px;
|
|
font-weight: 600;
|
|
color: $neutral-600;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.value {
|
|
color: $neutral-900;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
.template-platform {
|
|
.value {
|
|
font-size: 0.875rem;
|
|
background: $neutral-200;
|
|
line-height: 1.5rem;
|
|
padding: 0 6px;
|
|
border-radius: 12px;
|
|
color: $neutral-700;
|
|
}
|
|
}
|
|
}
|
|
}
|