|
| 1 | +/* |
| 2 | +Copyright 2021 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_LeaveSpaceDialog_wrapper { |
| 18 | + .mx_Dialog { |
| 19 | + display: flex; |
| 20 | + flex-direction: column; |
| 21 | + padding: 24px 32px; |
| 22 | + } |
| 23 | +} |
| 24 | + |
| 25 | +.mx_LeaveSpaceDialog { |
| 26 | + width: 440px; |
| 27 | + display: flex; |
| 28 | + flex-direction: column; |
| 29 | + flex-wrap: nowrap; |
| 30 | + max-height: 520px; |
| 31 | + |
| 32 | + .mx_Dialog_content { |
| 33 | + flex-grow: 1; |
| 34 | + margin: 0; |
| 35 | + overflow-y: auto; |
| 36 | + |
| 37 | + .mx_RadioButton + .mx_RadioButton { |
| 38 | + margin-top: 16px; |
| 39 | + } |
| 40 | + |
| 41 | + .mx_SearchBox { |
| 42 | + // To match the space around the title |
| 43 | + margin: 0 0 15px 0; |
| 44 | + flex-grow: 0; |
| 45 | + border-radius: 8px; |
| 46 | + } |
| 47 | + |
| 48 | + .mx_LeaveSpaceDialog_noResults { |
| 49 | + display: block; |
| 50 | + margin-top: 24px; |
| 51 | + } |
| 52 | + |
| 53 | + .mx_LeaveSpaceDialog_section { |
| 54 | + margin: 16px 0; |
| 55 | + } |
| 56 | + |
| 57 | + .mx_LeaveSpaceDialog_section_warning { |
| 58 | + position: relative; |
| 59 | + border-radius: 8px; |
| 60 | + margin: 12px 0 0; |
| 61 | + padding: 12px 8px 12px 42px; |
| 62 | + background-color: $header-panel-bg-color; |
| 63 | + |
| 64 | + font-size: $font-12px; |
| 65 | + line-height: $font-15px; |
| 66 | + color: $secondary-fg-color; |
| 67 | + |
| 68 | + &::before { |
| 69 | + content: ''; |
| 70 | + position: absolute; |
| 71 | + left: 10px; |
| 72 | + top: calc(50% - 8px); // vertical centering |
| 73 | + height: 16px; |
| 74 | + width: 16px; |
| 75 | + background-color: $secondary-fg-color; |
| 76 | + mask-repeat: no-repeat; |
| 77 | + mask-size: contain; |
| 78 | + mask-image: url('$(res)/img/element-icons/room/room-summary.svg'); |
| 79 | + mask-position: center; |
| 80 | + } |
| 81 | + } |
| 82 | + |
| 83 | + > p { |
| 84 | + color: $primary-fg-color; |
| 85 | + } |
| 86 | + } |
| 87 | + |
| 88 | + .mx_Dialog_buttons { |
| 89 | + margin-top: 20px; |
| 90 | + |
| 91 | + .mx_Dialog_primary { |
| 92 | + background-color: $notice-primary-color !important; // override default colour |
| 93 | + border-color: $notice-primary-color; |
| 94 | + } |
| 95 | + } |
| 96 | +} |
0 commit comments