2020-08-05 22:08:55 +05:30
|
|
|
/*
|
|
|
|
Copyright 2020 Bruno Windels <bruno@windels.cloud>
|
2020-08-12 15:22:03 +05:30
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
2020-08-05 22:08:55 +05:30
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2019-06-16 18:51:20 +05:30
|
|
|
html {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2020-10-28 21:26:20 +05:30
|
|
|
/* unknown element in IE11 that defaults to inline */
|
|
|
|
main {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2020-08-14 18:04:39 +05:30
|
|
|
@media screen and (min-width: 600px) {
|
|
|
|
.PreSessionScreen {
|
|
|
|
width: 600px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 auto;
|
|
|
|
margin-top: 50px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-08 19:44:59 +05:30
|
|
|
.room-placeholder {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2019-06-16 18:51:20 +05:30
|
|
|
.SessionView {
|
2020-10-05 20:33:32 +05:30
|
|
|
/* this takes into account whether or not the url bar is hidden on mobile
|
|
|
|
(have tested Firefox Android and Safari on iOS),
|
|
|
|
see https://developers.google.com/web/updates/2016/12/url-bar-resizing */
|
|
|
|
position: fixed;
|
|
|
|
height: 100%;
|
2020-10-28 21:26:20 +05:30
|
|
|
width: 100%;
|
|
|
|
display: grid;
|
|
|
|
grid-template:
|
|
|
|
"status status" auto
|
|
|
|
"left middle" 1fr /
|
|
|
|
300px 1fr;
|
2019-06-16 18:51:20 +05:30
|
|
|
min-height: 0;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
2021-03-17 00:04:34 +05:30
|
|
|
/* resize and reposition session view to account for mobile Safari which shifts
|
|
|
|
the layout viewport up without resizing it when the keyboard shows */
|
|
|
|
.hydrogen.ios .SessionView {
|
|
|
|
height: var(--ios-viewport-height, 100%);
|
|
|
|
top: var(--ios-viewport-top, 0);
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:22:18 +05:30
|
|
|
/* hide back button in middle section by default */
|
|
|
|
.middle .close-middle { display: none; }
|
2019-06-16 18:51:20 +05:30
|
|
|
/* mobile layout */
|
|
|
|
@media screen and (max-width: 800px) {
|
2020-10-28 21:26:20 +05:30
|
|
|
.SessionView:not(.middle-shown) {
|
|
|
|
grid-template:
|
|
|
|
"status" auto
|
|
|
|
"left" 1fr /
|
|
|
|
1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionView.middle-shown {
|
|
|
|
grid-template:
|
|
|
|
"status" auto
|
|
|
|
"middle" 1fr /
|
|
|
|
1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionView:not(.middle-shown) .room-placeholder { display: none; }
|
|
|
|
.SessionView.middle-shown .LeftPanel { display: none; }
|
|
|
|
|
2020-10-07 17:52:00 +05:30
|
|
|
/* show back button */
|
2020-10-19 18:22:18 +05:30
|
|
|
.middle .close-middle { display: block !important; }
|
2020-10-07 17:52:00 +05:30
|
|
|
/* hide grid button */
|
2020-10-14 18:24:56 +05:30
|
|
|
.LeftPanel .grid { display: none !important; }
|
2019-06-16 18:51:20 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.LeftPanel {
|
2020-10-28 21:26:20 +05:30
|
|
|
grid-area: left;
|
2019-06-16 18:51:20 +05:30
|
|
|
min-width: 0;
|
2020-11-02 18:45:24 +05:30
|
|
|
min-height: 0;
|
2019-06-16 18:51:20 +05:30
|
|
|
}
|
|
|
|
|
2020-10-19 18:22:18 +05:30
|
|
|
.room-placeholder, .middle {
|
2019-06-16 18:51:20 +05:30
|
|
|
min-width: 0;
|
2020-10-28 21:26:20 +05:30
|
|
|
grid-area: middle;
|
|
|
|
/* when room view is inside of a grid,
|
|
|
|
grid-area middle won't be found,
|
|
|
|
so set width manually */
|
|
|
|
width: 100%;
|
2020-11-03 13:37:08 +05:30
|
|
|
/* otherwise we don't get scrollbars and the content grows as large as it can */
|
|
|
|
min-height: 0;
|
2020-11-13 20:27:14 +05:30
|
|
|
/* make popups relative to this element so changing the left panel width doesn't affect their position */
|
|
|
|
position: relative;
|
2021-04-27 18:33:13 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.middle {
|
2019-06-16 18:51:20 +05:30
|
|
|
display: flex;
|
2021-04-27 13:58:25 +05:30
|
|
|
flex-direction: column;
|
2019-06-16 18:51:20 +05:30
|
|
|
}
|
|
|
|
|
2020-10-28 21:26:20 +05:30
|
|
|
.SessionStatusView {
|
|
|
|
grid-area: status;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lightbox {
|
2020-11-20 21:02:13 +05:30
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2020-10-28 21:26:20 +05:30
|
|
|
z-index: 1;
|
2021-03-22 18:38:30 +05:30
|
|
|
/* Safari requires an explicit height on the container to prevent picture content from collapsing */
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
2020-10-28 21:26:20 +05:30
|
|
|
}
|
2019-06-16 18:51:20 +05:30
|
|
|
|
2021-04-27 13:58:09 +05:30
|
|
|
.RoomView_body {
|
|
|
|
flex: 1;
|
2019-06-16 18:51:20 +05:30
|
|
|
min-height: 0;
|
2019-09-28 13:15:14 +05:30
|
|
|
min-width: 0;
|
2019-06-16 18:51:20 +05:30
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-07-29 23:41:15 +05:30
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2021-04-27 13:58:09 +05:30
|
|
|
.RoomView_body .Timeline, .RoomView_body .TimelineLoadingView {
|
2019-07-29 23:41:15 +05:30
|
|
|
flex: 1 0 0;
|
2019-06-16 18:51:20 +05:30
|
|
|
}
|
|
|
|
|
2020-10-19 18:22:18 +05:30
|
|
|
.middle-header {
|
2019-06-16 18:51:20 +05:30
|
|
|
display: flex;
|
|
|
|
}
|
2020-10-07 17:52:00 +05:30
|
|
|
|
|
|
|
.RoomGridView {
|
|
|
|
display: grid;
|
|
|
|
}
|
|
|
|
|
2020-10-08 17:47:43 +05:30
|
|
|
.RoomGridView.layout3x2 {
|
|
|
|
grid-template:
|
|
|
|
"t0 t1 t2" 1fr
|
|
|
|
"t3 t4 t5" 1fr /
|
|
|
|
1fr 1fr 1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomGridView > .tile0 {grid-area: t0;}
|
|
|
|
.RoomGridView > .tile1 {grid-area: t1;}
|
|
|
|
.RoomGridView > .tile2 {grid-area: t2;}
|
|
|
|
.RoomGridView > .tile3 {grid-area: t3;}
|
|
|
|
.RoomGridView > .tile4 {grid-area: t4;}
|
|
|
|
.RoomGridView > .tile5 {grid-area: t5;}
|
|
|
|
|
2020-10-07 17:52:00 +05:30
|
|
|
.RoomGridView > div {
|
|
|
|
display: flex;
|
|
|
|
min-width: 0;
|
2020-10-07 21:29:40 +05:30
|
|
|
min-height: 0;
|
2020-10-07 17:52:00 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.RoomGridView > div.focus-ring {
|
|
|
|
z-index: 1;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-11-13 20:27:14 +05:30
|
|
|
|
|
|
|
.menu {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2020-11-17 00:01:04 +05:30
|
|
|
|
2020-11-16 23:59:51 +05:30
|
|
|
.Settings {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SettingsBody {
|
|
|
|
min-height: 0;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|