2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-07-24 01:06:37 +08:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
2018-04-12 07:23:35 +08: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.
|
|
|
|
*/
|
|
|
|
|
2023-05-15 19:54:29 +08:00
|
|
|
:root {
|
2023-05-11 23:26:41 +08:00
|
|
|
--AppTile_mini-height: 220px;
|
2023-05-15 19:54:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppsDrawer {
|
2023-05-11 23:26:41 +08:00
|
|
|
--minWidth: 240px; /* TODO this should be 300px but that's too large */
|
|
|
|
|
2023-05-03 17:24:41 +08:00
|
|
|
margin: var(--container-gap-width);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* The left side gap is fully handled by this margin. To prohibit bleeding on webkit browser. */
|
2023-05-03 17:24:41 +08:00
|
|
|
margin-right: calc(var(--container-gap-width) / 2);
|
2022-07-27 21:39:29 +08:00
|
|
|
margin-bottom: 0; /* No bottom margin for the correct gap to the CallView below. */
|
2020-08-21 23:29:07 +08:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
2021-11-16 22:43:18 +08:00
|
|
|
flex-grow: 1;
|
2020-08-21 23:29:07 +08:00
|
|
|
|
2023-06-13 19:13:07 +08:00
|
|
|
.mx_AppsDrawer_resizer {
|
|
|
|
margin-bottom: var(--container-gap-width);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppsDrawer_resizer_container {
|
2021-01-21 06:05:18 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 10px;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2020-08-21 23:29:07 +08:00
|
|
|
|
2023-06-13 19:13:07 +08:00
|
|
|
.mx_AppsDrawer_resizer_container_handle {
|
|
|
|
cursor: ns-resize;
|
2020-08-21 23:29:07 +08:00
|
|
|
|
2023-06-13 19:13:07 +08:00
|
|
|
/* Override styles from library, making the whole area the target area */
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
2021-01-21 06:05:18 +08:00
|
|
|
|
2023-06-13 19:13:07 +08:00
|
|
|
/* This is positioned directly below frame */
|
2021-01-21 06:05:18 +08:00
|
|
|
position: absolute;
|
2023-06-13 19:13:07 +08:00
|
|
|
bottom: 50% !important; /* override from library */
|
|
|
|
|
|
|
|
/* 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 */
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
height: 4px;
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
/* Together, these make the bar 64px wide */
|
|
|
|
/* These are also overridden from the library */
|
|
|
|
left: calc(50% - 32px);
|
|
|
|
right: calc(50% - 32px);
|
|
|
|
}
|
2021-01-21 06:05:18 +08:00
|
|
|
}
|
2020-08-21 23:29:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2023-06-13 19:13:07 +08:00
|
|
|
.mx_AppsDrawer_resizer_container_handle::after {
|
2020-08-21 23:29:07 +08:00
|
|
|
opacity: 0.8;
|
2021-08-12 17:27:12 +08:00
|
|
|
background: $primary-content;
|
2020-08-21 23:29:07 +08:00
|
|
|
}
|
2020-10-13 22:56:53 +08:00
|
|
|
|
2023-05-04 23:19:55 +08:00
|
|
|
.mx_ResizeHandle--horizontal::before {
|
2020-10-13 22:56:53 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 3px;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(0, -50%);
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
height: 64px; /* to match width of the ones on roomlist */
|
2020-10-13 22:56:53 +08:00
|
|
|
width: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
2020-10-21 16:48:02 +08:00
|
|
|
content: "";
|
2020-10-13 22:56:53 +08:00
|
|
|
|
2021-08-12 17:27:12 +08:00
|
|
|
background-color: $primary-content;
|
2020-10-13 22:56:53 +08:00
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2020-08-21 23:29:07 +08:00
|
|
|
}
|
2022-06-10 01:30:58 +08:00
|
|
|
|
|
|
|
.mx_AppTile {
|
|
|
|
width: 50%;
|
2023-05-11 23:26:41 +08:00
|
|
|
min-width: var(--minWidth);
|
2022-06-10 01:30:58 +08:00
|
|
|
}
|
|
|
|
|
2023-05-15 17:05:14 +08:00
|
|
|
&.mx_AppsDrawer--maximised {
|
|
|
|
margin-bottom: var(--container-gap-width);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_AppsDrawer--resizing .mx_AppTile_persistedWrapper {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_AppsDrawer--2apps .mx_AppTile {
|
2022-06-10 01:30:58 +08:00
|
|
|
width: 50%;
|
|
|
|
|
|
|
|
&:nth-child(3) {
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 0 !important;
|
2023-05-11 23:26:41 +08:00
|
|
|
min-width: var(--minWidth) !important;
|
2022-06-10 01:30:58 +08:00
|
|
|
}
|
|
|
|
}
|
2023-05-15 17:05:14 +08:00
|
|
|
&.mx_AppsDrawer--3apps .mx_AppTile {
|
2022-06-10 01:30:58 +08:00
|
|
|
width: 33%;
|
|
|
|
|
|
|
|
&:nth-child(3) {
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 0 !important;
|
2023-05-11 23:26:41 +08:00
|
|
|
min-width: var(--minWidth) !important;
|
2022-06-10 01:30:58 +08:00
|
|
|
}
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppsContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2020-04-21 04:05:50 +08:00
|
|
|
align-items: stretch;
|
2018-04-12 07:23:35 +08:00
|
|
|
justify-content: center;
|
2020-08-21 23:29:07 +08:00
|
|
|
height: 100%;
|
2020-10-13 19:29:12 +08:00
|
|
|
width: 100%;
|
|
|
|
flex: 1;
|
|
|
|
min-height: 0;
|
2020-10-12 20:36:09 +08:00
|
|
|
|
|
|
|
.mx_AppTile:first-of-type {
|
2023-05-03 17:24:41 +08:00
|
|
|
border-left-width: var(--container-border-width);
|
2020-10-12 20:36:09 +08:00
|
|
|
border-radius: 10px 0 0 10px;
|
|
|
|
}
|
|
|
|
.mx_AppTile:last-of-type {
|
2023-05-03 17:24:41 +08:00
|
|
|
border-right-width: var(--container-border-width);
|
2020-10-12 20:36:09 +08:00
|
|
|
border-radius: 0 10px 10px 0;
|
|
|
|
}
|
2020-10-13 19:29:12 +08:00
|
|
|
|
2023-05-04 23:19:55 +08:00
|
|
|
.mx_ResizeHandle--horizontal {
|
2020-10-13 19:29:12 +08:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-04-24 03:52:28 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_AppTile {
|
2023-05-03 17:24:41 +08:00
|
|
|
border: var(--container-border-width) solid $widget-menu-bar-bg-color;
|
2020-04-21 04:05:50 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-12 20:36:09 +08:00
|
|
|
box-sizing: border-box;
|
2020-10-20 23:06:35 +08:00
|
|
|
background-color: $widget-menu-bar-bg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppTileFullWidth {
|
2022-07-27 21:39:29 +08:00
|
|
|
width: 100% !important; /* to override the inline style set by the resizer */
|
2018-04-12 07:23:35 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2023-05-03 17:24:41 +08:00
|
|
|
border: var(--container-border-width) solid $widget-menu-bar-bg-color;
|
2020-07-14 04:59:46 +08:00
|
|
|
border-radius: 8px;
|
2020-04-21 04:05:50 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-10-20 23:06:35 +08:00
|
|
|
background-color: $widget-menu-bar-bg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2018-07-23 22:58:07 +08:00
|
|
|
.mx_AppTile_mini {
|
2018-07-23 22:08:17 +08:00
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2020-04-21 04:05:50 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-05-11 23:26:41 +08:00
|
|
|
height: var(--AppTile_mini-height);
|
2018-07-23 22:08:17 +08:00
|
|
|
}
|
|
|
|
|
2020-04-21 04:05:50 +08:00
|
|
|
.mx_AppTile .mx_AppTile_persistedWrapper,
|
|
|
|
.mx_AppTileFullWidth .mx_AppTile_persistedWrapper,
|
2018-07-23 22:58:07 +08:00
|
|
|
.mx_AppTile_mini .mx_AppTile_persistedWrapper {
|
2020-04-21 04:05:50 +08:00
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AppTile_persistedWrapper div {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-07-23 22:08:17 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_AppTileMenuBar {
|
|
|
|
margin: 0;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-12px;
|
2018-04-12 07:23:35 +08:00
|
|
|
background-color: $widget-menu-bar-bg-color;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2020-04-21 04:05:50 +08:00
|
|
|
width: 100%;
|
2022-06-03 18:00:16 +08:00
|
|
|
padding-top: 3px;
|
|
|
|
padding-bottom: 6px;
|
2019-02-01 18:02:02 +08:00
|
|
|
|
2023-05-12 19:33:23 +08:00
|
|
|
.mx_AppTileMenuBar_title {
|
|
|
|
line-height: 20px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-10-12 20:36:09 +08:00
|
|
|
|
2023-05-12 19:33:23 +08:00
|
|
|
.mx_WidgetAvatar {
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2024-05-08 21:57:17 +08:00
|
|
|
h3 {
|
|
|
|
font-size: inherit;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2023-05-12 19:33:23 +08:00
|
|
|
> :last-child {
|
|
|
|
margin-left: 9px;
|
2023-09-22 20:57:07 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-05-12 19:33:23 +08:00
|
|
|
}
|
2023-05-10 05:07:12 +08:00
|
|
|
}
|
2019-02-01 18:02:02 +08:00
|
|
|
|
2023-05-12 19:33:23 +08:00
|
|
|
.mx_AppTileMenuBar_widgets {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-05-11 23:26:41 +08:00
|
|
|
|
2023-05-22 15:48:40 +08:00
|
|
|
.mx_AppTileMenuBar_widgets_button {
|
|
|
|
--size: 24px; /* Size of the button. Its height and width values should be same */
|
2022-06-03 18:00:16 +08:00
|
|
|
|
2023-05-22 15:48:40 +08:00
|
|
|
margin: 0 4px;
|
|
|
|
position: relative;
|
2023-05-12 19:33:23 +08:00
|
|
|
height: var(--size);
|
|
|
|
width: var(--size);
|
2023-05-22 15:48:40 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
&:hover::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
height: var(--size);
|
|
|
|
width: var(--size);
|
|
|
|
background-color: $panel-actions;
|
|
|
|
border-radius: 50%;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Icon {
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
2023-05-12 19:33:23 +08:00
|
|
|
}
|
2021-11-16 22:43:18 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
/* Rules added to this selector style appTileBody generally */
|
|
|
|
.mx_AppTileBody {
|
|
|
|
/* Apply to every variant of appTileBody */
|
2020-10-20 23:06:35 +08:00
|
|
|
border-radius: 8px;
|
2023-06-01 23:17:28 +08:00
|
|
|
|
|
|
|
/* const loadingElement */
|
2023-06-17 02:24:10 +08:00
|
|
|
/* Note the loading spinner and the message next to it are not always included in mx_AppTileBody--loading */
|
2023-06-01 23:17:28 +08:00
|
|
|
.mx_AppTileBody_fadeInSpinner {
|
|
|
|
/* place spinner and the message at the center of mx_AppTileBody */
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
font-weight: bold; /* message next to the spinner */
|
|
|
|
animation-fill-mode: backwards;
|
|
|
|
animation-duration: 200ms;
|
|
|
|
animation-delay: 500ms;
|
|
|
|
animation-name: mx_AppTileBody_fadeInSpinnerAnimation;
|
|
|
|
}
|
2023-05-11 23:26:41 +08:00
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
&.mx_AppTileBody--large,
|
|
|
|
&.mx_AppTileBody--mini {
|
|
|
|
width: 100%;
|
2023-05-11 23:26:41 +08:00
|
|
|
overflow: hidden;
|
2023-06-17 02:24:10 +08:00
|
|
|
height: var(--AppTileBody-height);
|
|
|
|
|
|
|
|
iframe {
|
|
|
|
border: none;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2023-05-11 23:26:41 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
&.mx_AppTileBody--large {
|
|
|
|
--AppTileBody-height: 100%;
|
2018-07-13 01:43:49 +08:00
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
background-color: $widget-body-bg-color;
|
2020-04-21 04:05:50 +08:00
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
iframe {
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2020-10-20 23:06:35 +08:00
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
&.mx_AppTileBody--mini {
|
|
|
|
--AppTileBody-height: var(--AppTile_mini-height);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_AppTileBody--loading {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
/* match bg of border so that the cut corners have the right fill */
|
|
|
|
background-color: $widget-body-bg-color !important;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
iframe {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-05-08 20:38:04 +08:00
|
|
|
}
|
2023-12-20 20:39:57 +08:00
|
|
|
|
|
|
|
&.mx_AppTileBody--call {
|
|
|
|
border-radius: 0px;
|
|
|
|
}
|
2024-01-08 20:11:44 +08:00
|
|
|
&.mx_AppTileBody--call.mx_AppTileBody--mini {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2018-05-09 23:41:45 +08:00
|
|
|
}
|
|
|
|
|
2023-06-17 02:24:10 +08:00
|
|
|
/* appTileBody is embedded to PersistedElement outside of mx_AppTile,
|
|
|
|
so rules to style appTileBody generally should not be included here. */
|
|
|
|
.mx_AppTile .mx_AppTileBody--large,
|
|
|
|
.mx_AppTileFullWidth .mx_AppTileBody--large,
|
|
|
|
.mx_AppTile_mini .mx_AppTileBody--mini {
|
|
|
|
height: inherit;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2023-06-01 23:17:28 +08:00
|
|
|
@keyframes mx_AppTileBody_fadeInSpinnerAnimation {
|
2019-07-10 01:15:10 +08:00
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-05-09 23:41:45 +08:00
|
|
|
}
|