Skip to content

Commit

Permalink
css variables for inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomEtc committed Sep 30, 2023
1 parent 83be5c1 commit 1a45b6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export const baseStyles = css`
/* input styles */
--ra-input-border: 1px solid #cccccc;
--ra-input-focus-color: blue;
--ra-input-padding: 0.5rem 1rem;
--ra-input-font-size: var(--ra-embed-font-size);
--ra-input-line-height: var(--ra-embed-line-height);
--ra-input-border-radius: 4px;
}
:host {
Expand Down
8 changes: 4 additions & 4 deletions src/styles/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { css } from 'lit';

export const inputStyles = css`
input {
padding: 8px;
font-size: 16px;
line-height: 28px;
padding: var(--ra-input-padding);
font-size: var(--ra-input-font-size);
line-height: var(--ra-input-line-height);
border: var(--ra-input-border);
border-radius: 4px;
border-radius: var(--ra-input-border-radius);
width: 100%;
margin-top: 4px;
margin-left: 0;
Expand Down

0 comments on commit 1a45b6b

Please sign in to comment.