Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4de9071

Browse files
authored
Use spacing variables on _BetaCard.pcss (#10291)
1 parent bda54a8 commit 4de9071

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

res/css/views/beta/_BetaCard.pcss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ limitations under the License.
1515
*/
1616

1717
.mx_BetaCard {
18-
margin-bottom: 20px;
19-
padding: 24px;
18+
margin-bottom: $spacing-20;
19+
padding: $spacing-24;
2020
background-color: $system;
2121
border-radius: 8px;
2222
box-sizing: border-box;
@@ -25,7 +25,7 @@ limitations under the License.
2525
.mx_BetaCard_columns {
2626
display: flex;
2727
flex-flow: wrap;
28-
gap: 20px;
28+
gap: $spacing-20;
2929
justify-content: center;
3030

3131
.mx_BetaCard_columns_description {
@@ -36,11 +36,11 @@ limitations under the License.
3636
font-size: $font-18px;
3737
line-height: $font-22px;
3838
color: $primary-content;
39-
margin: 4px 0 14px;
39+
margin: $spacing-4 0 14px; // TODO: use a spacing variable
4040

4141
display: flex;
4242
align-items: center;
43-
column-gap: 12px;
43+
column-gap: $spacing-12;
4444
}
4545

4646
.mx_BetaCard_caption {
@@ -78,7 +78,7 @@ limitations under the License.
7878
line-height: $font-15px;
7979

8080
> h4 {
81-
margin: 12px 0 0;
81+
margin: $spacing-12 0 0;
8282
}
8383

8484
> p {
@@ -102,13 +102,13 @@ limitations under the License.
102102

103103
.mx_BetaCard_relatedSettings {
104104
.mx_SettingsFlag {
105-
margin: 16px 0 0;
105+
margin: $spacing-16 0 0;
106106
font-size: $font-15px;
107107
line-height: $font-24px;
108108
color: $primary-content;
109109

110110
.mx_SettingsFlag_microcopy {
111-
margin-top: 4px;
111+
margin-top: $spacing-4;
112112
font-size: $font-12px;
113113
line-height: $font-15px;
114114
}
@@ -122,10 +122,10 @@ limitations under the License.
122122

123123
.mx_BetaCard_betaPill {
124124
background-color: $accent-alt;
125-
padding: 4px 10px;
125+
padding: $spacing-4 10px; // TODO: use a spacing variable
126126
border-radius: 8px;
127127
text-transform: uppercase;
128-
font-size: 12px;
128+
font-size: $font-12px;
129129
font-weight: $font-semi-bold;
130130
line-height: 15px;
131131
color: $button-primary-fg-color;

0 commit comments

Comments
 (0)