Skip to content

Commit

Permalink
docs: add dark/light theme for PanelView/ChatMessage (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp authored Jul 31, 2021
1 parent 17b50d8 commit f026221
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions docs/.vuepress/components/ChatMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ $msgbox-left: 4.2rem;
margin-left: $msgbox-left;
width: fit-content;
border-radius: 0.5rem;
background-color: white;
background-color: var(--c-bg);
word-break: break-all;
transition: background-color ease 0.3s;
.chat-message:not(.no-padding) &{
padding: 0.5rem 0.7rem;
Expand Down Expand Up @@ -165,7 +166,8 @@ $msgbox-left: 4.2rem;
border-bottom-width: 8px;
border-bottom-color: currentColor;
border-radius: 0 0 0 32px;
color: white;
color: var(--c-bg);
transition: color ease 0.3s;
}
p {
Expand All @@ -179,7 +181,9 @@ $msgbox-left: 4.2rem;
border: none;
border-radius: 0.5rem;
padding: 0.2rem 0.6rem;
color: grayscale(10%);
background-color: var(--c-bg-light);
color: var(--c-text-lighter);
transition: background-color ease 0.3s, color ease 0.3s;
}
}
Expand Down
3 changes: 2 additions & 1 deletion docs/.vuepress/components/PanelView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ $textShadow: 1px 1px 1px rgba(23, 31, 35, 0.5);
border-radius: 6px;
margin: 1rem 0;
overflow-x: auto;
background-color: #f3f6f9;
background-color: var(--c-bg-light);
transition: background-color ease 0.3s;
&.manager {
background-color: #032f62;
Expand Down

0 comments on commit f026221

Please sign in to comment.