123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634 |
- .conversation-title {
- display: block;
- line-height: 36px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- padding: 0 46px;
- -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: calc(100% - #{$header-height});
- overflow-y: scroll;
- .container {
- padding-top: 20px;
- max-width: 950px;
- margin: 0 auto;
- padding: 20px;
- }
- }
- .main.panel {
- display: flex;
- flex-direction: column;
- overflow: initial;
- .discussion-container {
- flex-grow: 1;
- position: relative;
- max-width: 100%;
- margin: 0;
- .bar-container {
- height: 5px;
- }
- .message-list {
- position: absolute;
- top: 0;
- height: 100%;
- width: 100%;
- margin: 0;
- padding: 2em 20px 0;
- overflow-y: auto;
- }
- }
- }
- }
- .key-verification {
- label {
- display: block;
- margin: 10px 0;
- font-size: $font-size-small;
- }
- .key, .placeholder {
- padding: 0 1em;
- -webkit-user-select: text;
- }
- .key {
- display: inline-block;
- font-family: monospace;
- padding: 10px;
- margin-bottom: 20px;
- background: $grey_l;
- border: solid 1px $grey_l2;
- border-radius: $border-radius;
- }
- .placeholder {
- font-weight: bold;
- }
- .qr {
- border-radius: 200px;
- border: solid 1px $grey_l2;
- width: 150px;
- height: 150px;
- text-align: center;
- padding: 25px;
- margin: 10px auto;
- canvas {
- display: none;
- }
- img {
- display: inline-block;
- max-width: 100%;
- }
- }
- }
- .message-detail {
- .key-conflict-dialogue {
- border-radius: $border-radius;
- margin: 20px 0;
- .header {
- border-radius: $border-radius $border-radius 0 0;
- background: #F3F3A7;
- margin: 0;
- padding: 10px 20px
- }
- .content {
- padding: 20px;
- border: 2px solid #F3F3A7;
- }
- button.resolve {
- outline: none;
- border: none;
- border-radius: $border-radius;
- color: white;
- font-weight: bold;
- line-height: 36px;
- padding: 0 20px;
- float: right;
- background: $blue;
- margin-left: 20px;
- }
- .hideKeys, .showKeys {
- float: right;
- line-height: 36px;
- }
- }
- .message-container {
- background: white;
- padding: 20px 0;
- .sender {
- display: none;
- }
- }
- .info {
- padding: 1em;
- .label {
- font-weight: bold;
- padding-right: 1em;
- vertical-align: top;
- }
- button {
- border: none;
- border-radius: $border-radius;
- color: white;
- padding: 0.5em;
- font-weight: bold;
- span {
- vertical-align: middle;
- }
- }
- }
- .contacts .contact-detail {
- padding: 0 36px;
- margin-bottom: 5px;
- .error-icon-container {
- float: right;
- }
- .error-message {
- margin: 6px 0 0;
- font-size: $font-size-small;
- font-weight: bold;
- color: red;
- }
- }
- h3 {
- font-size: 1em;
- padding: 5px;
- }
- button.conflict {
- float: right;
- background: #d00;
- }
- button.cancel {
- float: right;
- color: $grey_d;
- border: solid 1px #ccc;
- }
- }
- .message-list {
- .error-icon {
- cursor: pointer;
- }
- .advisory {
- text-align: center;
- .content {
- display: inline-block;
- padding: 5px 10px;
- background: #fff5c4;
- border-radius: $border-radius;
- }
- }
- }
- li.entry .error-icon-container {
- position: absolute;
- top: 0;
- left: calc(100% + 5px);
- height: 100%;
- .error-icon {
- display: block;
- height: 100%;
- }
- .error-message {
- display: none;
- position: absolute;
- background: black;
- color: white;
- border-radius: $border-radius;
- padding: 0.5em;
- font-weight: normal;
- bottom: calc(50% + 18px);
- left: -84px;
- width: 180px;
- z-index: 10;
- &:before {
- display: block;
- content: '';
- position: absolute;
- bottom: -16px;
- left: 50%;
- border: 6px solid transparent;
- border-top: 10px solid #000000;
- }
- }
- &:hover .error-message { display: inline-block; }
- }
- .error-icon {
- display: inline-block;
- width: $error-icon-size;
- height: $error-icon-size;
- position: relative;
- @include color-svg('/images/warning.svg', red);
- }
- .group {
- li.entry .unregistered-user-error {
- display: none;
- }
- }
- .group-update {
- font-size: smaller;
- }
- .private .entry .avatar,
- .private .sender,
- .outgoing .sender {
- display: none;
- }
- .sender {
- font-size: smaller;
- opacity: 0.8;
- margin-bottom: 5px;
- font-weight: bold;
- }
- .timestamp {
- margin-right: 3px;
- white-space: nowrap;
- }
- .message-container,
- .message-list {
- list-style: none;
- li {
- max-width: 800px;
- margin: 0 auto 10px;
- &::after {
- visibility: hidden;
- display: block;
- font-size: 0;
- content: " ";
- clear: both;
- height: 0;
- }
- }
- .bubble {
- position: relative;
- left: -2px;
- display: inline-block;
- vertical-align: top;
- word-wrap: break-word;
- margin-left: 8px;
- max-width: 30em;
- text-align: -webkit-auto;
- -webkit-user-select: text;
- @media(max-width: $big-avatar-min-width - 1px) {
- max-width: calc(100% - 45px - #{$error-icon-size}); // avatar size + padding + error-icon size
- }
- .body {
- white-space: pre-wrap;
- a {
- word-break: break-all
- }
- }
- p {
- margin: 0;
- }
- }
- .meta {
- font-size: smaller;
- margin-top: 3px;
- text-align: right;
- line-height: 18px;
- .hasRetry + .timestamp {
- &:before {
- content:"\00b7"; // ·
- font-weight: bold;
- padding: 0 5px 0 4px;
- text-decoration: none;
- opacity: 0.5;
- }
- }
- .retry {
- text-decoration: underline;
- cursor: pointer;
- }
- .hasRetry, .timestamp, .status, .timer {
- float: left;
- }
- .timestamp, .status {
- cursor: pointer;
- opacity: 0.5;
- &:hover {
- opacity: 1.0;
- }
- }
- }
- .status {
- width: 18px;
- height: 18px;
- }
- .sent .status {
- display: inline-block;
- @include color-svg('/images/check.svg', black);
- }
- .delivered .status {
- display: inline-block;
- @include color-svg('/images/double-check.svg', black);
- }
- .pending .status {
- display: inline-block;
- background: none;
- &:before { content: '...'; }
- }
- .incoming {
- .avatar, .bubble {
- float: left;
- }
- }
- .outgoing {
- .meta {
- float: right;
- }
- .error-icon-container {
- left: auto;
- right: calc(100% + 5px);
- }
- .avatar, .bubble {
- float: right;
- }
- .bubble {
- clear: left;
- }
- }
- @keyframes shake {
- 0% { transform: translateX(0px); }
- 25% { transform: translateX(-5px); }
- 50% { transform: translateX(0px); }
- 75% { transform: translateX(5px); }
- 100% { transform: translateX(0px); }
- }
- .expired .bubble {
- animation: shake 0.2s linear 3;
- }
- .timer {
- display: none;
- .hourglass {
- vertical-align: middle;
- }
- }
- .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;
- min-width: 280px;
- }
- img {
- cursor: pointer;
- }
- }
- .outgoing .avatar {
- display: none;
- }
- .bubble .content.error-message {
- cursor: pointer;
- font-style: italic;
- }
- .key-conflict {
- padding: 15px 10px;
- button {
- margin-top: 5px;
- }
- }
- }
- .message-list,
- .message-container,
- .key-conflict-dialogue {
- .avatar {
- height: 36px;
- width: 36px;
- line-height: 36px;
- }
- }
- .bottom-bar {
- box-sizing: content-box;
- $button-width: 36px;
- padding: 5px 5px 5px 0;
- background: $grey_l;
- form.active {
- outline: solid 1px $blue;
- }
- form.send {
- background: #ffffff;
- }
- input, textarea {
- color: $grey_d;
- }
- .attachment-previews {
- padding: 0 36px;
- .attachment-preview {
- padding: 13px 10px 0;
- }
- img {
- border: 2px solid #ddd;
- border-radius: $border-radius;
- max-height: 100px;
- }
- .close {
- position: absolute;
- top: 5px;
- right: 2px;
- background: #999;
- &:hover {
- background: $grey;
- }
- }
- }
- .flex {
- display: flex;
- flex-direction: row;
- .send-message {
- flex-grow: 1;
- }
- }
- .choose-file {
- float: left;
- height: 36px;
- }
- .send-message {
- display: block;
- max-height: 100px;
- padding: 10px;
- border: 0;
- outline: 0;
- z-index: 5;
- resize: none;
- font-size: 1em;
- font-family: inherit;
- &[disabled=disabled] {
- background: transparent;
- }
- }
- .capture-audio {
- float: right;
- height: 36px;
- }
- }
- .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: $border-radius;
- font-size: $font-size-small;
- z-index: 100;
- }
- .confirmation-dialog {
- .content {
- max-width: 350px;
- margin: 100px auto;
- padding: 1em;
- background: white;
- border-radius: $border-radius;
- 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: $border-radius;
- outline: none;
- padding: 5px 8px;
- border: 1px solid $grey_l2;
- &:focus {
- border-color: $grey_l4;
- }
- &:hover {
- background-color: $grey_l2;
- border-color: $grey_l3;
- }
- }
- }
- }
- }
- .message-list li.keychange {
- text-align: center;
- .content {
- display: inline-block;
- padding: 5px 10px;
- background: #fff5c4;
- color: $grey_d;
- border-radius: $border-radius;
- }
- }
|