add light theme for chat messages (#1016)

This commit is contained in:
Murilo Brito 2025-08-20 05:14:46 -03:00 committed by GitHub
parent af250d7a61
commit 7a6bbe3488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 231 additions and 27 deletions

View file

@ -1,6 +1,66 @@
@import '../../utils/colors.less';
@import '../../utils/fonts.less';
.theme-light {
.chat-message .message-content {
color: @dark;
blockquote {
border-left: 5px solid @dark-blue-40;
}
a[href] {
color: @dark-blue;
}
a[href]:hover,
a[href].active {
font-weight: bold;
text-shadow: 0 0 8px @dark-blue;
}
button {
background: transparent;
border: 1px solid @dark-blue;
color: @dark-blue;
&:hover {
background: @light-black;
color: @dark-blue;
}
&:disabled {
background: transparent;
color: @dark-blue;
&:hover {
background: transparent;
color: @dark-blue;
}
}
&.reverted {
background: @dark-blue-10;
color: @dark-blue;
border: 1px solid @dark;
&:hover {
background: transparent;
color: @dark-blue;
}
img {
border-radius: 3px;
}
}
}
.roll-buttons button {
height: 40px;
font-family: @font-body;
font-weight: bold;
}
}
}
.chat-message.dh-chat-message {
.message-content {
padding: 0;
@ -17,7 +77,7 @@
.message-content {
padding: 0 8px;
font-family: @font-body;
color: light-dark(@dark, @beige);
color: @beige;
blockquote {
border-left: 5px solid light-dark(@dark-blue-40, @golden-40);
@ -34,15 +94,15 @@
}
button {
background: light-dark(transparent, @golden);
border: 1px solid light-dark(@dark-blue, @dark-blue);
color: light-dark(@dark-blue, @dark-blue);
background: @golden;
border: 1px solid @dark-blue;
color: @dark-blue;
outline: none;
box-shadow: none;
&:hover {
background: light-dark(@light-black, @dark-blue);
color: light-dark(@dark-blue, @golden);
background: @dark-blue;
color: @golden;
}
&.glow {
@ -50,24 +110,24 @@
}
&:disabled {
background: light-dark(transparent, @golden);
color: light-dark(@dark-blue, @dark-blue);
background: @golden;
color: @dark-blue;
opacity: 0.6;
cursor: not-allowed;
&:hover {
background: light-dark(transparent, @golden);
color: light-dark(@dark-blue, @dark-blue);
background: @golden;
color: @dark-blue;
}
}
&.reverted {
background: light-dark(@dark-blue-10, @golden-10);
color: light-dark(@dark-blue, @golden);
border: 1px solid light-dark(@dark, transparent);
background: @golden-10;
color: @golden;
border: 1px solid transparent;
&:hover {
background: light-dark(transparent, @golden);
color: light-dark(@dark-blue, @dark-blue);
background: @golden;
color: @dark-blue;
}
img {
border-radius: 3px;