Replace Sass variables with custom properties on _font-weights.pcss (#10554)

* Replace `$font-normal` and `$font-semi-bold`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Replace `font-weight: 600` with the custom property

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Replace the existing variables

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
Suguru Hirahara 2023-04-21 14:16:00 +00:00 committed by GitHub
parent 7c4d0ceddc
commit 92906c2130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
95 changed files with 149 additions and 147 deletions

View file

@ -329,7 +329,7 @@ $MinWidth: 240px;
}
.mx_AppPermissionWarning_bolder {
font-weight: 600;
font-weight: var(--font-semi-bold);
}
.mx_AppPermissionWarning h4 {

View file

@ -73,7 +73,7 @@ limitations under the License.
.mx_DecryptionFailureBar_start_headline {
grid-area: headline;
font-weight: $font-semi-bold;
font-weight: var(--font-semi-bold);
font-size: $font-16px;
align-self: center;
}

View file

@ -50,7 +50,7 @@ limitations under the License.
.mx_MemberInfo h2 {
font-size: $font-18px;
font-weight: 600;
font-weight: var(--font-semi-bold);
margin: 16px 0 16px 15px;
}

View file

@ -31,7 +31,7 @@ limitations under the License.
h2 {
text-transform: uppercase;
color: $h3-color;
font-weight: 600;
font-weight: var(--font-semi-bold);
font-size: $font-13px;
padding-left: 3px;
padding-right: 12px;
@ -85,7 +85,7 @@ limitations under the License.
display: flex;
justify-content: center;
color: $button-fg-color;
font-weight: 600;
font-weight: var(--font-semi-bold);
}
.mx_MemberList_invite.mx_AccessibleButton_disabled {

View file

@ -99,7 +99,7 @@ limitations under the License.
.mx_MessageComposerFormatBar_buttonTooltip {
white-space: nowrap;
font-size: $font-13px;
font-weight: 600;
font-weight: var(--font-semi-bold);
min-width: 54px;
text-align: center;

View file

@ -55,7 +55,7 @@ limitations under the License.
> h2 {
margin-top: 24px;
font-size: $font-24px;
font-weight: 600;
font-weight: var(--font-semi-bold);
}
> p {

View file

@ -48,7 +48,7 @@ limitations under the License.
.mx_PinnedEventTile_sender {
grid-area: name;
font-weight: $font-semi-bold;
font-weight: var(--font-semi-bold);
font-size: $font-15px;
line-height: $font-24px;
text-overflow: ellipsis;

View file

@ -86,7 +86,7 @@ limitations under the License.
font-size: 12px;
line-height: 15px;
margin: 16px 16px 8px;
font-weight: 600;
font-weight: var(--font-semi-bold);
/* shouldnt be actually focusable */
outline: none;
}

View file

@ -44,7 +44,7 @@ limitations under the License.
}
.mx_RoomBreadcrumbs_placeholder {
font-weight: 600;
font-weight: var(--font-semi-bold);
font-size: $font-14px;
line-height: 32px; /* specifically to match the height this is not scaled */
height: 32px;

View file

@ -36,7 +36,7 @@ limitations under the License.
.mx_RoomCallBanner_label {
color: $primary-content;
font-weight: 600;
font-weight: var(--font-semi-bold);
padding-right: $spacing-8;
&::before {

View file

@ -65,7 +65,7 @@ limitations under the License.
flex: 0 1 auto;
overflow: hidden;
color: $primary-content;
font-weight: $font-semi-bold;
font-weight: var(--font-semi-bold);
font-size: $font-15px;
min-height: 24px;
align-items: center;

View file

@ -50,7 +50,7 @@ limitations under the License.
font-size: $font-14px;
div:first-child {
font-weight: $font-semi-bold;
font-weight: var(--font-semi-bold);
line-height: $font-18px;
color: $primary-content;
}

View file

@ -22,7 +22,7 @@ limitations under the License.
.mx_RoomListHeader_contextMenuButton {
font-size: $font-15px;
line-height: $font-24px;
font-weight: $font-semi-bold;
font-weight: var(--font-semi-bold);
padding: 1px 24px 1px 4px;
position: relative;
overflow: hidden;

View file

@ -24,7 +24,7 @@ limitations under the License.
h3 {
font-size: $font-18px;
font-weight: 600;
font-weight: var(--font-semi-bold);
&.mx_RoomPreviewBar_spinnerTitle {
display: flex;
@ -141,7 +141,7 @@ limitations under the License.
}
.mx_RoomPreviewBar_inviter {
font-weight: 600;
font-weight: var(--font-semi-bold);
}
a.mx_RoomPreviewBar_inviter {

View file

@ -26,7 +26,7 @@ limitations under the License.
font-size: $font-14px;
.mx_RoomPreviewCard_notice {
font-weight: $font-semi-bold;
font-weight: var(--font-semi-bold);
line-height: $font-24px;
color: $primary-content;
margin-top: $spacing-24;

View file

@ -147,7 +147,7 @@ limitations under the License.
max-width: calc(100% - 16px); /* 16px is the badge width */
line-height: $font-16px;
font-size: $font-13px;
font-weight: 600;
font-weight: var(--font-semi-bold);
/* Ellipsize any text overflow */
text-overflow: ellipsis;
@ -399,7 +399,7 @@ limitations under the License.
.mx_RoomSublist_contextMenu_title {
font-size: $font-15px;
line-height: $font-20px;
font-weight: 600;
font-weight: var(--font-semi-bold);
margin-bottom: 4px;
}

View file

@ -70,7 +70,7 @@ limitations under the License.
line-height: $font-18px;
&.mx_RoomTile_titleHasUnreadEvents {
font-weight: 600;
font-weight: var(--font-semi-bold);
}
}

View file

@ -49,7 +49,7 @@ limitations under the License.
cursor: pointer;
color: $primary-content;
border-bottom: 2px solid $accent;
font-weight: 600;
font-weight: var(--font-semi-bold);
}
.mx_SearchBar_unselected {

View file

@ -107,7 +107,7 @@ limitations under the License.
}
.mx_ThreadSummary_sender {
font-weight: $font-semi-bold;
font-weight: var(--font-semi-bold);
}
.mx_ThreadSummary_content {

View file

@ -58,7 +58,7 @@ limitations under the License.
.mx_WhoIsTypingTile_label {
flex: 1;
font-size: $font-14px;
font-weight: 600;
font-weight: var(--font-semi-bold);
color: $roomtopic-color;
}