Lint the CSS files

This commit is contained in:
oobabooga 2023-10-20 13:02:18 -07:00
parent dedbdb46c2
commit e208128d68
9 changed files with 183 additions and 212 deletions

View File

@ -25,15 +25,15 @@
} }
.circle-you, .circle-bot { .circle-you, .circle-bot {
/*You can set the size of the profile images here, but if you do, you have to also adjust the .text{padding-left: 90px} to a different number according to the width of the image which is right below here*/ /* You can set the size of the profile images here, but if you do, you have to also adjust the .text{padding-left: 90px} to a different number according to the width of the image which is right below here */
width: 135px; width: 135px;
height: 175px; height: 175px;
} }
.text { .text {
/*Change this to move the message box further left or right depending on the size of your profile pic*/ /* Change this to move the message box further left or right depending on the size of your profile pic */
padding-left: 90px; padding-left: 90px;
text-shadow: 2px 2px 2px rgb(0, 0, 0, 0.4); text-shadow: 2px 2px 2px rgb(0 0 0 / 40%);
} }
.text p { .text p {
@ -44,37 +44,37 @@
padding-left: 10px; padding-left: 10px;
font-size: 22px; font-size: 22px;
font-weight: bold; font-weight: bold;
border-top: 1px solid rgb(51, 64, 90); border-top: 1px solid rgb(51 64 90);
padding: 3px; padding: 3px;
} }
.message-body { .message-body {
position: relative; position: relative;
border-radius: 1rem; border: 1px solid rgb(255 255 255 / 45.9%);
border: 1px solid rgba(255, 255, 255, 0.459);
border-radius: 10px; border-radius: 10px;
padding: 10px; padding: 10px;
padding-top: 5px; padding-top: 5px;
/*Message gradient background color - remove the line bellow if you don't want a background color or gradient*/
/* Message gradient background color - remove the line bellow if you don't want a background color or gradient */
background: linear-gradient(to bottom, #171730, #1b263f); background: linear-gradient(to bottom, #171730, #1b263f);
} }
/*Adds 2 extra lines at the top and bottom of the message*/ /* Adds 2 extra lines at the top and bottom of the message */
.message-body:before, .message-body::before,
.message-body:after { .message-body::after {
content: ""; content: "";
position: absolute; position: absolute;
left: 10px; left: 10px;
right: 10px; right: 10px;
height: 1px; height: 1px;
background-color: rgba(255, 255, 255, 0.13); background-color: rgb(255 255 255 / 13%);
} }
.message-body:before { .message-body::before {
top: 6px; top: 6px;
} }
.message-body:after { .message-body::after {
bottom: 6px; bottom: 6px;
} }
@ -88,15 +88,15 @@
margin-bottom: 0 !important; margin-bottom: 0 !important;
font-size: 18px !important; font-size: 18px !important;
line-height: 1.428571429 !important; line-height: 1.428571429 !important;
color: rgb(243, 244, 246) !important; color: rgb(243 244 246) !important;
text-shadow: 2px 2px 2px rgb(0, 0, 0); text-shadow: 2px 2px 2px rgb(0 0 0);
} }
.message-body p em { .message-body p em {
color: rgb(138, 138, 138) !important; color: rgb(138 138 138) !important;
} }
@media screen and (max-width: 688px) { @media screen and (width <= 688px) {
.message { .message {
display: grid; display: grid;
grid-template-columns: 60px minmax(0, 1fr); grid-template-columns: 60px minmax(0, 1fr);
@ -120,7 +120,7 @@
} }
.text { .text {
padding-left: 0px; padding-left: 0;
} }
.message-body p { .message-body p {

View File

@ -14,14 +14,14 @@
.circle-you { .circle-you {
width: 50px; width: 50px;
height: 50px; height: 50px;
background-color: rgb(238, 78, 59); background-color: rgb(238 78 59);
border-radius: 50%; border-radius: 50%;
} }
.circle-bot { .circle-bot {
width: 50px; width: 50px;
height: 50px; height: 50px;
background-color: rgb(59, 78, 244); background-color: rgb(59 78 244);
border-radius: 50%; border-radius: 50%;
} }
@ -53,14 +53,14 @@
} }
.message-body p:last-child, .chat .message-body ul:last-child, .chat .message-body ol:last-child { .message-body p:last-child, .chat .message-body ul:last-child, .chat .message-body ol:last-child {
margin-bottom: 0em !important; margin-bottom: 0 !important;
} }
.dark .message-body p em { .dark .message-body p em {
color: rgb(138, 138, 138) !important; color: rgb(138 138 138) !important;
} }
.message-body p em { .message-body p em {
color: rgb(110, 110, 110) !important; color: rgb(110 110 110) !important;
font-weight: 500; font-weight: 500;
} }

View File

@ -8,14 +8,14 @@
.circle-you { .circle-you {
width: 50px; width: 50px;
height: 50px; height: 50px;
background-color: rgb(238, 78, 59); background-color: rgb(238 78 59);
border-radius: 50%; border-radius: 50%;
} }
.circle-bot { .circle-bot {
width: 50px; width: 50px;
height: 50px; height: 50px;
background-color: rgb(59, 78, 244); background-color: rgb(59 78 244);
border-radius: 50%; border-radius: 50%;
float: left; float: left;
margin-right: 10px; margin-right: 10px;
@ -47,7 +47,7 @@
.circle-you + .text { .circle-you + .text {
float: right; float: right;
background-color: rgb(0, 132, 255); background-color: rgb(0 132 255);
margin-right: 10px; margin-right: 10px;
} }
@ -91,9 +91,9 @@
} }
.dark .message-body p em { .dark .message-body p em {
color: rgb(138, 138, 138) !important; color: rgb(138 138 138) !important;
} }
.message-body p em { .message-body p em {
color: rgb(110, 110, 110) !important; color: rgb(110 110 110) !important;
} }

View File

@ -47,9 +47,9 @@
} }
.dark .message-body p em { .dark .message-body p em {
color: rgb(138, 138, 138) !important; color: rgb(138 138 138) !important;
} }
.message-body p em { .message-body p em {
color: rgb(110, 110, 110) !important; color: rgb(110 110 110) !important;
} }

View File

@ -4,42 +4,22 @@
} }
#parent #container .reply { #parent #container .reply {
background-color: rgb(214, 218, 240); background-color: rgb(214 218 240);
border-bottom-color: rgb(183, 197, 217); border-bottom: 1px solid rgb(183 197 217);
border-bottom-style: solid; border-image: none 100% 1 0 stretch;
border-bottom-width: 1px; border-left: 0 none rgb(0 0 0);
border-image-outset: 0; border-right: 1px solid rgb(183 197 217);
border-image-repeat: stretch; color: rgb(0 0 0);
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(0, 0, 0);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(183, 197, 217);
border-right-style: solid;
border-right-width: 1px;
border-top-color: rgb(0, 0, 0);
border-top-style: none;
border-top-width: 0px;
color: rgb(0, 0, 0);
display: table; display: table;
font-family: arial, helvetica, sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 13.3333px; font-size: 13.3333px;
margin-bottom: 4px; margin: 4px 0;
margin-left: 0px; overflow: hidden hidden;
margin-right: 0px; padding: 4px 2px;
margin-top: 4px;
overflow-x: hidden;
overflow-y: hidden;
padding-bottom: 4px;
padding-left: 2px;
padding-right: 2px;
padding-top: 4px;
} }
#parent #container .number { #parent #container .number {
color: rgb(0, 0, 0); color: rgb(0 0 0);
font-family: arial, helvetica, sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 13.3333px; font-size: 13.3333px;
width: 342.65px; width: 342.65px;
@ -47,23 +27,19 @@
} }
#parent #container .op { #parent #container .op {
color: rgb(0, 0, 0); color: rgb(0 0 0);
font-family: arial, helvetica, sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 13.3333px; font-size: 13.3333px;
margin-bottom: 8px; margin: 4px 0 8px;
margin-left: 0px; overflow: hidden hidden;
margin-right: 0px;
margin-top: 4px;
overflow-x: hidden;
overflow-y: hidden;
} }
#parent #container .op blockquote { #parent #container .op blockquote {
margin-left: 0px !important; margin-left: 0 !important;
} }
#parent #container .name { #parent #container .name {
color: rgb(17, 119, 67); color: rgb(17 119 67);
font-family: arial, helvetica, sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 13.3333px; font-size: 13.3333px;
font-weight: 700; font-weight: 700;
@ -71,31 +47,24 @@
} }
#parent #container .quote { #parent #container .quote {
color: rgb(221, 0, 0); color: rgb(221 0 0);
font-family: arial, helvetica, sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 13.3333px; font-size: 13.3333px;
text-decoration-color: rgb(221, 0, 0); text-decoration: underline solid rgb(221 0 0);
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-thickness: auto; text-decoration-thickness: auto;
} }
#parent #container .greentext { #parent #container .greentext {
color: rgb(120, 153, 34); color: rgb(120 153 34);
font-family: arial, helvetica, sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 13.3333px; font-size: 13.3333px;
} }
#parent #container blockquote { #parent #container blockquote {
margin: 0px !important; margin: 0 !important;
margin-block-start: 1em; margin-block: 1em 1em;
margin-block-end: 1em; margin-inline: 40px 40px;
margin-inline-start: 40px; margin: 13.33px 40px !important;
margin-inline-end: 40px;
margin-top: 13.33px !important;
margin-bottom: 13.33px !important;
margin-left: 40px !important;
margin-right: 40px !important;
} }
#parent #container .message_4chan { #parent #container .message_4chan {

View File

@ -21,15 +21,15 @@
} }
.message-body p:last-child, .chat .message-body ul:last-child, .chat .message-body ol:last-child { .message-body p:last-child, .chat .message-body ul:last-child, .chat .message-body ol:last-child {
margin-bottom: 0em !important; margin-bottom: 0 !important;
} }
.dark .message-body p em { .dark .message-body p em {
color: rgb(198, 202, 214) !important; color: rgb(198 202 214) !important;
} }
.message-body p em { .message-body p em {
color: rgb(110, 110, 110) !important; color: rgb(110 110 110) !important;
} }
.gradio-container .chat .assistant-message { .gradio-container .chat .assistant-message {
@ -47,7 +47,7 @@
} }
.gradio-container .chat .assistant-message:last-child, .gradio-container .chat .user-message:last-child { .gradio-container .chat .assistant-message:last-child, .gradio-container .chat .user-message:last-child {
margin-bottom: 0px !important; margin-bottom: 0 !important;
} }
.dark .chat .assistant-message { .dark .chat .assistant-message {

View File

@ -2,7 +2,7 @@
max-width: 600px; max-width: 600px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
background-color: rgb(31, 41, 55); background-color: rgb(31 41 55);
padding: 3em; padding: 3em;
word-break: break-word; word-break: break-word;
overflow-wrap: anywhere; overflow-wrap: anywhere;

View File

@ -145,7 +145,7 @@ div.svelte-15lo0d8 > *, div.svelte-15lo0d8 > .form > * {
color: #efefef !important; color: #efefef !important;
} }
@media screen and (max-width: 711px) { @media screen and (width <= 711px) {
.textbox_default textarea { .textbox_default textarea {
height: calc(100dvh - 259px); height: calc(100dvh - 259px);
} }
@ -163,7 +163,7 @@ div.svelte-15lo0d8 > *, div.svelte-15lo0d8 > .form > * {
} }
} }
/* Hide the gradio footer*/ /* Hide the gradio footer */
footer { footer {
display: none !important; display: none !important;
} }
@ -176,7 +176,7 @@ button {
position: fixed !important; position: fixed !important;
height: 100%; height: 100%;
z-index: 1000; z-index: 1000;
background-color: rgba(0, 0, 0, 0.5) !important; background-color: rgb(0 0 0 / 50%) !important;
margin-left: -20px; margin-left: -20px;
margin-right: -20px; margin-right: -20px;
} }
@ -256,19 +256,19 @@ audio {
.token-counter span { .token-counter span {
padding: 1px; padding: 1px;
box-shadow: 0 0 0 0.3em rgba(192,192,192,0.15), inset 0 0 0.6em rgba(192,192,192,0.075); box-shadow: 0 0 0 0.3em rgb(192 192 192 / 15%), inset 0 0 0.6em rgb(192 192 192 / 7.5%);
border: 2px solid rgba(192,192,192,0.4) !important; border: 2px solid rgb(192 192 192 / 40%) !important;
border-radius: 0.4em; border-radius: 0.4em;
} }
.no-background { .no-background {
background: var(--background-fill-primary) !important; background: var(--background-fill-primary) !important;
padding: 0px !important; padding: 0 !important;
} }
/*---------------------------------------------- /* ----------------------------------------------
Chat tab Chat tab
----------------------------------------------*/ ---------------------------------------------- */
.h-\[40vh\], .wrap.svelte-byatnx.svelte-byatnx.svelte-byatnx { .h-\[40vh\], .wrap.svelte-byatnx.svelte-byatnx.svelte-byatnx {
height: 66.67vh height: 66.67vh
} }
@ -313,10 +313,10 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
margin-right: auto; margin-right: auto;
} }
@media screen and (max-width: 688px) { @media screen and (width <= 688px) {
#chat-tab { #chat-tab {
padding-left: 0px; padding-left: 0;
padding-right: 0px; padding-right: 0;
} }
.chat-parent { .chat-parent {
@ -360,8 +360,8 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
} }
.chat .message:last-child { .chat .message:last-child {
margin-bottom: 0px !important; margin-bottom: 0 !important;
padding-bottom: 0px !important; padding-bottom: 0 !important;
} }
.message-body li:not(:last-child) { .message-body li:not(:last-child) {
@ -370,7 +370,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
} }
.message-body li:last-child { .message-body li:last-child {
margin-bottom: 0px !important; margin-bottom: 0 !important;
} }
.message-body li > p { .message-body li > p {
@ -390,7 +390,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
} }
.message-body pre:last-child { .message-body pre:last-child {
margin-bottom: 0px !important; margin-bottom: 0 !important;
} }
.message-body code { .message-body code {
@ -468,8 +468,8 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
position: absolute; position: absolute;
height: 100%; height: 100%;
background-color: var(--background-fill-primary); background-color: var(--background-fill-primary);
border: 0px !important; border: 0 !important;
border-radius: 0px; border-radius: 0;
} }
#show-controls label { #show-controls label {
@ -521,9 +521,11 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
0% { 0% {
opacity: .1; opacity: .1;
} }
20% { 20% {
opacity: 1; opacity: 1;
} }
100% { 100% {
opacity: .1; opacity: .1;
} }
@ -544,7 +546,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
bottom: 80%; bottom: 80%;
left: 0; left: 0;
background-color: var(--background-fill-secondary); background-color: var(--background-fill-secondary);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgb(0 0 0 / 50%);
z-index: 10000; z-index: 10000;
min-width: 330px; min-width: 330px;
flex-direction: column; flex-direction: column;
@ -553,7 +555,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
.hover-menu button { .hover-menu button {
width: 100%; width: 100%;
background: transparent !important; background: transparent !important;
border-radius: 0px !important; border-radius: 0 !important;
justify-content: space-between; justify-content: space-between;
margin: 0 !important; margin: 0 !important;
height: 36px; height: 36px;
@ -610,7 +612,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
} }
.old-ui #chat-input-row, #chat-input-row.bigchat { .old-ui #chat-input-row, #chat-input-row.bigchat {
padding-bottom: 0px !important; padding-bottom: 0 !important;
} }
#chat-col { #chat-col {
@ -629,9 +631,9 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
margin-top: 6px !important; margin-top: 6px !important;
} }
/*---------------------------------------------- /* ----------------------------------------------
Past chats menus Past chats menus
----------------------------------------------*/ ---------------------------------------------- */
#past-chats-row { #past-chats-row {
margin-bottom: calc( -1 * var(--layout-gap) ); margin-bottom: calc( -1 * var(--layout-gap) );
} }
@ -640,16 +642,16 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
margin-top: var(--layout-gap); margin-top: var(--layout-gap);
} }
/*---------------------------------------------- /* ----------------------------------------------
Keep dropdown menus above errored components Keep dropdown menus above errored components
----------------------------------------------*/ ---------------------------------------------- */
.options { .options {
z-index: 100 !important; z-index: 100 !important;
} }
/*---------------------------------------------- /* ----------------------------------------------
Increase the height of the evaluation table Increase the height of the evaluation table
----------------------------------------------*/ ---------------------------------------------- */
#evaluation-table table { #evaluation-table table {
max-height: none !important; max-height: none !important;
overflow-y: auto !important; overflow-y: auto !important;