Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Aura-Mancer committed Oct 13, 2021
1 parent c365401 commit 7eb32fb
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 0 deletions.
49 changes: 49 additions & 0 deletions example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<head>
<link rel="stylesheet" href="main_chat_style.css">
</head>

<body>
<p class="name ruby">Ruby</p>
<div class="messagerow">
<div class="recieved first block">

<p >This thing you did in CSS is really cool!</p>
<p class="timerecieved">11:50pm</p>
</div>
</div>
<div class="messagerow">
<div class="sent">
<div class="senttext first">
<p align="right">yeah. but it was pain. PAIN.</p>
<p align="right" class="timesent" >11:50pm</p>
</div>
</div>
</div>
<p class="name yang">Yang</p>
<div class="messagerow">

<div class="recieved first">

<p>Come on. Don't tell me you got yangry alone in your computer.</p>
<p class="timerecieved">11:50pm</p>
</div>
</div>
<div class="messagerow">
<div class="sent">
<div class="senttext first">
<p align="right">I have no idea waht to write here.</p>
<p align="right" class="timesent">11:50pm</p>
</div>
</div>
</div>
<div class="messagerow">
<div class="sent">
<div class="senttext">
<p align="right">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
<p align="right" class="timesent">11:50pm</p>
</div>
<p class="status" align="right"><span class="check seen">✓✓</span>Seen</p>
<!--<p class="status" align="right"><span class="check">✓</span>Sent</p>-->
</div>
</div>
</body>
105 changes: 105 additions & 0 deletions main_chat_style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
*{
margin: 0
}
p{
margin: 2pt 0;
}
.messagerow{
width: 100%;
overflow: hidden;
margin-top: 0px;
}
.senttext, .recieved{
padding: 10px;
margin: 3px 10px;
border-radius: 15px;
position: relative;
}
.sent, .recieved{
max-width: 80%;
position: relative;
}
.sent{
display: block;
float: right;
}
.recieved{
background-color: #e5e5ea;
color:black;
border-radius: 1.15rem;
line-height: 1.25;
padding: 0.5rem .875rem;
}

.senttext.first:before{
content: "";
height: 0px;
position: absolute;
border-left: 15px solid #248bf5;
border-right: 15px solid transparent;
border-top: 15px solid #248bf5;
border-bottom: 15px solid transparent;
right: -12px;
z-index: -3;
top: 0px;
width: 0px;
}
.recieved.first:before{
width: 0px;
content: "";
left: -13px;
top: 0px;
height: 0px;
z-index: -3;
position: absolute;
border-left: 15px solid transparent;
border-right: 15px solid #e5e5ea;
border-top: 15px solid #e5e5ea;
border-bottom: 15px solid transparent;
}
.senttext{
text-align: right;
background-color:#248bf5;
color:white;
padding-right: 2.5vw;
}
.senttext > p, .recieved > p{
padding: 0.4vw;
margin: 0;
word-wrap: break-word;
}
.name{
font-weight: bold;
font-size: 1.1em;
margin: 10px 0px 0px 0px;
}
.name.blake{
color: #cb11f9;
}
.name.yang{
color: #f9c63a;
}
.name.ruby{
color: #ff0000;
}
.timesent{
font-size: 0.85em;
color:#e6e6e6
}
.timerecieved{
font-size: 0.85em;
color:#4b4b4b
}
.status{
text-align: right;
margin: 0;
margin-right: 1em;
}
.check{
margin-right: 0.2em;
color:rgb(0, 191, 255);
}
.seen.check{
letter-spacing: -4pt;
margin-right: 0.45em;
}

0 comments on commit 7eb32fb

Please sign in to comment.