b40f29f04c
* Add a Jest snapshot of AppPermission * Move the test inside 'for a pinned widget' category * Make only spinner message bold * Set font size specified with "mx_AppPermission_smallText" by default - Add "mx_AppPermission_largeText" for elements whose size has not been specified with mx_AppPermission_smallText - Create _AppWarning.pcss for AppWarning * Make AppPermission panel scrollable, keeping the content at the center * Run prettier * Use Heading component * Use Icon component * Fix the test
65 lines
1.8 KiB
Text
65 lines
1.8 KiB
Text
/*
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
Copyright 2019 - 2023 The Matrix.org Foundation C.I.C.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.mx_AppPermission {
|
|
font-size: $font-12px;
|
|
width: 100%; /* make mx_AppPermission fill width of mx_AppTileBody so that scroll bar appears on the edge */
|
|
overflow-y: scroll;
|
|
|
|
.mx_AppPermission_content {
|
|
margin-block: auto; /* place at the center */
|
|
|
|
> div {
|
|
margin-block: 12px;
|
|
}
|
|
|
|
.mx_AppPermission_content_bolder {
|
|
font-weight: var(--font-semi-bold);
|
|
}
|
|
|
|
.mx_TextWithTooltip_target--helpIcon {
|
|
display: inline-block;
|
|
height: $font-14px; /* align with characters on the same line */
|
|
vertical-align: middle;
|
|
|
|
.mx_Icon {
|
|
color: $accent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_Tooltip.mx_Tooltip--appPermission {
|
|
box-shadow: none;
|
|
background-color: $tooltip-timeline-bg-color;
|
|
color: $tooltip-timeline-fg-color;
|
|
border: none;
|
|
border-radius: 3px;
|
|
padding: 6px 8px;
|
|
|
|
&.mx_Tooltip--appPermission--dark {
|
|
.mx_Tooltip_chevron::after {
|
|
border-right-color: $tooltip-timeline-bg-color;
|
|
}
|
|
}
|
|
|
|
ul {
|
|
list-style-position: inside;
|
|
padding-left: 2px;
|
|
margin-left: 0;
|
|
}
|
|
}
|