444 lines
6.8 KiB
CSS
444 lines
6.8 KiB
CSS
html, body {
|
|
margin:0;
|
|
padding:0;
|
|
height:100%;
|
|
width:100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.fullScreen {
|
|
height:100%;
|
|
width:100%;
|
|
}
|
|
|
|
/* Top-level layout style: sidepanel + main view */
|
|
#mountPoint {
|
|
padding-left: 0;
|
|
transition: all 0.5s ease;
|
|
height: 100%;
|
|
}
|
|
|
|
#mountPoint.toggled {
|
|
padding-left: 30em;
|
|
}
|
|
|
|
#sidepanel-wrapper {
|
|
position: fixed;
|
|
left: 30em;
|
|
width: 0;
|
|
height: 100vh;
|
|
margin-left: -30em;
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
#mountPoint.toggled #sidepanel-wrapper {
|
|
width: 30em;
|
|
}
|
|
|
|
#page-content-wrapper {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
}
|
|
|
|
#mountPoint.toggled #page-content-wrapper {
|
|
position: absolute;
|
|
margin-right: -30em;
|
|
}
|
|
|
|
.sidepanel-nav {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 30em;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
@media(min-width:768px) {
|
|
#mountPoint {
|
|
padding-left: 30em;
|
|
}
|
|
|
|
#mountPoint.toggled {
|
|
padding-left: 0;
|
|
}
|
|
|
|
#sidepanel-wrapper {
|
|
width: 30em;
|
|
}
|
|
|
|
#mountPoint.toggled #sidepanel-wrapper {
|
|
width: 0;
|
|
}
|
|
|
|
#page-content-wrapper {
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
|
|
#mountPoint.toggled #page-content-wrapper {
|
|
position: relative;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
/* END of top-level layout */
|
|
|
|
/* Making the alert box less tall */
|
|
.alert-block {
|
|
padding-top: 0.25em;
|
|
padding-bottom: 0.25em;
|
|
margin-bottom: 3px;
|
|
height: 2.3em;
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: #FCC;
|
|
border-color: #C99;
|
|
color: #600;
|
|
}
|
|
|
|
.avatar {
|
|
width: 32pt;
|
|
height: auto;
|
|
}
|
|
|
|
.navbar {
|
|
height: 64px;
|
|
margin-bottom: 0.2em;
|
|
}
|
|
|
|
.navbar .avatar {
|
|
margin-left: 4pt;
|
|
margin-right: 4pt;
|
|
margin-top: 8pt;
|
|
}
|
|
|
|
.label-as-badge {
|
|
border-radius: 1em;
|
|
margin-left: 0.5em;
|
|
}
|
|
|
|
.contactBox {
|
|
overflow: hidden;
|
|
}
|
|
|
|
#newTopicInput {
|
|
z-index: 3;
|
|
background-color: #FFF;
|
|
padding-bottom: 0.25em;
|
|
}
|
|
|
|
.contactList {
|
|
z-index: 1;
|
|
padding: 9.5em 0em 0.5em 0em;
|
|
margin-top: -9em;
|
|
height: 100vh;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.contactList li {
|
|
padding: 0.25em;
|
|
}
|
|
|
|
.contactList li:hover {
|
|
background-color: #EEE;
|
|
}
|
|
|
|
.contact {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.online, .offline {
|
|
font-size: 14pt;
|
|
}
|
|
|
|
.online {
|
|
color: #8B7;
|
|
}
|
|
|
|
.offline {
|
|
color: #999;
|
|
}
|
|
|
|
.fullHeight {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.fullViewPort {
|
|
height: 99vh;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.col-lg-12 {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
#chatTitle {
|
|
z-index: 3;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
height: 64px;
|
|
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
#messagesPanel {
|
|
overflow-y: scroll;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
background-image: url("../img/ignasi_pattern_s.png");
|
|
}
|
|
|
|
#messagesView {
|
|
padding-top: 70px;
|
|
}
|
|
|
|
#sendMessagePanel {
|
|
position: absolute;
|
|
bottom: 0;
|
|
box-shadow: 0px -1px 2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
#dummyView {
|
|
display:flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #E9E9FF;
|
|
}
|
|
|
|
/*
|
|
.chatBox {
|
|
list-style: none;
|
|
padding: 1.5em 0 1.5em;
|
|
position: relative;
|
|
}
|
|
|
|
.chatBox > li {
|
|
margin-bottom: 1em;
|
|
position: relative;
|
|
}
|
|
|
|
.chatBox > li:before,
|
|
.chatBox > li:after {
|
|
content: " ";
|
|
display: table;
|
|
}
|
|
|
|
.chatBox > li:after {
|
|
clear: both;
|
|
}
|
|
|
|
.chatBox > li > .chatBox-panel {
|
|
max-width: 90%;
|
|
float: right;
|
|
background-color: #DFD;
|
|
border: 1px solid #CDC;
|
|
border-radius: 4px;
|
|
padding: 1em;
|
|
position: relative;
|
|
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.chatBox > li > .chatBox-panel:before {
|
|
position: absolute;
|
|
top: 9px;
|
|
right: -12px;
|
|
display: inline-block;
|
|
border-top: 12px solid transparent;
|
|
border-left: 12px solid #CCC;
|
|
border-right: 0px solid #CCC;
|
|
border-bottom: 12px solid transparent;
|
|
content: " ";
|
|
}
|
|
|
|
.chatBox > li > .chatBox-panel:after {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: -11px;
|
|
display: inline-block;
|
|
border-top: 11px solid transparent;
|
|
border-left: 11px solid #DFD;
|
|
border-right: 0 solid #DDF;
|
|
border-bottom: 11px solid transparent;
|
|
content: " ";
|
|
}
|
|
|
|
.chatBox > li.chatBox-inverted > .chatBox-panel {
|
|
background-color: #DDF;
|
|
border: 1px solid #CCD;
|
|
float: left;
|
|
}
|
|
|
|
.chatBox > li.chatBox-inverted > .chatBox-panel:before {
|
|
border-left-width: 0;
|
|
border-right-width: 12px;
|
|
left: -12px;
|
|
right: auto;
|
|
}
|
|
|
|
.chatBox > li.chatBox-inverted > .chatBox-panel:after {
|
|
border-left-width: 0;
|
|
border-right-width: 11px;
|
|
left: -11px;
|
|
right: auto;
|
|
}
|
|
|
|
.chatBox .timestamp {
|
|
padding-left: 3em;
|
|
}
|
|
|
|
.chatBox-body > p,
|
|
.chatBox-body > ul {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.chatBox-body > p + p {
|
|
margin-top: 0.5em;
|
|
}
|
|
*/
|
|
|
|
/* CSS talk bubble */
|
|
.chat-box {
|
|
list-style: none;
|
|
padding: 0 0 5em 0;
|
|
}
|
|
|
|
.chat-box li {
|
|
display: flex;
|
|
margin: 0;
|
|
padding: 0;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.chat-box li.right {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.chat-box .bubble {
|
|
position: relative;
|
|
max-width: 32em;
|
|
height: auto;
|
|
padding: 1.5em 0 1.5em;
|
|
background-color: #ef9a9a;
|
|
border: 1px solid #e53935;
|
|
|
|
margin: 0;
|
|
padding: 0.5em;
|
|
text-align: left;
|
|
}
|
|
|
|
.chat-box li.single {
|
|
margin-top: 0.5em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.chat-box li.single .bubble {
|
|
border-radius: 0.5em;
|
|
-webkit-border-radius: 0.5em;
|
|
-moz-border-radius: 0.5em;
|
|
}
|
|
|
|
.chat-box li.first {
|
|
margin-top: 0.5em;
|
|
margin-bottom: 0.05em;
|
|
}
|
|
|
|
.chat-box li.first .bubble {
|
|
border-radius: 0.5em 0.5em 0 0;
|
|
-webkit-border-radius: 0.5em 0.5em 0 0;
|
|
-moz-border-radius: 0.5em 0.5em 0 0;
|
|
}
|
|
|
|
.chat-box li.middle {
|
|
margin-top: 0.05em;
|
|
margin-bottom: 0.05em;
|
|
}
|
|
|
|
.chat-box li.middle .bubble {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.chat-box li.last {
|
|
margin-top: 0.05em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.chat-box li.last .bubble {
|
|
border-radius: 0 0 0.5em 0.5em;
|
|
-webkit-border-radius: 0 0 0.5em 0.5em;
|
|
-moz-border-radius: 0 0 0.5em 0.5em;
|
|
}
|
|
|
|
/* Left triangle placed bottom left flush. */
|
|
.chat-box li.left .tip::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
right: auto;
|
|
left: -11px;
|
|
top: auto;
|
|
bottom: -1px; /* border-width */
|
|
border: 10px solid;
|
|
border-color: transparent transparent #e53935 transparent;
|
|
}
|
|
.chat-box li.left .tip::after{
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
right: auto;
|
|
left: -9px;
|
|
top: auto;
|
|
bottom: 0;
|
|
border: 9px solid;
|
|
border-color: transparent transparent #ef9a9a transparent;
|
|
}
|
|
|
|
/* Right triangle placed bottom right flush. */
|
|
.chat-box li.right .tip::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
left: auto;
|
|
right: -11px;
|
|
top: auto;
|
|
bottom: -1px; /* border-width */
|
|
border: 10px solid;
|
|
border-color: transparent transparent #e53935 transparent;
|
|
}
|
|
.chat-box li.right .tip::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
left: auto;
|
|
right: -9px;
|
|
top: auto;
|
|
bottom: 0;
|
|
border: 9px solid;
|
|
border-color: transparent transparent #ef9a9a transparent;
|
|
}
|
|
|
|
.chat-box .avatar {
|
|
width: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-box .avatar img {
|
|
width: 32px;
|
|
display: block;
|
|
position: relative;
|
|
left: 4px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.chat-box .bubble p {
|
|
margin: 0;
|
|
}
|