Skip to content

Commit 49f724d

Browse files
committed
Font.
1 parent 71dfa77 commit 49f724d

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

src/pg/inputNumber/inputNumber.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
border: 1px solid var(--pg-input-text-border-color, #453C4F);
88
border-radius: 0.125rem;
99
padding: var(--pg-input-text-padding, calc(0.5rem - 1px) 0.75rem);
10-
font-family: var(--pg-font-family);
10+
font-family: var(--pg-input-number-font-family, var(--pg-font-family));
1111
font-size: 1rem;
1212
outline: none;
1313
field-sizing: content;
@@ -31,4 +31,4 @@
3131
}
3232
[part=input]:focus {
3333
box-shadow: 0 0 0 3px var(--pg-input-text-focus-glow, rgb(79, 143, 249, 0.5));
34-
}
34+
}

src/pg/inputText/inputText.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
border: 1px solid var(--pg-input-text-border-color, #453C4F);
88
border-radius: 0.125rem;
99
padding: var(--pg-input-text-padding, calc(0.5rem - 1px) 0.75rem);
10-
font-family: var(--pg-font-family);
10+
font-family: var(--pg-input-text-font-family, var(--pg-font-family));
1111
font-size: 1rem;
1212
outline: none;
1313
field-sizing: content;

src/pg/json/json.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
}
44

55
[part=container] {
6-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
6+
--pg-json-font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
7+
font-family: var(--pg-json-font-family);
78
user-select: none;
89
}

src/pg/jsonBoolean/jsonBoolean.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
}
1010

1111
[part=value] {
12-
--pg-input-select-padding: 0 0.25rem;
13-
--pg-input-select-border-color: transparent;
1412
margin: 0 -0.25rem;
13+
background-color: transparent;
14+
border: 0;
15+
font-size: 1rem;
16+
padding: 0.125rem 0.25rem;
17+
vertical-align: middle;
18+
font-family: inherit;
1519
z-index: 1;
1620
position: relative;
1721
}

src/pg/jsonNumber/jsonNumber.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
user-select: text;
1313
--pg-input-text-padding: 0 0.25rem;
1414
--pg-input-text-border-color: transparent;
15+
--pg-input-number-font-family: var(--pg-json-font-family);
1516
display: inline-flex;
1617
vertical-align: middle;
1718
margin: 0 -0.25rem;

src/pg/jsonString/jsonString.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
user-select: text;
1313
--pg-input-text-padding: 0 0.25rem;
1414
--pg-input-text-border-color: transparent;
15+
--pg-input-text-font-family: var(--pg-json-font-family);
1516
display: inline-flex;
1617
vertical-align: middle;
1718
margin: 0 -0.25rem;

0 commit comments

Comments
 (0)