logancyang_obsidian-copilot/styles.css
2023-04-01 23:27:45 -07:00

156 lines
No EOL
2.6 KiB
CSS

/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.chat-container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow: hidden; /* Fix overflow and can't scroll up */
}
.bottom-container {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
width: 100%;
flex: 0 0 auto;
box-sizing: border-box;
}
.chat-icons-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 8px 8px 0;
}
.chat-icons-container .icon {
cursor: pointer;
margin-right: 8px;
}
.chat-icons-container .icon:last-child {
margin-right: 0;
}
.regenerate-button {
display: flex;
align-items: center;
background-color: transparent;
border: 1px solid #3a3a3a;
border-radius: 4px;
cursor: pointer;
padding: 4px 8px;
font-size: 12px;
margin-right: 12px;
}
.regenerate-button .icon {
margin-right: 8px;
}
.icon-only-button {
display: flex;
align-items: center;
background-color: transparent;
border: none;
cursor: pointer;
padding: 4px 8px;
margin-right: 12px;
}
.icon-only-button .icon {
margin-right: 8px;
}
.icon-only-button:last-child .icon {
margin-right: 0;
}
.chat-input-container {
display: flex;
padding: 8px;
width: 100%;
box-sizing: border-box;
}
.chat-input-container textarea {
flex-grow: 1;
margin-right: 8px;
margin-bottom: 32px;
max-height: 200px;
resize: vertical;
overflow: auto;
width: 100%;
min-height: 50px; /* Add this line */
}
.chat-messages {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
flex: 1;
overflow-y: auto;
padding: 8px;
width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
font-size: 14px;
box-sizing: border-box;
scroll-behavior: smooth;
}
.chat-message.user {
background-color: #3a3a3a;
color: #ffffff;
border-radius: 5px;
padding: 8px;
margin-bottom: 8px;
width: 100%;
}
.chat-message.chatgpt {
border-radius: 5px;
padding: 8px;
margin-bottom: 8px;
width: 100%;
}
.chat-message {
position: relative;
}
.chat-message-content {
display: inline;
}
.clipboard-button {
background: transparent;
border: none;
cursor: pointer;
position: absolute;
top: 4px;
right: 4px;
padding: 4px;
z-index: 10;
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
.clipboard-button .icon {
transform: scale(0.7);
}
.chat-message:hover .clipboard-button {
opacity: 1;
}