// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Lesser General Public License
// that can be found in the LICENSE file.
/* Styles for FormLabel */
/* Styles applied to the root element. */
.ZuFormLabel-root {
position: relative;
padding: 0;
/* body1 */
font-family: $zu-typography-body1-fontFamily;
font-weight: $zu-typography-body1-fontWeight;
font-size: $zu-typography-body1-fontSize;
line-height: 1.4375em;
letter-spacing: $zu-typography-body1-letterSpacing;
color: $zu-palette-text-secondary;
/* Styles applied to the root element if the color is secondary. */
&.ZuFormLabel-colorSecondary {
}
/* State class applied to the root element if focused={true}. */
&.ZuFormLabel-focused {
&.ZuFormLabel-colorPrimary {
color: $zu-palette-primary-main;
}
&.ZuFormLabel-colorSecondary {
color: $zu-palette-secondary-main;
}
&.ZuFormLabel-colorSuccess {
color: $zu-palette-success-main;
}
&.ZuFormLabel-colorInfo {
color: $zu-palette-info-main;
}
&.ZuFormLabel-colorWarning {
color: $zu-palette-warning-main;
}
&.ZuFormLabel-colorError {
color: $zu-palette-error-main;
}
}
/* State class applied to the root element if disabled={true}. */
&.ZuFormLabel-disabled {
color: $zu-palette-text-disabled;
}
/* State class applied to the root element if error={true}. */
&.ZuFormLabel-error {
color: $zu-palette-error-main;
}
}
/* State class applied to the root element if filled={true}. */
.ZuFormLabel-filled {
}
/* State class applied to the root element if required={true}. */
.ZuFormLabel-required {
}
/* Styles applied to the asterisk element. */
.ZuFormLabel-asterisk {
&.ZuFormLabel-error {
color: $zu-palette-error-main;
}
}