Skip to content

Commit b61cd96

Browse files
authored
Merge pull request #134 from Automattic/styling-improvements
Layout improvements
2 parents 74b3d08 + 475a7a1 commit b61cd96

File tree

2 files changed

+38
-5
lines changed

2 files changed

+38
-5
lines changed

frontend/styles/theme/theme.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,35 @@ body {
1717
.RootView.single-room-mode .RoomHeader .close-middle {
1818
display: none !important;
1919
}
20+
21+
/* Remove horizontal scrollbars in pre-session screen. */
22+
@media screen and (min-width: 600px) {
23+
.PreSessionScreen {
24+
width: 570px;
25+
}
26+
}
27+
28+
/* Remove drop-shadow around pre-session screen. */
29+
.PreSessionScreen {
30+
box-shadow: none;
31+
border-radius: 0;
32+
}
33+
34+
/* Reduce whitespace to remove vertical scrollbars in login screen. */
35+
.PreSessionScreen {
36+
margin-top: 0;
37+
padding: 24px;
38+
}
39+
.PreSessionScreen .LoginView_separator {
40+
margin: -2px;
41+
}
42+
43+
/* Remove link to hydrogen on GitHub. */
44+
.PreSessionScreen a[href*="https://github.com/vector-im/hydrogen-web"] {
45+
display: none;
46+
}
47+
48+
/* Remove vertical scrollbars in logout screen. */
49+
.LogoutScreen {
50+
height: 90vh;
51+
}

frontend/targets/block/parent.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@
55
html, body {
66
margin: 0;
77
padding: 0;
8-
width: 100%;
98
height: 100%;
109
}
1110

1211
body {
13-
width: 100%;
14-
height: 100%;
1512
display: flex;
1613
justify-content: center;
1714
align-items: center;
1815
}
1916

2017
.automattic-chatrix-container {
21-
width: 550px;
22-
height: 650px;
18+
width: 600px;
19+
height: 600px;
20+
border-radius: 12px;
21+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 14px 64px -10px rgba(0, 0, 0, 0.2);
2322
}
2423

2524
.automattic-chatrix-iframe {
2625
width: 100%;
2726
height: 100%;
2827
border: 0;
28+
border-radius: inherit;
29+
overflow: hidden;
2930
}

0 commit comments

Comments
 (0)