element-web-Github/res/css/views/typography/_Heading.pcss
Suguru Hirahara 92906c2130
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>
2023-04-21 14:16:00 +00:00

48 lines
1.2 KiB
Plaintext

/*
Copyright 2021 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_Heading_h1 {
font-size: $font-32px;
font-weight: var(--font-semi-bold);
line-height: $font-39px;
margin-inline: unset;
margin-block: unset;
}
.mx_Heading_h2 {
font-size: $font-24px;
font-weight: var(--font-semi-bold);
line-height: $font-29px;
margin-inline: unset;
margin-block: unset;
}
.mx_Heading_h3 {
font-size: $font-18px;
font-weight: var(--font-semi-bold);
line-height: $font-22px;
margin-inline: unset;
margin-block: unset;
}
.mx_Heading_h4 {
font-size: $font-15px;
font-weight: var(--font-semi-bold);
line-height: $font-20px;
margin-inline: unset;
margin-block: unset;
}