Skip to content

Commit

Permalink
Make text entry styling more like other places in Fontra
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Sep 14, 2023
1 parent 352c98b commit f6fd2b1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/fontra/client/web-components/ui-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Form extends SimpleElement {
.ui-form {
display: grid;
grid-template-columns: 30% auto;
grid-template-columns: 32% auto;
box-sizing: border-box;
gap: 0.35rem 0.35rem;
overflow-x: hidden;
Expand Down Expand Up @@ -52,17 +52,21 @@ export class Form extends SimpleElement {
input {
box-sizing: border-box;
background-color: red;
background-color: var(--text-input-background-color);
color: var(--text-input-foreground-color);
border-radius: 0.25em;
border: none;
outline: none;
padding: 0.1em 0.3em;
font-family: "fontra-ui-regular";
}
.ui-form-value {
box-sizing: border-box;
}
.ui-form-value input {
font-family: "fontra-ui-regular";
border: solid 1px var(--ui-form-input-border-color);
background-color: var(--ui-form-input-background-color);
color: var(--ui-form-input-foreground-color);
width: min(100%, 9.5em);
}
Expand Down

0 comments on commit f6fd2b1

Please sign in to comment.