Move attribute pre styles to ha-attribute-value component (#18649)

This commit is contained in:
Josh McCarty 2023-11-16 04:28:45 -07:00 committed by GitHub
parent e94461f7fe
commit 8d37c5612b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -62,8 +62,11 @@ class HaAttributeValue extends LitElement {
static styles = css`
pre {
font-family: inherit;
font-size: inherit;
margin: 0;
white-space: pre-wrap;
overflow-wrap: break-word;
white-space: pre-line;
}
`;
}

View File

@ -125,13 +125,6 @@ class HaAttributes extends LitElement {
text-align: center;
margin-top: 16px;
}
pre {
font-family: inherit;
font-size: inherit;
margin: 0px;
overflow-wrap: break-word;
white-space: pre-line;
}
hr {
border-color: var(--divider-color);
border-bottom: none;