mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-07 07:33:47 +00:00
UI: Improve message text contrast
This commit is contained in:
parent
7fed60f90a
commit
ffea8f282e
3 changed files with 15 additions and 6 deletions
|
|
@ -13,7 +13,7 @@
|
|||
line-height: 28px !important;
|
||||
}
|
||||
|
||||
.dark .chat .message-body :is(p,li,h1,h2,h3,h4,h5,h6),
|
||||
.dark .chat .message-body :is(p,li),
|
||||
.dark .chat .message-body em:not(:is(h1,h2,h3,h4,h5,h6,b,strong) em),
|
||||
.dark .chat .message-body q:not(:is(h1,h2,h3,h4,h5,h6,b,strong) q) {
|
||||
color: #d1d5db !important;
|
||||
|
|
|
|||
17
css/main.css
17
css/main.css
|
|
@ -436,15 +436,24 @@ audio {
|
|||
.dark .message-body h4,
|
||||
.dark .message-body h5,
|
||||
.dark .message-body h6 {
|
||||
color: white !important;
|
||||
color: #e8e8e8 !important;
|
||||
}
|
||||
|
||||
.dark .message-body blockquote {
|
||||
border-left-color: rgb(255 255 255 / 30%);
|
||||
}
|
||||
|
||||
.message-body h1,
|
||||
.message-body h2,
|
||||
.message-body h3,
|
||||
.message-body h4,
|
||||
.message-body h5,
|
||||
.message-body h6 {
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
.message-body h1 {
|
||||
font-weight: 800;
|
||||
font-weight: 700;
|
||||
font-size: 2.25em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.8888889em;
|
||||
|
|
@ -476,13 +485,13 @@ audio {
|
|||
}
|
||||
|
||||
.message-body h5 {
|
||||
font-weight: normal;
|
||||
font-weight: 600;
|
||||
font-size: 1em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.message-body h6 {
|
||||
font-weight: normal;
|
||||
font-weight: 600;
|
||||
font-size: 1em;
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ if not shared.args.old_colors:
|
|||
background_fill_primary_dark='var(--darker-gray, #1C1C1D)',
|
||||
body_background_fill="white",
|
||||
block_background_fill="transparent",
|
||||
body_text_color='rgb(64, 64, 64)',
|
||||
body_text_color='#1a1a1a',
|
||||
button_secondary_background_fill="white",
|
||||
button_secondary_border_color="var(--border-color-primary)",
|
||||
block_title_text_color='*body_text_color',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue