From d6ac634887cee2d3f9f8b90df0fd6634328df1d2 Mon Sep 17 00:00:00 2001 From: Wendell Piez Date: Fri, 26 Mar 2021 16:24:43 -0400 Subject: [PATCH] Adjustments to SCSS for schema docs RC2 enhancements cf usnistgov/metaschema#120 --- docs/assets/scss/schema-docs.scss | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/docs/assets/scss/schema-docs.scss b/docs/assets/scss/schema-docs.scss index 62ce247bca..ee76f8b467 100644 --- a/docs/assets/scss/schema-docs.scss +++ b/docs/assets/scss/schema-docs.scss @@ -2,7 +2,7 @@ /*.model-entry p { margin-top: units( 0.5 )*/ -summary { display: list-item; cursor: pointer } +summary { display: list-item; cursor: pointer; list-style-position: outside } summary:focus { outline: none } @@ -16,6 +16,11 @@ li.model-entry > *:not(:first-child) { @extend .font-body-xs } li.model-entry h3 { margin: 0em } + +h2, h3 { @include u-font-family('sans') } + +body > div > section { margin-top: 1em } + .definition-header { @extend .padding-1; @extend .bg-base-lightest } .definition-header * { margin: 0em; clear: left } @@ -129,12 +134,24 @@ span.OM-datatype { @extend .font-sans-sm; @include u-font-family('sans'); font-size: smaller } .OM-name { - @extend .text-primary; } - + font-style: normal; + @include u-font-family('mono'); + } + +.OM-ref { + @extend .text-primary; + font-style: normal; + font-size: 90%; + @include u-font-family('mono'); + } + + .OM-map a { text-decoration: none; @extend .text-primary; } +.OM-gloss { font-style: italic } + OM-map a:visited { @extend .text-primary; } @@ -156,11 +173,13 @@ pre.json { .define-assembly, .define-field, .define-flag { +} + +section { @extend .margin-top-1; @extend .border; @extend .border-base-lighter; - @extend .padding-1 -} + @extend .padding-1 } .formal-name { @extend .font-sans-lg; @@ -168,6 +187,8 @@ pre.json { margin: 0.5em 0em } +.syntax-boxes { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1em } + .cnstr-tag { @extend .usa-tag; @extend .bg-primary-dark }