@@ -14,94 +14,61 @@ See the License for the specific language governing permissions and
1414limitations 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 : 520 px ;
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 20 px ;
3528 box-sizing : border-box;
29+ overflow : auto;
30+ padding : var (--cpd-space-20x );
3631
37- .mx_ErrorView_container {
38- max-width : 680 px ;
39- margin : auto ;
40- }
32+ background-color : var ( --cpd-color-theme-bg );
33+ background-image : url( "../../themes/element/img/compound/fade-arc-light.png" ) ;
34+ background-repeat : no-repeat ;
35+ background-size : 100 % 100 % ;
4136
42- .mx_Button {
43- border : 0 ;
44- border-radius : 4 px ;
45- font-size : $font-18px ;
46- margin-left : 4 px ;
47- margin-right : 4 px ;
48- min-width : 80 px ;
49- background-color : #03b381 ;
50- color : #fff ;
51- cursor : pointer;
52- padding : 12 px 22 px ;
53- word-break : break-word;
54- text-decoration : none;
37+ .mx_ErrorView_logo {
38+ display : block;
39+ margin : 0 auto;
5540 }
5641
57- .mx_Center {
58- justify-content : center;
42+ .mx_ErrorView_container {
43+ max-width : var (--width );
44+ margin : 0 auto var (--cpd-space-8x );
5945 }
6046
61- .mx_HomePage_header {
62- color : #2e2f32 ;
63- display : flex;
64- align-items : center;
65- justify-content : center;
47+ h1 ,
48+ h2 {
49+ color : var (--cpd-color-text-primary );
6650 }
6751
68- font-size : $font-16px ;
69- h1 {
70- font-size : $font-32px ;
71- }
7252 h2 {
73- font-size : $font-24px ;
74- color : #000 ;
53+ margin : var (--cpd-space-8x ) 0 ;
54+ /* Workaround for heading sm being broken in Compound design tokens */
55+ font-size : var (--cpd-font-size-heading-sm );
56+ line-height : var (--cpd-font-line-height-tight );
57+ font-weight : var (--cpd-font-weight-semibold );
7558 }
7659
77- .mx_HomePage_col {
78- display : flex;
79- flex-direction : row;
60+ p {
61+ color : var (--cpd-color-text-secondary );
8062 }
8163
82- .mx_HomePage_row {
83- flex : 1 1 0 ;
84- display : flex;
85- flex-direction : row;
64+ .mx_Flex {
65+ margin : 0 auto;
66+ max-width : max-content;
8667 flex-wrap : wrap;
68+ justify-content : space-evenly;
8769 }
8870
89- .mx_HomePage_logo {
90- margin : auto 20 px auto 0 ;
91- }
92-
93- h1 ,
94- h2 {
95- font-weight : 600 ;
96- margin-bottom : 32 px ;
97- }
98-
99- .mx_Spacer {
100- margin-top : 24 px ;
101- }
102-
103- .mx_FooterLink {
104- color : #368bd6 ;
105- text-decoration : none;
71+ .mx_ErrorView_buttons {
72+ margin-top : var (--cpd-space-6x );
10673 }
10774}
0 commit comments