Skip to content

Commit

Permalink
Clean up paper input style definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Dec 2, 2023
1 parent 9ef99ed commit c1909d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/panels/developer-tools/state/developer-tools-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,6 @@ class HaPanelDevState extends LitElement {
.entities th {
padding: 0 8px;
text-align: left;
font-size: var(
--paper-input-container-shared-input-style_-_font-size
);
}
.filters th {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,6 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
th {
padding: 0 8px;
text-align: left;
font-size: var(
--paper-input-container-shared-input-style_-_font-size
);
}
:host([rtl]) th {
Expand Down
11 changes: 4 additions & 7 deletions src/resources/codemirror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ export const haTheme = EditorView.theme({
border: "0",
background: "none",
fontFamily: "Roboto",
borderBottom:
"1px solid var(--paper-input-container-color, var(--secondary-text-color))",
borderBottom: "1px solid var(--secondary-text-color)",
margin: "4px 4px 0",
"& ::placeholder": {
color: "var(--paper-input-container-color, var(--secondary-text-color))",
color: "var(--secondary-text-color)",
},
"&:focus": {
outline: "none",
Expand Down Expand Up @@ -185,13 +184,11 @@ export const haTheme = EditorView.theme({
"var(--code-editor-gutter-color, var(--secondary-background-color, whitesmoke))",
color: "var(--paper-dialog-color, var(--secondary-text-color))",
border: "none",
borderRight:
"1px solid var(--paper-input-container-color, var(--secondary-text-color))",
borderRight: "1px solid var(--secondary-text-color)",
paddingRight: "1px",
},
"&.cm-focused .cm-gutters": {
borderRight:
"2px solid var(--paper-input-container-focus-color, var(--primary-color))",
borderRight: "2px solid var(--primary-color)",
paddingRight: "0",
},
".cm-gutterElement.lineNumber": { color: "inherit" },
Expand Down

0 comments on commit c1909d9

Please sign in to comment.