1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-18 04:02:04 +03:00

Use custom properties

This commit is contained in:
Suguru Hirahara
2023-05-13 11:59:56 +00:00
parent 37dce94b0e
commit fe720d05f4

View File

@@ -28,23 +28,26 @@ limitations under the License.
} }
.mx_AuxPanel_stateViews_span { .mx_AuxPanel_stateViews_span {
font-weight: var(--fontWeight);
color: var(--color);
&[data-severity="warning"] { &[data-severity="warning"] {
font-weight: bold; --fontWeight: bold;
color: orange; --color: orange;
} }
&[data-severity="alert"] { &[data-severity="alert"] {
font-weight: bold; --fontWeight: bold;
color: red; --color: red;
} }
&[data-severity="normal"] { &[data-severity="normal"] {
font-weight: normal; --fontWeight: normal;
} }
&[data-severity="notice"] { &[data-severity="notice"] {
font-weight: normal; --fontWeight: normal;
color: $settings-grey-fg-color; --color: $settings-grey-fg-color;
} }
a { a {