_RoomHeader.scss (4529B)
1 /* 2 Copyright 2015, 2016 OpenMarket Ltd 3 Copyright 2017 MTRNord <info@nordgedanken.de> 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 */ 17 18 /* add 20px to the height of the header when editing */ 19 .mx_RoomHeader_editing { 20 flex: 0 0 93px ! important; 21 } 22 23 .mx_RoomView .mx_RoomHeader { 24 &:not(.mx_RoomHeader_editing) { 25 .mx_RoomHeader_wrapper { 26 box-shadow: 1px 4px 10px 1px rgba(0, 0, 0, 0.1); 27 border-bottom-left-radius: 5px; 28 border-bottom-right-radius: 5px; 29 z-index: 2; 30 } 31 } 32 } 33 34 .mx_RoomHeader_wrapper { 35 margin: auto; 36 height: 70px; 37 align-items: center; 38 display: flex; 39 padding-bottom: 2.5px; 40 padding-top: 2.5px; 41 } 42 43 .mx_RoomHeader_leftRow { 44 margin-left: -2px; 45 order: 1; 46 flex: 1; 47 overflow: hidden; 48 padding-left: 10px; 49 } 50 51 .mx_RoomHeader_spinner { 52 height: 36px; 53 order: 2; 54 padding-left: 12px; 55 padding-right: 12px; 56 } 57 58 .mx_RoomHeader_textButton { 59 height: 36px; 60 background-color: $accent-color; 61 border-radius: 36px; 62 margin-right: 8px; 63 color: $accent-fg-color; 64 line-height: 34px; 65 margin-top: -2px; 66 text-align: center; 67 order: 2; 68 cursor: pointer; 69 70 /* 71 flex: 0 0 90px; 72 */ 73 padding-left: 12px; 74 padding-right: 12px; 75 } 76 77 .mx_RoomHeader_cancelButton { 78 order: 2; 79 cursor: pointer; 80 padding-left: 12px; 81 padding-right: 12px; 82 } 83 84 .mx_RoomHeader_rightRow { 85 margin-top: 4px; 86 background-color: $primary-bg-color; 87 display: flex; 88 align-items: center; 89 order: 3; 90 padding-right: 10px; 91 } 92 93 .mx_RoomHeader_info { 94 display: table-cell; 95 width: 100%; 96 vertical-align: middle; 97 } 98 99 .mx_RoomHeader_simpleHeader { 100 line-height: 70px; 101 color: $primary-fg-color; 102 font-size: 22px; 103 font-weight: bold; 104 overflow: hidden; 105 margin-left: 63px; 106 text-overflow: ellipsis; 107 width: 100%; 108 } 109 110 .mx_RoomHeader_simpleHeader .mx_RoomHeader_cancelButton { 111 float: right; 112 } 113 114 .mx_RoomHeader_simpleHeader .mx_RoomHeader_icon { 115 margin-left: 14px; 116 margin-right: 24px; 117 vertical-align: -4px; 118 } 119 120 .mx_RoomHeader_name { 121 vertical-align: middle; 122 width: 100%; 123 height: 31px; 124 overflow: hidden; 125 color: $primary-fg-color; 126 font-weight: bold; 127 font-size: 22px; 128 padding-left: 19px; 129 padding-right: 16px; 130 /* why isn't text-overflow working? */ 131 text-overflow: ellipsis; 132 border-bottom: 1px solid transparent; 133 } 134 135 .mx_RoomHeader_nametext { 136 display: inline-block; 137 } 138 139 .mx_RoomHeader_settingsHint { 140 color: $settings-grey-fg-color ! important; 141 } 142 143 .mx_RoomHeader_searchStatus { 144 display: inline-block; 145 font-weight: normal; 146 opacity: 0.6; 147 } 148 149 .mx_RoomHeader_settingsButton object { 150 pointer-events: none; 151 } 152 153 .mx_RoomHeader_name, 154 .mx_RoomHeader_avatar, 155 .mx_RoomHeader_avatarPicker, 156 .mx_RoomHeader_avatarPicker_edit { 157 cursor: pointer; 158 } 159 160 .mx_RoomHeader_name:hover div:not(.mx_RoomHeader_editable) { 161 color: $accent-color; 162 } 163 164 .mx_RoomHeader_placeholder { 165 color: $settings-grey-fg-color ! important; 166 } 167 168 .mx_RoomHeader_editable { 169 border-bottom: 1px solid $strong-input-border-color ! important; 170 min-width: 150px; 171 cursor: text; 172 } 173 174 .mx_RoomHeader_editable:focus { 175 border-bottom: 1px solid $accent-color ! important; 176 outline: none; 177 box-shadow: none; 178 } 179 180 .mx_RoomHeader_topic { 181 vertical-align: bottom; 182 float: left; 183 max-height: 42px; 184 color: $settings-grey-fg-color; 185 font-weight: 300; 186 font-size: 13px; 187 margin-left: 19px; 188 margin-right: 16px; 189 overflow: hidden; 190 text-overflow: ellipsis; 191 border-bottom: 1px solid transparent; 192 } 193 194 .mx_RoomHeader_avatar { 195 display: table-cell; 196 width: 48px; 197 height: 50px; 198 vertical-align: middle; 199 } 200 201 .mx_RoomHeader_avatar .mx_BaseAvatar_image { 202 object-fit: cover; 203 } 204 205 .mx_RoomHeader_avatarPicker_edit { 206 position: absolute; 207 margin-left: 16px; 208 margin-top: 4px; 209 } 210 211 .mx_RoomHeader_avatarPicker_edit > label { 212 cursor: pointer; 213 } 214 215 .mx_RoomHeader_avatarPicker_edit > input { 216 display: none; 217 } 218 219 .mx_RoomHeader_button { 220 margin-left: 12px; 221 cursor: pointer; 222 } 223 224 .mx_RoomHeader_button object { 225 pointer-events: none; 226 } 227 228 .mx_RoomHeader_voipButton { 229 display: table-cell; 230 } 231 232 .mx_RoomHeader_voipButtons { 233 margin-top: 18px; 234 }