-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First off, we're going to set up a quick skeleton of what we're going to
be looking at. We're not super worried about seeing online users at the moment; all we want to implement is basic chat. So our template contains just enough to display chat and give us a field to type our chat into. We use a bit of bootstrap magic and some simple styles of our own to fix the message and post buttons to the bottom of the screen. We also style the ordered list tag that we'll be using to display chats so that it has the traditional chat content layout. Now we have our base view to work with; our next step is the backend logic. Note that we won't be hooking anything up with the client side yet; we're just going to set up the comet interactions that will post and receive messages. We'll do the actual form interactions and knockout bindings after all the infrastructure is set up on both ends.
- Loading branch information
1 parent
35c7d0c
commit e20dbdd
Showing
3 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
html, body { | ||
height: 100%; | ||
} | ||
|
||
#main { | ||
padding-top: 40px; | ||
} | ||
|
||
/* Chat display. */ | ||
#chat-contents { | ||
list-style-type: none; | ||
|
||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
/* Chat fields and form. */ | ||
form.chat { | ||
position: fixed; | ||
|
||
bottom: 0; | ||
left: 20px; | ||
right: 20px; | ||
|
||
width: auto; | ||
} | ||
|
||
#chat-message { | ||
height: auto; | ||
|
||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-o-box-sizing: border-box; | ||
-ms-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters