|
| 1 | +/* |
| 2 | +Copyright 2022 The Matrix.org Foundation C.I.C. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +.mx_ReadReceiptGroup { |
| 18 | + position: relative; |
| 19 | + display: inline-block; |
| 20 | + // This aligns the avatar with the last line of the |
| 21 | + // message. We want to move it one line up |
| 22 | + // See .mx_GroupLayout .mx_EventTile .mx_EventTile_line in _GroupLayout.scss |
| 23 | + top: calc(-$font-22px - 3px); |
| 24 | + user-select: none; |
| 25 | + z-index: 1; |
| 26 | + |
| 27 | + .mx_ReadReceiptGroup_button { |
| 28 | + display: inline-flex; |
| 29 | + flex-direction: row; |
| 30 | + height: 16px; |
| 31 | + padding: 4px; |
| 32 | + border-radius: 6px; |
| 33 | + |
| 34 | + &.mx_AccessibleButton { |
| 35 | + &:hover { |
| 36 | + background: $event-selected-color; |
| 37 | + } |
| 38 | + } |
| 39 | + } |
| 40 | + |
| 41 | + .mx_ReadReceiptGroup_remainder { |
| 42 | + color: $secondary-content; |
| 43 | + font-size: $font-11px; |
| 44 | + line-height: $font-16px; |
| 45 | + margin-right: 4px; |
| 46 | + } |
| 47 | + |
| 48 | + .mx_ReadReceiptGroup_container { |
| 49 | + position: relative; |
| 50 | + display: block; |
| 51 | + height: 100%; |
| 52 | + |
| 53 | + .mx_BaseAvatar { |
| 54 | + position: absolute; |
| 55 | + display: inline-block; |
| 56 | + height: 14px; |
| 57 | + width: 14px; |
| 58 | + border: 1px solid $background; |
| 59 | + border-radius: 100%; |
| 60 | + |
| 61 | + will-change: left, top; |
| 62 | + transition: |
| 63 | + left var(--transition-short) ease-out, |
| 64 | + top var(--transition-standard) ease-out; |
| 65 | + } |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | +.mx_ReadReceiptGroup_popup { |
| 70 | + max-height: 300px; |
| 71 | + width: 220px; |
| 72 | + border-radius: 8px; |
| 73 | + display: flex; |
| 74 | + flex-direction: column; |
| 75 | + text-align: left; |
| 76 | + font-size: 12px; |
| 77 | + line-height: 15px; |
| 78 | + |
| 79 | + right: 0; |
| 80 | + |
| 81 | + &.mx_ContextualMenu_top { |
| 82 | + top: 8px; |
| 83 | + } |
| 84 | + |
| 85 | + &.mx_ContextualMenu_bottom { |
| 86 | + bottom: 8px; |
| 87 | + } |
| 88 | + |
| 89 | + .mx_ReadReceiptGroup_title { |
| 90 | + font-size: 12px; |
| 91 | + line-height: 15px; |
| 92 | + margin: 16px 16px 8px; |
| 93 | + font-weight: 600; |
| 94 | + // shouldn’t be actually focusable |
| 95 | + outline: none; |
| 96 | + } |
| 97 | + |
| 98 | + .mx_AutoHideScrollbar { |
| 99 | + .mx_ReadReceiptGroup_person { |
| 100 | + display: flex; |
| 101 | + flex-direction: row; |
| 102 | + padding: 4px; |
| 103 | + margin: 0 12px; |
| 104 | + border-radius: 8px; |
| 105 | + |
| 106 | + &:hover { |
| 107 | + background: $menu-selected-color; |
| 108 | + } |
| 109 | + |
| 110 | + &:last-child { |
| 111 | + margin-bottom: 8px; |
| 112 | + } |
| 113 | + |
| 114 | + .mx_BaseAvatar { |
| 115 | + margin: 6px 8px; |
| 116 | + align-self: center; |
| 117 | + justify-self: center; |
| 118 | + } |
| 119 | + |
| 120 | + .mx_ReadReceiptGroup_name { |
| 121 | + display: flex; |
| 122 | + flex-direction: column; |
| 123 | + flex-grow: 1; |
| 124 | + flex-shrink: 1; |
| 125 | + overflow: hidden; |
| 126 | + |
| 127 | + p { |
| 128 | + margin: 2px 0; |
| 129 | + text-overflow: ellipsis; |
| 130 | + overflow: hidden; |
| 131 | + white-space: nowrap; |
| 132 | + } |
| 133 | + |
| 134 | + .mx_ReadReceiptGroup_secondary { |
| 135 | + color: $secondary-content; |
| 136 | + } |
| 137 | + } |
| 138 | + } |
| 139 | + } |
| 140 | +} |
| 141 | + |
| 142 | +.mx_ReadReceiptGroup_person--tooltip { |
| 143 | + overflow-y: hidden; |
| 144 | + text-overflow: ellipsis; |
| 145 | + white-space: nowrap; |
| 146 | +} |
0 commit comments