2017-12-04 18:13:49 +00:00
|
|
|
/* Card container */
|
|
|
|
#CONTAINER.message{
|
2017-12-05 21:30:03 +00:00
|
|
|
height: calc( 100% - 6.3em );
|
|
|
|
|
2017-12-04 18:13:49 +00:00
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
|
|
|
|
2017-12-05 22:42:18 +00:00
|
|
|
#CONTAINER.message div,
|
|
|
|
#CONTAINER.message div[data-noauthor='1']{ /* Message item */
|
2017-12-04 18:13:49 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: auto;
|
|
|
|
|
2017-12-05 22:33:24 +00:00
|
|
|
margin: 0 1.5em;
|
|
|
|
margin-top: 2.5em;
|
2017-12-04 18:13:49 +00:00
|
|
|
padding: 1em;
|
|
|
|
|
|
|
|
align-self: flex-start;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
color: #222;
|
|
|
|
}
|
|
|
|
|
2017-12-05 22:42:18 +00:00
|
|
|
#CONTAINER.message div[data-noauthor='0']{
|
|
|
|
margin-top: .5em;
|
|
|
|
}
|
|
|
|
|
2017-12-04 18:13:49 +00:00
|
|
|
#CONTAINER.message div.me{ /* Message Item (self) */
|
2017-12-05 22:07:42 +00:00
|
|
|
/* background: #13d89d; */
|
2017-12-04 18:13:49 +00:00
|
|
|
align-self: flex-end;
|
2017-12-05 22:10:54 +00:00
|
|
|
margin: .5em 1.5em;
|
2017-12-04 18:13:49 +00:00
|
|
|
}
|
|
|
|
|
2017-12-05 21:30:03 +00:00
|
|
|
#CONTAINER.message div.end-pad{
|
|
|
|
padding: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2017-12-04 18:13:49 +00:00
|
|
|
#CONTAINER.message div span.author{ /* Message author */
|
2017-12-05 22:07:42 +00:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: -1.8em;
|
|
|
|
left: .5em;
|
2017-12-04 18:13:49 +00:00
|
|
|
|
|
|
|
background: #eee;
|
|
|
|
|
2017-12-05 22:07:42 +00:00
|
|
|
color: #888;
|
2017-12-04 18:13:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#CONTAINER.message div.me span.author{ /* Hide message author if self */
|
|
|
|
display: none;
|
2017-12-05 12:32:42 +00:00
|
|
|
}
|
|
|
|
|
2017-12-05 21:53:37 +00:00
|
|
|
#CONTAINER.message div span span.code{ /* Code block */
|
2017-12-05 21:30:03 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
padding: .2em .3em;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
background: #f0f0f0;
|
|
|
|
|
|
|
|
font-family: 'Liberation Mono';
|
|
|
|
font-size: .9em;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-12-05 21:53:37 +00:00
|
|
|
#CONTAINER.message div span span.utf8{ /* Smileys */
|
|
|
|
font-family: 'Liberation Mono';
|
|
|
|
font-size: 1.3em;
|
|
|
|
|
|
|
|
color: #ea921f;
|
|
|
|
}
|
|
|
|
|
|
|
|
#CONTAINER.message div span span.utf8.bl{ color: #338be0; }
|
|
|
|
#CONTAINER.message div span span.utf8.br{ color: #773c22; }
|
|
|
|
|
2017-12-05 12:32:42 +00:00
|
|
|
|
|
|
|
#CONTAINER.message form.msg-input{ /* Message Input */
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
top: calc( 100% - 3em );
|
|
|
|
left: 15em;
|
2017-12-05 14:12:29 +00:00
|
|
|
width: calc( 100% - 15em - 2*1px );
|
2017-12-05 12:32:42 +00:00
|
|
|
height: 3em;
|
|
|
|
|
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
overflow: hidden;
|
2017-12-05 17:16:43 +00:00
|
|
|
|
|
|
|
transition: left .2s ease-in-out,
|
|
|
|
width .2s ease-in-out;
|
2017-12-05 12:32:42 +00:00
|
|
|
}
|
|
|
|
|
2017-12-05 14:12:29 +00:00
|
|
|
#WRAPPER.min #CONTAINER.message form.msg-input{
|
|
|
|
left: 3.5em;
|
|
|
|
width: calc( 100% - 3.5em - 2*1px );
|
|
|
|
}
|
|
|
|
|
2017-12-05 12:32:42 +00:00
|
|
|
#CONTAINER.message form.msg-input input{ /* form Input */
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2017-12-05 14:12:29 +00:00
|
|
|
width: calc( 100% - 2em - 3em );
|
2017-12-05 12:32:42 +00:00
|
|
|
height: calc( 100% - 2*.5em );
|
|
|
|
|
|
|
|
padding: .5em 1em;
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
font-size: inherit;
|
2017-12-05 17:06:42 +00:00
|
|
|
font-family: inherit;
|
2017-12-05 12:32:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#CONTAINER.message form.msg-input button{ /* form send button */
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2017-12-05 14:12:29 +00:00
|
|
|
left: calc( 100% - 3em );
|
2017-12-05 12:32:42 +00:00
|
|
|
width: 3em;
|
|
|
|
height: 3em;
|
|
|
|
|
|
|
|
background: url('/image/container/send-msg.svg@777777') center center no-repeat;
|
|
|
|
background-size: 50%;
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
font-size: inherit;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
#CONTAINER.message form.msg-input button:hover{
|
|
|
|
background-image: url('/image/container/send-msg.svg@000000');
|
|
|
|
}
|