Skip to content

Instantly share code, notes, and snippets.

@yushimatenjin
Created April 27, 2022 01:45
Show Gist options
  • Save yushimatenjin/967cc4601fb820e9ce86895fd6b83d9e to your computer and use it in GitHub Desktop.
Save yushimatenjin/967cc4601fb820e9ce86895fd6b83d9e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.chat{
width: 300px;
padding: 0.5rem;
border-radius: 0.5rem;
border: 1px solid;
background: white;
}
.header{
display:flex;
flex-direction:row;
justify-content:center;
border-bottom: 1px solid;
}
.header__title{
font-weight:bold;
}
.header__close{
font-weight: bold;
position: relative;
left: 125px;
}
.body{
height: 300px;
}
.message_userName{
color: blue;
}
.message_userName:after{
content: ":";
}
.form{
display: flex;
flex-direction:row;
align-items:center;
justify-content:center;
}
.input-text{
width: 200px;
}
<div class="chat animate__animated animate__bounce">
<div class="header">
<span class="header__title">Chat</span>
<span class="header__close">×</span>
</div>
<div class="body">
<div class="message">
<span class="message_userName">YoFluffyyy</span>
<span class="message_content">hey shahz I hope you are having a</span>
</div>
<div class="message">
<span class="message_userName">YoFluffyyy</span>
<span class="message_content">hey shahz I hope you are having a</span>
</div>
<div class="message">
<span class="message_userName">YoFluffyyy</span>
<span class="message_content">hey shahz I hope you are having a</span>
</div>
</div>
<div class="form">
<input type="text" placeholder="default" class="input-text" />
<input type="button" value="send" class="send" />
</div>
</div>
.chat {
width: 300px;
padding: 0.5rem;
border-radius: 0.5rem;
border: 1px solid;
background: white;
}
.header {
display: flex;
flex-direction: row;
justify-content: center;
border-bottom: 1px solid;
}
.header__title {
font-weight: bold;
}
.header__close {
font-weight: bold;
position: relative;
left: 125px;
}
.body {
height: 300px;
}
.message_userName {
color: blue;
}
.message_userName:after {
content: ":";
}
.form {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.input-text {
width: 200px;
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment