Skip to content

Commit

Permalink
fixup! tools,doc: add support for several flavors of JS code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Feb 10, 2021
1 parent 31aace5 commit d3915e0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -837,4 +837,24 @@ kbd {
#apicontent {
overflow: hidden;
}
.js-flavor-selector {
display: none;
}
.js-flavor-selector + * {
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--color-text-primary);
}
.js-flavor-selector ~ * {
display: block !important;
background-position: top right;
background-size: 142px 20px;
background-repeat: no-repeat;
}
.js-flavor-selector ~ .cjs {
background-image: url(./js-flavor-cjs.svg);
}
.js-flavor-selector ~ .esm {
background-image: url(./js-flavor-esm.svg);
}
}

0 comments on commit d3915e0

Please sign in to comment.