Skip to content

Commit

Permalink
Adjustments to SCSS for schema docs RC2 enhancements cf usnistgov/met…
Browse files Browse the repository at this point in the history
…aschema#120
  • Loading branch information
wendellpiez committed Mar 30, 2021
1 parent e7a88e4 commit d6ac634
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions docs/assets/scss/schema-docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand All @@ -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 }
Expand Down Expand Up @@ -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; }

Expand All @@ -156,18 +173,22 @@ 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;
font-weight: bold;
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 }
Expand Down

0 comments on commit d6ac634

Please sign in to comment.