Skip to content

Commit 8736562

Browse files
committed
fix element-hq#3298 correctly, and unbreak scrolling
fixes element-hq#4241 and element-hq#4154
1 parent 96e3c43 commit 8736562

3 files changed

Lines changed: 118 additions & 110 deletions

File tree

‎res/home.html‎

Lines changed: 115 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,118 @@
1-
<link href="home/css/welcome.css" rel="stylesheet">
2-
<div style="display: none" class="mx_HomePage_container">
1+
<style type="text/css">
2+
3+
/* we deliberately inline style here to avoid flash-of-CSS problems, and to avoid
4+
* voodoo where we have to set display: none by default
5+
*/
6+
7+
.mx_HomePage_header h1 {
8+
margin-left: 0px;
9+
margin-bottom: 0px;
10+
margin-top: 20px;
11+
margin-right: 20px;
12+
}
13+
14+
.mx_HomePage_header h2 {
15+
margin-left: 0px;
16+
margin-top: 5px;
17+
margin-bottom: 20px;
18+
margin-right: 20px;
19+
}
20+
21+
.mx_HomePage h3 {
22+
margin-top: 30px;
23+
}
24+
25+
.mx_HomePage_header {
26+
border: 1px solid #76CFA6;
27+
background-color: #eaf5f0;
28+
border-radius: 5px;
29+
color: #454545;
30+
align-items: center;
31+
}
32+
33+
.mx_HomePage_col {
34+
display: flex;
35+
flex-direction: row;
36+
}
37+
38+
.mx_HomePage_toprow {
39+
flex-wrap: wrap;
40+
}
41+
42+
.mx_HomePage_row {
43+
flex: 1 1 0;
44+
margin-right: 20px;
45+
display: flex;
46+
flex-direction: row;
47+
flex-wrap: wrap;
48+
}
49+
50+
.mx_HomePage_logo {
51+
margin-top: 20px;
52+
margin-left: 40px;
53+
margin-right: 40px;
54+
margin-bottom: 20px;
55+
display: inline;
56+
height: 100px;
57+
}
58+
59+
.mx_HomePage_room {
60+
cursor: pointer;
61+
float: left;
62+
text-decoration: none;
63+
text-align: center;
64+
padding-left: 10px;
65+
padding-right: 10px;
66+
width: 120px;
67+
}
68+
69+
.mx_HomePage_toprow .mx_HomePage_room {
70+
width: 64px;
71+
}
72+
73+
74+
.mx_HomePage_room .mx_HomePage_icon {
75+
border-radius: 50%;
76+
width: 64px;
77+
height: 64px;
78+
}
79+
80+
.mx_HomePage_room .mx_HomePage_name {
81+
display: block;
82+
}
83+
84+
.mx_HomePage_room .mx_HomePage_desc {
85+
display: block;
86+
font-size: 12px;
87+
margin-top: 8px;
88+
}
89+
90+
.mx_HomePage_comment {
91+
display: flex;
92+
align-items: center;
93+
margin-left: 100px;
94+
min-height: 64px;
95+
}
96+
97+
.mx_HomePage_container h3::after,
98+
.mx_HomePage_container h4::after {
99+
content: ":";
100+
}
101+
102+
.mx_HomePage_container {
103+
display: block ! important;
104+
margin: 20px;
105+
}
106+
107+
.mx_HomePage_container h1,
108+
.mx_HomePage_container h2,
109+
.mx_HomePage_container h3,
110+
.mx_HomePage_container h4 {
111+
font-weight: 600;
112+
}
113+
</style>
114+
115+
<div class="mx_HomePage_container">
3116
<div class="mx_HomePage_col mx_HomePage_header">
4117
<a href="https://riot.im"><img src="home/images/logo.svg" class="mx_HomePage_logo"></a>
5118
<div>

‎res/home/css/welcome.css‎

Lines changed: 0 additions & 106 deletions
This file was deleted.

‎src/skins/vector/css/vector-web/structures/_HomePage.scss‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ limitations under the License.
1919
max-width: 960px;
2020
width: 100%;
2121
height: 100%;
22-
overflow-y: hidden;
2322
margin-left: auto;
2423
margin-right: auto;
2524
}
25+
2626
.mx_HomePage iframe {
27+
display: block;
2728
width: 100%;
28-
height: 90%;
29+
height: 100%;
2930
border: 0px;
3031
}
3132

0 commit comments

Comments
 (0)