Commit 9c88aa19 authored by JC Brand's avatar JC Brand

Better textarea styling. Ensure all boxes are same height.

parent dfe76e42
...@@ -78,7 +78,7 @@ span.spinner.hor_centered { ...@@ -78,7 +78,7 @@ span.spinner.hor_centered {
font-size: 100%; font-size: 100%;
border-top-right-radius: 4px; border-top-right-radius: 4px;
border-top-left-radius: 4px; border-top-left-radius: 4px;
padding: 3px 0 3px 7px; padding: 3px 0 0 3px;
} }
.chat-head-chatbox { .chat-head-chatbox {
...@@ -91,7 +91,7 @@ span.spinner.hor_centered { ...@@ -91,7 +91,7 @@ span.spinner.hor_centered {
} }
.chatroom .chat-body { .chatroom .chat-body {
height: 272px; height: 274px;
background-color: white; background-color: white;
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
...@@ -110,11 +110,12 @@ span.spinner.hor_centered { ...@@ -110,11 +110,12 @@ span.spinner.hor_centered {
.chatroom .participants { .chatroom .participants {
float: left; float: left;
height: 272px; height: 274px;
background-color: white; background-color: white;
overflow: auto; overflow: auto;
border-left: 1px solid #AAA; border-left: 1px solid #AAA;
max-width: 99px; max-width: 99px;
border-bottom-right-radius: 4px;
} }
.participants ul.participant-list li { .participants ul.participant-list li {
...@@ -131,11 +132,6 @@ ul.participant-list li.moderator { ...@@ -131,11 +132,6 @@ ul.participant-list li.moderator {
color: #FE0007; color: #FE0007;
} }
.chatroom form.sendXMPPMessage {
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
}
.chatroom .participant-list { .chatroom .participant-list {
list-style: none; list-style: none;
} }
...@@ -151,7 +147,7 @@ ul.participant-list li.moderator { ...@@ -151,7 +147,7 @@ ul.participant-list li.moderator {
padding: 0.3em; padding: 0.3em;
font-size: 13px; font-size: 13px;
color: rgb(79, 79, 79); color: rgb(79, 79, 79);
height:173px; height:180px;
width: 190px; width: 190px;
overflow-y:auto; overflow-y:auto;
border: 0; border: 0;
...@@ -159,6 +155,10 @@ ul.participant-list li.moderator { ...@@ -159,6 +155,10 @@ ul.participant-list li.moderator {
line-height: 1.3em; line-height: 1.3em;
} }
.chatroom .chat-content {
height:200px;
}
.chat-info { .chat-info {
color:#666666; color:#666666;
} }
...@@ -731,7 +731,7 @@ form.sendXMPPMessage { ...@@ -731,7 +731,7 @@ form.sendXMPPMessage {
background: white; background: white;
border: 0; border: 0;
border-top: 1px solid #BBB; border-top: 1px solid #BBB;
padding: 0.5em; padding: 0;
margin: 0; margin: 0;
position: relative; position: relative;
-webkit-border-radius: 4px; -webkit-border-radius: 4px;
...@@ -746,11 +746,30 @@ form.sendXMPPMessage { ...@@ -746,11 +746,30 @@ form.sendXMPPMessage {
width: 200px; width: 200px;
} }
.chatroom form.sendXMPPMessage {
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
height: 65px;
}
.chat-textarea {
box-sizing: border-box;
-moz-box-sizing: border-box;
border: 0;
width: 100%;
padding: 3px;
border-radius: 4px;
resize: none;
height: 65px;
}
ul.chat-toolbar { ul.chat-toolbar {
font-size: 14px; font-size: 14px;
margin: 0; margin: 0;
padding: 0 5px 0 0; padding: 0 5px 0 0;
float: right; float: right;
display: inline-block;
height: 20px;
} }
ul.chat-toolbar li { ul.chat-toolbar li {
...@@ -769,12 +788,6 @@ form#set-custom-xmpp-status { ...@@ -769,12 +788,6 @@ form#set-custom-xmpp-status {
padding: 0; padding: 0;
} }
.chat-textarea {
border: 0;
width: 194px;
height: 58px;
}
.chat-textarea-chatbox-selected { .chat-textarea-chatbox-selected {
border: 1px solid #578308; border: 1px solid #578308;
margin:0; margin:0;
......
...@@ -587,7 +587,7 @@ ...@@ -587,7 +587,7 @@
return; return;
} }
var img_src = 'data:'+this.model.get('image_type')+';base64,'+this.model.get('image'), var img_src = 'data:'+this.model.get('image_type')+';base64,'+this.model.get('image'),
canvas = $('<canvas height="35px" width="35px" class="avatar"></canvas>'), canvas = $('<canvas height="33px" width="33px" class="avatar"></canvas>'),
ctx = canvas.get(0).getContext('2d'), ctx = canvas.get(0).getContext('2d'),
img = new Image(); // Create new Image object img = new Image(); // Create new Image object
img.onload = function() { img.onload = function() {
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
<div class="chat-head chat-head-chatbox"> <div class="chat-head chat-head-chatbox">
<a class="close-chatbox-button icon-close"></a> <a class="close-chatbox-button icon-close"></a>
<a href="http://opkode.com" target="_blank" class="user"> <a href="http://opkode.com" target="_blank" class="user">
<canvas height="35px" width="35px" class="avatar" style="background-color: black"></canvas> <canvas height="33px" width="33px" class="avatar" style="background-color: black"></canvas>
<div class="chat-title"> JC Brand </div> <div class="chat-title"> JC Brand </div>
</a> </a>
<p class="user-custom-message"></p> <p class="user-custom-message"></p>
...@@ -219,6 +219,10 @@ ...@@ -219,6 +219,10 @@
<span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span> <span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
</div> </div>
<div class="chat-event">JC Brand is busy</div> <div class="chat-event">JC Brand is busy</div>
<div class="chat-message ">
<span class="chat-message-me">19:43 me:&nbsp;</span>
<span class="chat-message-content">Another message to check that scrolling works.</span>
</div>
</div> </div>
<form class="sendXMPPMessage" action="" method="post"> <form class="sendXMPPMessage" action="" method="post">
<ul class="chat-toolbar"> <ul class="chat-toolbar">
...@@ -261,6 +265,10 @@ ...@@ -261,6 +265,10 @@
<span class="chat-message-me">19:42 me:&nbsp;</span> <span class="chat-message-me">19:42 me:&nbsp;</span>
<span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span> <span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
</div> </div>
<div class="chat-message ">
<span class="chat-message-room">19:43 Obi-wan Kenobi, Jedi Master:&nbsp;</span>
<span class="chat-message-content">Another message to check that scrolling works.</span>
</div>
</div> </div>
<form class="sendXMPPMessage" action="" method="post"> <form class="sendXMPPMessage" action="" method="post">
<textarea type="text" class="chat-textarea" placeholder="Message"></textarea> <textarea type="text" class="chat-textarea" placeholder="Message"></textarea>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment