2018-04-12 02:23:35 +03:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-07-23 20:06:37 +03:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
2018-04-12 02:23:35 +03:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2020-09-17 07:38:12 +03:00
|
|
|
$MiniAppTileHeight: 200px;
|
2022-07-27 16:39:29 +03:00
|
|
|
/* TODO this should be 300px but that's too large */
|
2022-06-09 20:30:58 +03:00
|
|
|
$MinWidth: 240px;
|
2019-02-12 18:55:37 +03:00
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_AppsDrawer {
|
2021-12-06 15:10:52 +03:00
|
|
|
margin: $container-gap-width;
|
2022-07-27 16:39:29 +03:00
|
|
|
/* The left side gap is fully handled by this margin. To prohibit bleeding on webkit browser. */
|
2022-07-15 16:53:23 +03:00
|
|
|
margin-right: calc($container-gap-width / 2);
|
2022-07-27 16:39:29 +03:00
|
|
|
margin-bottom: 0; /* No bottom margin for the correct gap to the CallView below. */
|
2020-08-21 18:29:07 +03:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
2021-11-16 17:43:18 +03:00
|
|
|
flex-grow: 1;
|
2020-08-21 18:29:07 +03:00
|
|
|
|
2021-12-06 15:10:52 +03:00
|
|
|
&.mx_AppsDrawer_maximise {
|
|
|
|
margin-bottom: $container-gap-width;
|
|
|
|
}
|
|
|
|
|
2021-01-21 01:05:18 +03:00
|
|
|
.mx_AppsContainer_resizerHandleContainer {
|
|
|
|
width: 100%;
|
|
|
|
height: 10px;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2020-08-21 18:38:28 +03:00
|
|
|
.mx_AppsContainer_resizerHandle {
|
2020-08-21 18:29:07 +03:00
|
|
|
cursor: ns-resize;
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* Override styles from library, making the whole area the target area */
|
2021-01-21 01:05:18 +03:00
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
2020-08-21 18:29:07 +03:00
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* This is positioned directly below frame */
|
2020-08-21 18:29:07 +03:00
|
|
|
position: absolute;
|
2022-07-27 16:39:29 +03:00
|
|
|
bottom: 50% !important; /* override from library */
|
2021-01-21 01:05:18 +03:00
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* We then render the pill handle in an ::after to keep it in the handle's */
|
|
|
|
/* area without being a massive line across the screen */
|
2021-01-21 01:05:18 +03:00
|
|
|
&::after {
|
2022-12-12 14:24:14 +03:00
|
|
|
content: "";
|
2021-01-21 01:05:18 +03:00
|
|
|
position: absolute;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
2021-12-06 15:10:52 +03:00
|
|
|
height: 4px;
|
2021-01-21 01:05:18 +03:00
|
|
|
bottom: 0;
|
2020-08-21 18:29:07 +03:00
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* Together, these make the bar 64px wide */
|
|
|
|
/* These are also overridden from the library */
|
2021-01-21 01:05:18 +03:00
|
|
|
left: calc(50% - 32px);
|
|
|
|
right: calc(50% - 32px);
|
|
|
|
}
|
2020-08-21 18:29:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2021-01-21 01:05:18 +03:00
|
|
|
.mx_AppsContainer_resizerHandle::after {
|
2020-08-21 18:29:07 +03:00
|
|
|
opacity: 0.8;
|
2021-08-12 12:27:12 +03:00
|
|
|
background: $primary-content;
|
2020-08-21 18:29:07 +03:00
|
|
|
}
|
2020-10-13 17:56:53 +03:00
|
|
|
|
|
|
|
.mx_ResizeHandle_horizontal::before {
|
|
|
|
position: absolute;
|
|
|
|
left: 3px;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(0, -50%);
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
height: 64px; /* to match width of the ones on roomlist */
|
2020-10-13 17:56:53 +03:00
|
|
|
width: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
2022-12-12 14:24:14 +03:00
|
|
|
content: "";
|
2020-10-13 17:56:53 +03:00
|
|
|
|
2021-08-12 12:27:12 +03:00
|
|
|
background-color: $primary-content;
|
2020-10-13 17:56:53 +03:00
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2020-08-21 18:29:07 +03:00
|
|
|
}
|
2022-06-09 20:30:58 +03:00
|
|
|
|
|
|
|
.mx_AppTile {
|
|
|
|
width: 50%;
|
|
|
|
min-width: $MinWidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_AppsDrawer_2apps .mx_AppTile {
|
|
|
|
width: 50%;
|
|
|
|
|
|
|
|
&:nth-child(3) {
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 0 !important;
|
|
|
|
min-width: $MinWidth !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.mx_AppsDrawer_3apps .mx_AppTile {
|
|
|
|
width: 33%;
|
|
|
|
|
|
|
|
&:nth-child(3) {
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 0 !important;
|
|
|
|
min-width: $MinWidth !important;
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2020-10-13 14:29:12 +03:00
|
|
|
.mx_AppsContainer_resizer {
|
2021-12-06 15:10:52 +03:00
|
|
|
margin-bottom: $container-gap-width;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppsContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2020-04-20 23:05:50 +03:00
|
|
|
align-items: stretch;
|
2018-04-12 02:23:35 +03:00
|
|
|
justify-content: center;
|
2020-08-21 18:29:07 +03:00
|
|
|
height: 100%;
|
2020-10-13 14:29:12 +03:00
|
|
|
width: 100%;
|
|
|
|
flex: 1;
|
|
|
|
min-height: 0;
|
2020-10-12 15:36:09 +03:00
|
|
|
|
|
|
|
.mx_AppTile:first-of-type {
|
2021-11-16 17:43:18 +03:00
|
|
|
border-left-width: $container-border-width;
|
2020-10-12 15:36:09 +03:00
|
|
|
border-radius: 10px 0 0 10px;
|
|
|
|
}
|
|
|
|
.mx_AppTile:last-of-type {
|
2021-11-16 17:43:18 +03:00
|
|
|
border-right-width: $container-border-width;
|
2020-10-12 15:36:09 +03:00
|
|
|
border-radius: 0 10px 10px 0;
|
|
|
|
}
|
2020-10-13 14:29:12 +03:00
|
|
|
|
|
|
|
.mx_ResizeHandle_horizontal {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-04-23 22:52:28 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_AppTile {
|
2021-11-16 17:43:18 +03:00
|
|
|
border: $container-border-width solid $widget-menu-bar-bg-color;
|
2020-04-20 23:05:50 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-12 15:36:09 +03:00
|
|
|
box-sizing: border-box;
|
2020-10-20 18:06:35 +03:00
|
|
|
background-color: $widget-menu-bar-bg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppTileFullWidth {
|
2022-07-27 16:39:29 +03:00
|
|
|
width: 100% !important; /* to override the inline style set by the resizer */
|
2018-04-12 02:23:35 +03:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2021-11-16 17:43:18 +03:00
|
|
|
border: $container-border-width solid $widget-menu-bar-bg-color;
|
2020-07-13 23:59:46 +03:00
|
|
|
border-radius: 8px;
|
2020-04-20 23:05:50 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-20 18:06:35 +03:00
|
|
|
background-color: $widget-menu-bar-bg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2018-07-23 17:58:07 +03:00
|
|
|
.mx_AppTile_mini {
|
2018-07-23 17:08:17 +03:00
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2020-04-20 23:05:50 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: $MiniAppTileHeight;
|
2018-07-23 17:08:17 +03:00
|
|
|
}
|
|
|
|
|
2020-04-20 23:05:50 +03:00
|
|
|
.mx_AppTile .mx_AppTile_persistedWrapper,
|
|
|
|
.mx_AppTileFullWidth .mx_AppTile_persistedWrapper,
|
2018-07-23 17:58:07 +03:00
|
|
|
.mx_AppTile_mini .mx_AppTile_persistedWrapper {
|
2020-04-20 23:05:50 +03:00
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppTile_persistedWrapper div {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-07-23 17:08:17 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_AppTileMenuBar {
|
|
|
|
margin: 0;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-12px;
|
2018-04-12 02:23:35 +03:00
|
|
|
background-color: $widget-menu-bar-bg-color;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2020-04-20 23:05:50 +03:00
|
|
|
width: 100%;
|
2022-06-03 13:00:16 +03:00
|
|
|
padding-top: 3px;
|
|
|
|
padding-bottom: 6px;
|
2019-02-01 13:02:02 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_AppTileMenuBarTitle {
|
2020-10-12 15:36:09 +03:00
|
|
|
line-height: 20px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
.mx_WidgetAvatar {
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-02-01 13:02:02 +03:00
|
|
|
.mx_AppTileMenuBarTitle > :last-child {
|
|
|
|
margin-left: 9px;
|
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_AppTileMenuBarWidgets {
|
|
|
|
float: right;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2019-02-01 13:02:02 +03:00
|
|
|
.mx_AppTileMenuBar_iconButton {
|
2022-06-03 13:00:16 +03:00
|
|
|
height: 24px;
|
|
|
|
margin: 0 4px;
|
|
|
|
position: relative;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $muted-fg-color;
|
2022-12-12 14:24:14 +03:00
|
|
|
content: "";
|
2022-06-03 13:00:16 +03:00
|
|
|
height: 24px;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 12px;
|
|
|
|
position: absolute;
|
|
|
|
width: 24px;
|
2021-11-16 17:43:18 +03:00
|
|
|
}
|
|
|
|
|
2022-06-03 13:00:16 +03:00
|
|
|
&:hover::after {
|
|
|
|
background-color: $panel-actions;
|
|
|
|
border-radius: 50%;
|
2022-12-12 14:24:14 +03:00
|
|
|
content: "";
|
2022-06-03 13:00:16 +03:00
|
|
|
height: 24px;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_AppTileMenuBar_iconButton_collapse::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/minimise-collapse.svg");
|
2021-11-16 17:43:18 +03:00
|
|
|
}
|
|
|
|
|
2022-06-03 13:00:16 +03:00
|
|
|
&.mx_AppTileMenuBar_iconButton_maximise::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/maximise-expand.svg");
|
2022-02-09 13:47:41 +03:00
|
|
|
}
|
|
|
|
|
2022-06-03 13:00:16 +03:00
|
|
|
&.mx_AppTileMenuBar_iconButton_minimise::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/minus-button.svg");
|
2022-02-09 13:47:41 +03:00
|
|
|
}
|
|
|
|
|
2022-06-03 13:00:16 +03:00
|
|
|
&.mx_AppTileMenuBar_iconButton_popout::before {
|
2022-12-12 14:24:14 +03:00
|
|
|
mask-image: url("$(res)/img/feather-customised/widget/external-link.svg");
|
2021-11-16 17:43:18 +03:00
|
|
|
}
|
2019-02-01 13:02:02 +03:00
|
|
|
|
2022-06-03 13:00:16 +03:00
|
|
|
&.mx_AppTileMenuBar_iconButton_menu::before {
|
2022-12-12 14:24:14 +03:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/ellipsis.svg");
|
2021-11-16 17:43:18 +03:00
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-07-09 20:15:10 +03:00
|
|
|
.mx_AppTileBody {
|
2020-04-20 23:05:50 +03:00
|
|
|
height: 100%;
|
2018-04-12 02:23:35 +03:00
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
2020-10-20 18:06:35 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
background-color: $widget-body-bg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2018-07-12 20:43:49 +03:00
|
|
|
.mx_AppTileBody_mini {
|
2020-09-17 07:38:12 +03:00
|
|
|
height: $MiniAppTileHeight;
|
2018-07-12 20:43:49 +03:00
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
2020-09-17 23:58:48 +03:00
|
|
|
border-radius: 8px;
|
2018-07-12 20:43:49 +03:00
|
|
|
}
|
|
|
|
|
2020-04-20 23:05:50 +03:00
|
|
|
.mx_AppTile .mx_AppTileBody,
|
|
|
|
.mx_AppTileFullWidth .mx_AppTileBody,
|
|
|
|
.mx_AppTile_mini .mx_AppTileBody_mini {
|
|
|
|
height: inherit;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2018-07-23 17:08:17 +03:00
|
|
|
.mx_AppTileBody_mini iframe {
|
|
|
|
border: none;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_AppTileBody iframe {
|
|
|
|
width: 100%;
|
2020-04-20 23:05:50 +03:00
|
|
|
height: 100%;
|
2018-04-12 02:23:35 +03:00
|
|
|
overflow: hidden;
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppPermissionWarning {
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-16px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-11-16 00:25:53 +03:00
|
|
|
.mx_AppPermissionWarning_row {
|
|
|
|
margin-bottom: 12px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-11-16 00:25:53 +03:00
|
|
|
.mx_AppPermissionWarning_smallText {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-12px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-11-16 00:25:53 +03:00
|
|
|
.mx_AppPermissionWarning_bolder {
|
|
|
|
font-weight: 600;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-11-16 00:25:53 +03:00
|
|
|
.mx_AppPermissionWarning h4 {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-11-16 00:25:53 +03:00
|
|
|
.mx_AppPermissionWarning_helpIcon {
|
|
|
|
margin-top: 1px;
|
|
|
|
margin-right: 2px;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
2019-07-23 20:06:37 +03:00
|
|
|
display: inline-block;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-11-16 00:25:53 +03:00
|
|
|
.mx_AppPermissionWarning_helpIcon::before {
|
|
|
|
display: inline-block;
|
2021-11-11 16:37:29 +03:00
|
|
|
background-color: $accent;
|
2019-11-16 00:25:53 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 12px;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
mask-position: center;
|
2022-12-12 14:24:14 +03:00
|
|
|
content: "";
|
2019-11-16 00:25:53 +03:00
|
|
|
vertical-align: middle;
|
2022-12-12 14:24:14 +03:00
|
|
|
mask-image: url("$(res)/img/feather-customised/help-circle.svg");
|
2019-11-16 00:25:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppPermissionWarning_tooltip {
|
|
|
|
@mixin mx_Tooltip_dark;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style-position: inside;
|
|
|
|
padding-left: 2px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppLoading {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-weight: bold;
|
|
|
|
position: relative;
|
2020-04-20 23:05:50 +03:00
|
|
|
height: 100%;
|
2020-10-20 18:06:35 +03:00
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* match bg of border so that the cut corners have the right fill */
|
2020-10-20 18:06:35 +03:00
|
|
|
background-color: $widget-body-bg-color !important;
|
|
|
|
border-radius: 8px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppLoading .mx_Spinner {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2018-05-09 18:41:45 +03:00
|
|
|
.mx_AppLoading_spinner_fadeIn {
|
|
|
|
animation-fill-mode: backwards;
|
|
|
|
animation-duration: 200ms;
|
|
|
|
animation-delay: 500ms;
|
|
|
|
animation-name: mx_AppLoading_spinner_fadeIn_animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mx_AppLoading_spinner_fadeIn_animation {
|
2022-12-12 14:24:14 +03:00
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-05-09 18:41:45 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_AppLoading iframe {
|
2019-07-09 20:15:10 +03:00
|
|
|
display: none;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
2020-04-23 22:52:28 +03:00
|
|
|
|
|
|
|
.mx_AppsDrawer_resizing .mx_AppTile_persistedWrapper {
|
|
|
|
z-index: 1;
|
|
|
|
}
|