b094607e0d
// FREEBIE
630 lines
10 KiB
SCSS
630 lines
10 KiB
SCSS
.conversation-title {
|
|
display: block;
|
|
line-height: $header-height;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 0 36px;
|
|
-webkit-user-select: text;
|
|
}
|
|
.conversation-name + .conversation-number {
|
|
&:before {
|
|
content:"\00b7"; // ·
|
|
font-weight: bold;
|
|
padding: 0 5px 0 4px;
|
|
}
|
|
}
|
|
|
|
.conversation {
|
|
background-color: #ffffff;
|
|
height: 100%;
|
|
|
|
.panel {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.discussion-container {
|
|
flex-grow: 1;
|
|
position: relative;
|
|
|
|
.bar-container {
|
|
height: 5px;
|
|
}
|
|
|
|
.message-list {
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 2em 8px 0;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.group-member-list,
|
|
.new-group-update,
|
|
.message-detail, .key-verification {
|
|
height: 100%;
|
|
}
|
|
|
|
.key-verification {
|
|
background: white;
|
|
|
|
p {
|
|
padding: 1em;
|
|
}
|
|
.key, .placeholder {
|
|
padding: 0 1em;
|
|
-webkit-user-select: text;
|
|
}
|
|
.key {
|
|
font-family: monospace;
|
|
}
|
|
.placeholder {
|
|
font-weight: bold;
|
|
}
|
|
.container {
|
|
height: calc(100% - (#{$header-height} + 5px + 1px + 4px));
|
|
}
|
|
}
|
|
|
|
.message-detail {
|
|
.container {
|
|
height: calc(100% - (#{$header-height} + 4px));
|
|
}
|
|
|
|
.key-conflict-dialogue,
|
|
.hasRetry {
|
|
background: #F3F3A7;
|
|
border-radius: 5px;
|
|
padding: 1em;
|
|
margin: 1em;
|
|
|
|
button {
|
|
outline: none;
|
|
border: none;
|
|
border-radius: 5px;
|
|
color: white;
|
|
padding: 0.5em 1em;
|
|
font-weight: bold;
|
|
line-height: 18px;
|
|
|
|
span {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
|
|
.hasRetry {
|
|
padding: 10px 20px;
|
|
button {
|
|
margin: 5px;
|
|
background: $blue;
|
|
|
|
&:before {
|
|
content: '';
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: url('/images/refresh.png') no-repeat center center;
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.key-conflict-dialogue {
|
|
.content p {
|
|
max-width: 40em;
|
|
margin: 1em auto;
|
|
}
|
|
.verify {
|
|
color: $blue;
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
.resolve {
|
|
background: $blue;
|
|
}
|
|
}
|
|
|
|
.message-container {
|
|
background: white;
|
|
padding: 1em 0;
|
|
|
|
.sender {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.info {
|
|
padding: 1em;
|
|
|
|
.label {
|
|
font-weight: bold;
|
|
padding-right: 1em;
|
|
vertical-align: top;
|
|
}
|
|
|
|
button {
|
|
border: none;
|
|
border-radius: 5px;
|
|
color: white;
|
|
padding: 0.5em;
|
|
font-weight: bold;
|
|
|
|
span {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
&:before {
|
|
content: '';
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: url('/images/refresh.png') no-repeat center center;
|
|
background-size: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.contacts .contact-detail {
|
|
padding: 0 36px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1em;
|
|
padding: 5px;
|
|
}
|
|
|
|
.error-icon {
|
|
display: inline-block;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: url('/images/error_red.png') no-repeat center center;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
margin: 9px;
|
|
float: right;
|
|
|
|
.error-message {
|
|
display: none;
|
|
position: absolute;
|
|
background: black;
|
|
color: white;
|
|
border-radius: 10px;
|
|
padding: 0.5em;
|
|
font-weight: normal;
|
|
bottom: calc(100% + 16px);
|
|
left: 50%;
|
|
margin-left: -130px;
|
|
width: 180px;
|
|
z-index: 10;
|
|
|
|
&:before {
|
|
left: -10px;
|
|
display: block;
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -23px;
|
|
left: calc(50% - 6px + 40px);
|
|
border: 6px solid transparent;
|
|
border-top: 18px solid #000000;
|
|
}
|
|
}
|
|
|
|
&:hover .error-message { display: block; }
|
|
}
|
|
|
|
button.conflict {
|
|
float: right;
|
|
background: #d00;
|
|
}
|
|
button.cancel {
|
|
float: right;
|
|
color: $grey_d;
|
|
border: solid 1px #ccc;
|
|
}
|
|
}
|
|
.group-update {
|
|
font-size: smaller;
|
|
}
|
|
|
|
.group-member-list {
|
|
.container {
|
|
height: calc(100% - #{$header-height});
|
|
}
|
|
}
|
|
|
|
.new-group-update {
|
|
.container { height: calc(100% - #{$header-height} - 85px); }
|
|
}
|
|
|
|
.private .entry .avatar,
|
|
.private .sender,
|
|
.outgoing .sender {
|
|
display: none;
|
|
}
|
|
|
|
.sender {
|
|
font-size: smaller;
|
|
opacity: 0.8;
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.timestamp {
|
|
font-size: smaller;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.message-detail,
|
|
.message-list {
|
|
list-style: none;
|
|
|
|
li {
|
|
max-width: 800px;
|
|
margin: 0 auto 16px;
|
|
|
|
&::after {
|
|
visibility: hidden;
|
|
display: block;
|
|
font-size: 0;
|
|
content: " ";
|
|
clear: both;
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
.bubble {
|
|
position: relative;
|
|
left: -2px;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
padding: 9px 12px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 3px 3px -4px black;
|
|
word-wrap: break-word;
|
|
margin-left: 8px;
|
|
max-width: 30em;
|
|
|
|
@media(max-width: $big-avatar-min-width - 1px) {
|
|
max-width: calc(100% - 45px); // avatar size + padding
|
|
}
|
|
|
|
.content {
|
|
-webkit-user-select: text;
|
|
white-space: pre-wrap;
|
|
|
|
a {
|
|
word-break: break-all
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.meta {
|
|
margin-top: 3px;
|
|
float: right;
|
|
cursor: pointer;
|
|
|
|
.timestamp, .status {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&:hover {
|
|
.timestamp, .status {
|
|
opacity: 1.0;
|
|
}
|
|
.timestamp {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.status {
|
|
float: right;
|
|
width: 18px;
|
|
height: 1em;
|
|
}
|
|
.sent .status {
|
|
display: inline-block;
|
|
background: url('/images/check-white.png');
|
|
}
|
|
.delivered .status {
|
|
display: inline-block;
|
|
background: url('/images/double-check-white.png');
|
|
}
|
|
.pending .status {
|
|
display: inline-block;
|
|
background: none;
|
|
&:before { content: '...'; }
|
|
}
|
|
.error .status {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 18px;
|
|
height: 18px;
|
|
opacity: 1 !important;
|
|
background: url('/images/error_red.png') no-repeat;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.incoming {
|
|
.avatar, .bubble {
|
|
float: left;
|
|
}
|
|
.bubble {
|
|
color: $grey_d;
|
|
background-color: $grey_l;
|
|
|
|
&::before {
|
|
left: -10px;
|
|
border-right: 10px solid white;
|
|
}
|
|
|
|
&::after {
|
|
left: -8px;
|
|
border-right: 8px solid $grey_l;
|
|
}
|
|
}
|
|
}
|
|
|
|
.outgoing {
|
|
|
|
.avatar, .bubble {
|
|
float: right;
|
|
}
|
|
|
|
.bubble {
|
|
clear: left;
|
|
color: white;
|
|
background-color: $blue;
|
|
|
|
.meta {
|
|
color: white;
|
|
}
|
|
|
|
&::before {
|
|
right: -10px;
|
|
border-left: 10px solid white;
|
|
}
|
|
|
|
&::after {
|
|
right: -8px;
|
|
border-left: 8px solid $blue;
|
|
}
|
|
|
|
.attachments, .content {
|
|
a {
|
|
color: $grey_l;
|
|
}
|
|
}
|
|
.content {
|
|
&::selection, a::selection {
|
|
color: $grey_d;
|
|
background: white;
|
|
}
|
|
|
|
&::-moz-selection, a::-moz-selection {
|
|
color: $grey_d;
|
|
background: white;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.control {
|
|
.bubble {
|
|
.content {
|
|
font-style: italic;
|
|
}
|
|
|
|
&::before, &::after {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.attachments {
|
|
a {
|
|
font-style: italic;
|
|
display: block;
|
|
padding: 1em;
|
|
background-color: #ccc;
|
|
}
|
|
|
|
img, audio, video {
|
|
max-width: 100%;
|
|
max-height: 300px;
|
|
}
|
|
|
|
video {
|
|
background: black;
|
|
min-height: 300px;
|
|
}
|
|
|
|
img {
|
|
cursor: pointer;
|
|
}
|
|
|
|
}
|
|
|
|
.outgoing .avatar {
|
|
display: none;
|
|
}
|
|
|
|
.avatar {
|
|
height: 36px;
|
|
width: 36px;
|
|
line-height: 36px;
|
|
}
|
|
|
|
.end-session {
|
|
font: small;
|
|
font-style: italic;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.bubble .error-message {
|
|
font-style: italic;
|
|
}
|
|
|
|
.key-conflict {
|
|
padding: 15px 10px;
|
|
|
|
button {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.bottom-bar {
|
|
$button-width: 36px;
|
|
padding: 5px 1px 5px 0;
|
|
height: 50px;
|
|
background: $grey_l;
|
|
|
|
form.active {
|
|
outline: solid 1px $blue;
|
|
}
|
|
|
|
form.send {
|
|
background: #ffffff;
|
|
}
|
|
|
|
button, input, textarea {
|
|
color: $grey_d;
|
|
}
|
|
|
|
button {
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: $button-width;
|
|
padding: 0;
|
|
border: 0;
|
|
outline: 0;
|
|
font-size: 24px;
|
|
background: transparent;
|
|
}
|
|
|
|
|
|
.attachment-previews {
|
|
padding: 0 36px;
|
|
.attachment-preview {
|
|
padding: 13px 10px 0;
|
|
}
|
|
img {
|
|
border: 2px solid #ddd;
|
|
border-radius: 5px;
|
|
max-height: 100px;
|
|
}
|
|
|
|
.close {
|
|
background: #999;
|
|
|
|
&:hover {
|
|
background: $grey;
|
|
}
|
|
}
|
|
}
|
|
.choose-file {
|
|
float: left;
|
|
height: 36px;
|
|
}
|
|
|
|
.send-btn {
|
|
float: right;
|
|
height: 36px;
|
|
width: 36px;
|
|
border: none;
|
|
outline: none;
|
|
background: url('/images/send.png') no-repeat;
|
|
background-size: 75%;
|
|
background-position: center center;
|
|
cursor: pointer;
|
|
|
|
&::before {
|
|
content: '+';
|
|
}
|
|
}
|
|
|
|
form, input, textarea {
|
|
height: 100%;
|
|
}
|
|
|
|
.send-message {
|
|
display: block;
|
|
width: calc(100% - #{$button-width});
|
|
min-height: $header-height - 1px;
|
|
max-height: 100px;
|
|
padding: 10px;
|
|
border: 0;
|
|
outline: 0;
|
|
z-index: 5;
|
|
resize: none;
|
|
font-size: 1em;
|
|
font-family: inherit;
|
|
}
|
|
}
|
|
|
|
.toast {
|
|
position: absolute;
|
|
bottom: 0;
|
|
margin: 0 2em 3em;
|
|
padding: 0.5em 1.5em;
|
|
background: rgba(0, 0, 0, 0.75);
|
|
color: white;
|
|
box-shadow: 0 0 5px 0 black;
|
|
border-radius: 20px;
|
|
font-size: small;
|
|
}
|
|
|
|
.confirmation-dialog {
|
|
.content {
|
|
max-width: 350px;
|
|
margin: 100px auto;
|
|
padding: 1em;
|
|
background: white;
|
|
border-radius: 10px;
|
|
overflow: auto;
|
|
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.2);
|
|
|
|
.message {
|
|
text-align: center;
|
|
}
|
|
|
|
.buttons {
|
|
margin-top: 10px;
|
|
|
|
button {
|
|
float: right;
|
|
margin-left: 10px;
|
|
background-color: $grey_l;
|
|
border-radius: 5px;
|
|
outline: none;
|
|
padding: 5px 8px;
|
|
border: 1px solid $grey_l2;
|
|
|
|
&:focus {
|
|
border-color: $grey_l4;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $grey_l2;
|
|
border-color: $grey_l3;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|