gun/examples/iris-chat/style.css
Martti Malmi 1531c54137 .
2020-01-09 15:40:31 +02:00

166 lines
2.4 KiB
CSS

* { box-sizing: border-box; }
body {
font-size: 15px;
color: #262626;
font-family: "SF Pro Text", "SF Pro Icons", system, -apple-system, system-ui, system-ui, "Helvetica Neue", Helvetica, "Lucida Grande", sans-serif;
padding: 0;
margin: 0;
}
input, button {
padding: 15px;
outline: none;
border: 0;
font-size: 15px;
border-radius: 50px;
}
input {
margin-right: 7px;
}
button {
background: #ddd;
}
button:hover, button:active, button:focus {
background: #ccc;
cursor: pointer;
}
.iris-identicon {
margin-right: 15px !important;
}
.chat {
display: flex;
flex-direction: row;
height: 100vh;
background-color: white;
}
.sidebar {
overflow-x: hidden;
display: flex;
flex-direction: column;
flex: 1 0 10em;
border-right: 1px solid #dfdfdf;
}
.main {
display: flex;
flex-direction: column;
flex: 4 0 10em;
}
/*----- Main------- */
.online-user-list {
flex:1;
background-color: #efefef;
max-height:60px;
padding: 10px 15px;
}
.message-list {
flex:1;
overflow-y: scroll;
padding: 10px 15px;
background-color: #e5ddd5;
}
.msg {
background-color: #ffffff;
margin: 0 90px 15px 0;
padding: 8px 10px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
border-radius: 0px 15px 15px 15px;
}
.msg.our {
background-color: #d7f7c5;
border-radius: 15px 0px 15px 15px;
margin: 0 0px 15px 90px;
}
.msg .time {
text-align: right;
font-size: 12px;
color: rgba(0, 0, 0, 0.45);
}
.message-form {
flex:1;
flex-direction: row;
max-height:70px;
background-color: #efefef;
padding: 10px 15px;
}
.message-form form {
display: flex;
}
.message-form input {
flex: 1;
width: auto;
}
.message-form button {
flex: none;
}
/*----- Sidebar------- */
.user-info {
flex:1;
max-height:60px;
overflow-y: hidden;
overflow-x: hidden;
padding: 10px 15px;
background-color: #efefef;
}
.user-name {
font-size: 12px;
}
.chat-list{
flex:1;
overflow-y: scroll;
}
.chat-item {
padding: 10px 15px;
overflow-x: hidden;
border-bottom: 1px solid #efefef;
cursor: pointer;
}
.chat-item .latest {
font-size: 12px;
color: rgba(0, 0, 0, 0.45);
}
.chat-item.active {
background: #eaeaea;
}
.chat-item:hover {
background: #f3f3f3;
}
.chat-item.new {
background-color: #9ee8ff;
padding: 22px 15px;
}
.chat-item.new:hover {
background-color: #99e1f7;
}
#new-chat input {
width: 200px;
}