Skip to content

Commit 26f7038

Browse files
committed
Update unsupported browser react component to new designs
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 334d268 commit 26f7038

File tree

11 files changed

+237
-318
lines changed

11 files changed

+237
-318
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
"dependencies": {
7474
"@formatjs/intl-segmenter": "^11.5.7",
7575
"@matrix-org/react-sdk-module-api": "^2.3.0",
76+
"@vector-im/compound-design-tokens": "^1.6.1",
77+
"@vector-im/compound-web": "^5.4.0",
7678
"jsrsasign": "^11.0.0",
7779
"katex": "^0.16.0",
7880
"lodash": "^4.17.21",

res/css/structures/ErrorView.pcss

Lines changed: 27 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -14,94 +14,51 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
/* import font-size variables manually,
18-
ideally this file would get loaded by the theme which has all variables in context */
19-
@import "../../../node_modules/matrix-react-sdk/res/css/_font-sizes.pcss";
20-
2117
.mx_ErrorView {
22-
background: #c5e0f7;
23-
background: -moz-linear-gradient(top, #c5e0f7 0%, #ffffff 100%);
24-
background: -webkit-linear-gradient(top, #c5e0f7 0%, #ffffff 100%);
25-
background: linear-gradient(to bottom, #c5e0f7 0%, #ffffff 100%);
26-
/* stylelint-disable-next-line function-no-unknown */
27-
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#c5e0f7', endColorstr='#ffffff', GradientType=0);
18+
--width: 520px;
19+
--cpd-separator-inset: calc(50% - (var(--width) / 2));
20+
--cpd-separator-spacing: var(--cpd-space-8x);
21+
2822
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
2923
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
30-
color: #000;
24+
text-align: center;
25+
color: var(--cpd-color-text-primary);
3126
width: 100%;
3227
height: 100%;
33-
overflow: auto;
34-
padding: 0 20px;
3528
box-sizing: border-box;
29+
overflow: auto;
30+
padding: var(--cpd-space-20x);
3631

37-
.mx_ErrorView_container {
38-
max-width: 680px;
39-
margin: auto;
40-
}
41-
42-
.mx_Button {
43-
border: 0;
44-
border-radius: 4px;
45-
font-size: $font-18px;
46-
margin-left: 4px;
47-
margin-right: 4px;
48-
min-width: 80px;
49-
background-color: #03b381;
50-
color: #fff;
51-
cursor: pointer;
52-
padding: 12px 22px;
53-
word-break: break-word;
54-
text-decoration: none;
55-
}
32+
background-color: var(--cpd-color-theme-bg);
33+
background-image: url("../../themes/element/img/backgrounds/compound-fade-arc-light.png");
34+
background-repeat: no-repeat;
35+
background-size: 100% 100%;
5636

57-
.mx_Center {
58-
justify-content: center;
37+
.mx_ErrorView_logo {
38+
display: block;
39+
margin: 0 auto;
5940
}
6041

61-
.mx_HomePage_header {
62-
color: #2e2f32;
63-
display: flex;
64-
align-items: center;
65-
justify-content: center;
42+
.mx_ErrorView_container {
43+
max-width: var(--width);
44+
margin: 0 auto var(--cpd-space-8x);
6645
}
6746

68-
font-size: $font-16px;
69-
h1 {
70-
font-size: $font-32px;
71-
}
47+
h1,
7248
h2 {
73-
font-size: $font-24px;
74-
color: #000;
75-
}
76-
77-
.mx_HomePage_col {
78-
display: flex;
79-
flex-direction: row;
80-
}
81-
82-
.mx_HomePage_row {
83-
flex: 1 1 0;
84-
display: flex;
85-
flex-direction: row;
86-
flex-wrap: wrap;
49+
color: var(--cpd-color-text-primary);
8750
}
8851

89-
.mx_HomePage_logo {
90-
margin: auto 20px auto 0;
91-
}
92-
93-
h1,
94-
h2 {
95-
font-weight: 600;
96-
margin-bottom: 32px;
52+
p {
53+
color: var(--cpd-color-text-secondary);
9754
}
9855

99-
.mx_Spacer {
100-
margin-top: 24px;
56+
.mx_Flex {
57+
margin: 0 auto;
58+
width: max-content;
10159
}
10260

103-
.mx_FooterLink {
104-
color: #368bd6;
105-
text-decoration: none;
61+
.mx_ErrorView_buttons {
62+
margin-top: var(--cpd-space-6x);
10663
}
10764
}
5.96 KB
Loading
132 KB
Loading

src/async-components/structures/CompatibilityView.tsx

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

0 commit comments

Comments
 (0)