Skip to content

Commit

Permalink
responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
faireprogram committed Mar 4, 2016
1 parent 2a2f282 commit 144eeff
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
6 changes: 5 additions & 1 deletion public/chat/chatController.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@
$scope.selectMojo = function(num) {
$scope.inputMsg = ($scope.inputMsg || '') + '[#' + num + ']';
$('#msgAreadID').focus();
}
};

$scope.toggle = function(show) {
$scope.mojoShow = show;
};

}

Expand Down
2 changes: 1 addition & 1 deletion public/directives/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Uncomment to style it like Apple Watch
var opts = {
chart: {
type: 'line',
type: 'column',
options3d: {
enabled: false,
alpha: 10,
Expand Down
8 changes: 7 additions & 1 deletion public/stylesheets/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ form > div {
background: #fff;
border-radius: 10px;
opacity: 0.7;
max-width: 60%;
word-wrap: break-word;
}

/*.message > p:before {
Expand Down Expand Up @@ -286,7 +288,7 @@ form > div {

.message.me > p:after {
bottom: -10px;
left: calc(100%- 25px);
left: calc(100% - 25px);
right: auto;
}

Expand Down Expand Up @@ -701,3 +703,7 @@ input[readonly] {
.unactive {
text-decoration: underline;
}

.container-fluid {
width: 100%;
}
10 changes: 5 additions & 5 deletions public/template/chatroom/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="col-md-10 row-xs-12" ng-controller="ChatWindowCtrl">
<!-- Panel -->
<div class="row-xs-11 realContainer">
<div class="mogiContainer">
<div class="mogiContainer" ng-show="mojoShow">
<ul ng-repeat="(n, rows) in mogs">
<li ng-repeat="mogNum in rows" ng-click="selectMojo(mogNum)"><img src="/resource/expression/{{mogNum}}.gif"/></li>
</ul>
Expand All @@ -50,18 +50,18 @@
<div class="col-md-8 col-md-push-4 row-xs-12">
<!-- Input Box -->
<div class="row row-xs-12">
<div class="col-md-10 row-xs-12">
<div class="col-md-10 col-xs-10 row-xs-12">
<!-- <input type="text" class="form-control row-xs-12 rightbottom"> -->
<input type="text" id="msgAreadID" class="form-control" placeholder="What's in your mind ?" ng-model="inputMsg" ng-keydown="$event.which === 13 && sendMsg(inputMsg)">
</div>
<div class="col-md-1 row-xs-12">
<div class="col-md-1 col-xs-1 row-xs-12">
<div class="row-xs-12">
<span class="glyphicon glyphicon-plus center close">
<span class="glyphicon glyphicon-plus center close" ng-click="toggle(!mojoShow)">
</span>
</div>

</div>
<div class="col-md-1 row-xs-12">
<div class="col-md-1 col-xs-1 row-xs-12">
<div class="row-xs-12" >
<span class="glyphicon glyphicon-ok center close" aria-hidden="true" ng-click="sendMsg(inputMsg)" >
</span>
Expand Down
2 changes: 1 addition & 1 deletion public/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
h1 {
font-family: 'Lato', sans-serif;
height: 100%;
font-weight: 400;
font-weight: 400;
/* The html and body elements cannot have any padding or margin. */
margin: 0;
font-size: 14px;
Expand Down

0 comments on commit 144eeff

Please sign in to comment.