UNPKG

reactjs-chatapp

Version:

Most popular chat component for react!

285 lines (226 loc) 4.16 kB
.container{ /* width: 40%; */ margin: auto; height: 50%; } .container.center { float: left; } .RoomsList .ulRooms { list-style: none; display: inline; color: darkred; font-family: 'cyberfunkregular'; } .ulRooms li a{ text-decoration: none; color: darkred; } .ulRooms li a:hover{ text-decoration: none; color: white; cursor: pointer; } .RoomsList { padding: 0px 5px 0px 2px; /* background-color: cyan;*/ border: 1px solid darkred; } .UsersList .ulUsers { list-style: none; display: inline; color: darkred; font-family: 'cyberfunkregular'; } .UsersList { padding: 0px 5px 0px 2px; /*background-color: red;*/ overflow: auto; height: 270px; width: 100px; border: 1px solid darkred; } .UsersList .ulUsers li { padding: 5px 0px 5px 0px; } .UsersList .ulUsers li:hover { color: white; cursor: pointer; /* border-bottom: 1px solid darkred; */ } .ulUsers li a{ text-decoration: none; color: darkred; } .ulUsers li a:hover{ text-decoration: none; color: white; cursor: pointer; } #box{ min-height: 200px; padding: 10px; margin: auto; background-color: black; overflow-y: scroll; height: 300px; /* max-height: 600px; */ word-wrap: break-word; } div#box p { text-align: center; } #box li{ list-style: none; text-align: left; } .ChatApp{ background-color: black; border: 3px darkred; border-style: ridge; -webkit-box-shadow: 5px 5px 15px rgba(0,0,0,0.4); -moz-box-shadow: 5px 5px 15px rgba(0,0,0,0.4); width: 35%; position: absolute; bottom: 0; right: 10%; } /*.chatitem ul li:last-child { background: #ff0000; }*/ /* Not sure what looks best #box li:nth-child(odd) { background: #fffff; }*/ .ChatUsername li { padding: 0px 5px 0px 0px; text-transform: capitalize; font-weight: bold; color: darkred; font-family: 'cyberfunkregular'; } .chatMessage li { font-family: 'cyberfunkregular'; color:white; } .chatitem ul li { float: left ; } .chatitem ul { display: inline; } p{ color:white; } input.chatuserinput { z-index: 10; box-sizing: border-box; /*height: 100%;*/ padding: 10px; padding-right: 20px; background: #fff; outline: none; border-radius: 4px 4px 0 0; line-height: 150%; overflow-x: hidden; overflow-y: auto; word-wrap: break-word; cursor: text; width: 100%; } .message{ width: 100% !important; margin-right: 10px !important; height: 40px !important; /* float:left; */ margin-top: 10px !important; margin-bottom: 10px !important; border-radius: 5px; border: 1px solid #97a5a0; } #messages{ margin: 10px; } .button { cursor: pointer; background-color: #a5aeac; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; border: 1px solid #97a5a0; color: #ffffff; font-size: 15px; font-weight: bold; padding: 15px 33px; text-decoration: none; margin-top: 10px; margin-left: 10px; display: none; } .button:hover { background-color:#7e8684; } .chatNavbar{ font-family: 'cyberfunkregular'; font-size: 10px; background-color: darkred; height: 50px; padding-top: 10px; } .chatNavbar.center { height: 70px; } .chatNavbar.center h2 { color:white; } .center{ text-align: center; } .left{ text-align: left; } .right{ text-align: right; } #auth{ position: absolute; left: 50%; margin-left: -100px; width: 300px; height: 160px; z-index: 9999; } #overlay{ background: #fff; z-index: 100; opacity: .8; position: absolute; top: 0; left: 0; width: 100%; height: 100%; } #ok{ padding: 0 30px; } .lowerbox { float: right; width: 100%; } .select { float: left; } form { display: inline-block; width: 80%; } .arr { color: darkred; font-size: 50px; } .arr:hover { color: white; font-size: 50px; cursor: pointer; }