Skip to content

Commit e9080ad

Browse files
committed
Add grid to schema
# Conflicts: # src/resources/editor/tools/vs-code.mjs # src/resources/editor/tools/yaml/web-worker.js # src/resources/editor/tools/yaml/yaml-intelligence-resources.json
1 parent 7474288 commit e9080ad

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/format/html/format-html-scss.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function pandocVariablesToThemeDefaults(
449449
add(explicitVars, "grid-sidebar-base-width", gridObj["sidebar-base-width"]);
450450
add(explicitVars, "grid-margin-base-width", gridObj["margin-base-width"]);
451451
add(explicitVars, "grid-body-base-width", gridObj["body-base-width"]);
452-
add(explicitVars, "grid-gutter-width", gridObj["gutter-width"]);
452+
add(explicitVars, "grid-column-gutter-width", gridObj["gutter-width"]);
453453
}
454454
return explicitVars;
455455
}

src/resources/schema/document-layout.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,25 @@
7878
Target page width for output (used to compute columns widths for `layout` divs).
7979
Defaults to 6.5 inches, which corresponds to default letter page settings in
8080
docx and odt.
81+
82+
- name: grid
83+
schema:
84+
object:
85+
closed: true
86+
properties:
87+
sidebar-base-width:
88+
string:
89+
description: "The base width of the sidebar (left) column in an HTML page."
90+
margin-base-width:
91+
string:
92+
description: "The base width of the margin (right) column in an HTML page."
93+
body-base-width:
94+
string:
95+
description: "The base width of the body (center) column in an HTML page."
96+
gutter-width:
97+
string:
98+
description: "The width of the gutter that appears between columns in an HTML page."
99+
81100
- name: appendix-style
82101
schema:
83102
anyOf:

0 commit comments

Comments
 (0)