Skip to content

Commit

Permalink
Move the .row and .row label styles to shared-styles.
Browse files Browse the repository at this point in the history
Part of #6.
  • Loading branch information
jkomoros committed Aug 12, 2023
1 parent 7875277 commit 512c55e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
11 changes: 11 additions & 0 deletions app/components/shared-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,15 @@ export const SharedStyles = css`
details {
color: var(--dark-gray-color);
}
.row {
display: flex;
flex-direction: row;
align-items: center;
margin: 0.5em 0.5em;
}
.row label {
margin-right: 0.5em;
}
`;
13 changes: 1 addition & 12 deletions app/components/value-editor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LitElement } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { html, css, TemplateResult} from 'lit';
import { html, TemplateResult} from 'lit';

import {
SharedStyles
Expand Down Expand Up @@ -30,17 +30,6 @@ export class ValueEditor extends LitElement {
return [
SharedStyles,
ButtonSharedStyles,
css`
.row {
display: flex;
flex-direction: row;
align-items: center;
margin: 0.5em 0.5em;
}
.row label {
margin-right: 0.5em;
}
`
];
}

Expand Down

0 comments on commit 512c55e

Please sign in to comment.