Skip to content

Commit a81ea2c

Browse files
committed
fix: use new scraped font pairs; adjust code to simpler json structure
1 parent e8f2870 commit a81ea2c

File tree

4 files changed

+2839
-1724
lines changed

4 files changed

+2839
-1724
lines changed

src/global-settings.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,19 @@ public function register_global_settings() {
309309
'name' => array(
310310
'type' => 'string',
311311
),
312-
'value' => array(
313-
'type' => 'array',
314-
'items' => array(
315-
'type' => 'object',
316-
'properties' => array(
317-
'selector' => array(
318-
'type' => 'string',
319-
),
320-
'styles' => $stackable_global_typography_schema
321-
),
322-
),
312+
'typography' => array(
313+
'type' => 'object',
314+
'properties' => array(
315+
'h1' => $stackable_global_typography_schema,
316+
'h2' => $stackable_global_typography_schema,
317+
'h2' => $stackable_global_typography_schema,
318+
'h3' => $stackable_global_typography_schema,
319+
'h4' => $stackable_global_typography_schema,
320+
'h5' => $stackable_global_typography_schema,
321+
'h6' => $stackable_global_typography_schema,
322+
'p' => $stackable_global_typography_schema,
323+
'.stk-subtitle' => $stackable_global_typography_schema,
324+
)
323325
),
324326
)
325327
)

src/plugins/global-settings/typography/editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
.ugb-global-settings-font-pair__container {
100100
width: calc(100% - 32px);
101101
margin: 0 16px;
102-
max-height: 310px;
102+
max-height: 280px;
103103
overflow: auto;
104104
border: 1px solid #ddd;
105105
padding: 8px;

0 commit comments

Comments
 (0)