Skip to content

Instantly share code, notes, and snippets.

@yousefdergham
Last active December 29, 2022 06:59
Show Gist options
  • Save yousefdergham/667762976c499ad16fac4dcea3c900fd to your computer and use it in GitHub Desktop.
Save yousefdergham/667762976c499ad16fac4dcea3c900fd to your computer and use it in GitHub Desktop.
open ai css
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@100;300;400;500;700;800;900&display=swap');
#website-content {
background-color: #343541;
margin: 0;
padding: 0;
box-sizing: border-box;
/* hides scrollbar */
}
#website-content::-webkit-scrollbar {
display: none;
}
#app {
background: #343541;
width: 100vw;
height: 69vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
margin: 0;
padding: 0;
box-sizing: border-box;
}
#chat_container {
flex: 1;
width: 100%;
height: 49%;
overflow-y: scroll;
display: flex;
flex-direction: column;
gap: 10px;
-ms-overflow-style: none;
scrollbar-width: none;
padding-bottom: 20px;
scroll-behavior: smooth;
}
/* hides scrollbar */
#chat_container::-webkit-scrollbar {
display: none;
}
.ai {
background: #40414f;
}
.chat {
width: 100%;
max-width: 1280px;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 10px;
}
.profile {
width: 36px;
height: 36px;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
}
.ai .profile {
background: #fff;
}
.profile img {
width: 60%;
height: 60%;
object-fit: contain;
}
.message {
flex: 1;
color: #dcdcdc;
font-size: 20px;
max-width: 100%;
overflow-x: scroll;
/*
* white space refers to any spaces, tabs, or newline characters that are used to format the CSS code
* specifies how white space within an element should be handled. It is similar to the "pre" value, which tells the browser to treat all white space as significant and to preserve it exactly as it appears in the source code.
* The pre-wrap value allows the browser to wrap long lines of text onto multiple lines if necessary.
* The default value for the white-space property in CSS is "normal". This tells the browser to collapse multiple white space characters into a single space, and to wrap text onto multiple lines as needed to fit within its container.
*/
white-space: pre-wrap;
-ms-overflow-style: none;
scrollbar-width: none;
}
/* hides scrollbar */
.message::-webkit-scrollbar {
display: none;
}
#form_Almdrasa {
width: 100%;
max-width: 1280px;
margin: 0 auto;
padding: 10px;
background: #40414f;
display: flex;
flex-direction: row;
gap: 10px;
}
#form_Almdrasa > textarea {
width: 100%;
color: #fff;
font-size: 18px;
padding: 10px;
background: transparent;
border-radius: 5px;
border: none;
outline: none;
}
#form_Almdrasa > button {
outline: 0;
border: 0;
cursor: pointer;
background: transparent;
}
#form_Almdrasa > img {
width: 30px;
height: 30px;
}
#chat-display {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
border-radius: 5px;
overflow: hidden;
}
#examples-column,
#info-column {
width: 45%;
padding: 20px;
}
#examples-column {
max-height: 300px;
}
#examples-column > h1,
h2 {
text-align: center;
}
#info-column {
display: flex;
flex-direction: column;
align-items: flex-start;
}
#info-column h2 {
font-size: 18px;
font-weight: bold;
margin: 0 0 20px 0;
color: #333333;
}
#chat-textarea {
width: 100%;
margin: 20px;
font-size: 16px;
padding: 10px;
border: 1px solid lightgray;
box-sizing: border-box;
resize: none;
}
#examples-column > ul > li {
cursor: pointer;
list-style: none;
margin: 10px 0;
padding: 10px 20px;
border: 1px solid transparent;
border-radius: 5px;
font-family: sans-serif;
font-size: 20px;
color: #fff;
display: flex;
justify-content: center;
}
#examples-column > ul > li:hover {
background-color: hsla(0, 0%, 100%, 0.05);
border-color: gray;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment