147 lines
2.6 KiB
CSS
147 lines
2.6 KiB
CSS
|
#chat,
|
||
|
#nickname,
|
||
|
#messages {
|
||
|
width: 180px;
|
||
|
height:90%;
|
||
|
}
|
||
|
|
||
|
#chat {
|
||
|
position: relative;
|
||
|
border: 0px solid #ccc;
|
||
|
border-radius: 15px;
|
||
|
height:100%;
|
||
|
}
|
||
|
|
||
|
#nickname,
|
||
|
#connecting {
|
||
|
position: absolute;
|
||
|
height: 90%;
|
||
|
z-index: 100;
|
||
|
left: -900px;
|
||
|
top: 0;
|
||
|
background: black;
|
||
|
text-align: center;
|
||
|
width: 750px;
|
||
|
font: 15px Georgia;
|
||
|
color: orange;
|
||
|
opacity:0.9;
|
||
|
display: block;
|
||
|
border:2px solid red;
|
||
|
}
|
||
|
|
||
|
#nickname .wrap,
|
||
|
#connecting .wrap {padding-top: 130px; }
|
||
|
#nickname input { border: 1px solid #ccc; padding: 10px; margin-top:30px;}
|
||
|
#nickname input:focus { border-color: #999; outline: 0; }
|
||
|
#nickname #nickname-err { color: #8b0000; font-size: 12px; visibility: hidden; }
|
||
|
|
||
|
.connected #connecting { display: none; }
|
||
|
|
||
|
.nickname-set #nickname {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
#messages {
|
||
|
height: 50%;
|
||
|
background: gray;
|
||
|
border: 1px solid red;
|
||
|
border-radius:10px;
|
||
|
padding:5px;
|
||
|
position:relative;
|
||
|
right:4px;
|
||
|
opacity:0.9;
|
||
|
}
|
||
|
|
||
|
#messages em { color: white; }
|
||
|
|
||
|
#messages p {
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
font: 14px Helvetica, Arial;
|
||
|
padding: 0px 10px;
|
||
|
color: white;
|
||
|
}
|
||
|
|
||
|
#messages p b {
|
||
|
display: inline-block;
|
||
|
padding-right: 10px;
|
||
|
color: white;
|
||
|
}
|
||
|
|
||
|
#messages p:nth-child(even) {
|
||
|
background: green;
|
||
|
color: white;
|
||
|
}
|
||
|
|
||
|
#messages #nicknames {
|
||
|
background: white;
|
||
|
border: 1px solid purple;
|
||
|
padding: 2px 4px 4px;
|
||
|
margin-top:12px;
|
||
|
font: 11px Helvetica;
|
||
|
color: purple;
|
||
|
min-height:10px;
|
||
|
}
|
||
|
#messages #nicknames span {
|
||
|
color: orange;
|
||
|
}
|
||
|
#messages #nicknames b {
|
||
|
display: inline-block;
|
||
|
background: gray;
|
||
|
margin-right: 5px;
|
||
|
color: white;
|
||
|
}
|
||
|
#messages #lines {
|
||
|
height: 90%;
|
||
|
overflOw: auto;
|
||
|
overflow-x: hidden;
|
||
|
overflow-y: auto;
|
||
|
}
|
||
|
#messages #lines::-webkit-scrollbar {
|
||
|
width: 6px;
|
||
|
height: 6px;
|
||
|
}
|
||
|
#messages #lines::-webkit-scrollbar-button:start:decrement,
|
||
|
#messages #lines ::-webkit-scrollbar-button:end:increment {
|
||
|
display: block;
|
||
|
height: 10px;
|
||
|
}
|
||
|
#messages #lines::-webkit-scrollbar-button:vertical:increment {
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
#messages #lines::-webkit-scrollbar-track-piece {
|
||
|
background-color: #fff;
|
||
|
-webkit-border-radius: 3px;
|
||
|
}
|
||
|
#messages #lines::-webkit-scrollbar-thumb:vertical {
|
||
|
height: 50px;
|
||
|
background-color: #ccc;
|
||
|
-webkit-border-radius: 3px;
|
||
|
}
|
||
|
#messages #lines::-webkit-scrollbar-thumb:horizontal {
|
||
|
width: 50px;
|
||
|
background-color: #fff;
|
||
|
-webkit-border-radius: 3px;
|
||
|
}
|
||
|
#send-message {
|
||
|
background: white;
|
||
|
border-radius:1px;
|
||
|
position:relative;
|
||
|
bottom:60px;
|
||
|
padding-left:15px;
|
||
|
width:80%;
|
||
|
background:transparent;
|
||
|
}
|
||
|
|
||
|
#send-message input {
|
||
|
height: 20px;
|
||
|
line-height: 20px;
|
||
|
vertical-align: middle;
|
||
|
width: 95%;
|
||
|
padding-left:15px;
|
||
|
}
|
||
|
|
||
|
#send-message input:focus {
|
||
|
outline: 0;
|
||
|
}
|