Path: blob/main/src/resources/formats/html/ojs/quarto-ojs.css
12923 views
span.ojs-inline span div {1display: inline-block;2}34/* add some breathing room between display outputs and text especially */5div.cell + section,6div.cell + h1,7div.cell + h2,8div.cell + h3,9div.cell + h4,10div.cell + h5,11div.cell + h6,12div.cell + p {13margin-top: 1rem;14}1516div[nodetype="declaration"]:not([data-output="all"])17div.observablehq:not(observablehq--error) {18display: none;19}2021/* mimic bootstrap behavior which is always correct in observablehq outputs */22.observablehq a:not([href]):not([class]),23.observablehq a:not([href]):not([class]):hover {24color: inherit;25text-decoration: none;26}2728.observablehq .observablehq--inspect {29--code-fallback: Consolas, monaco, monospace;30font-family: var(--bs-font-monospace, var(--code-fallback));31font-size: 0.8em;32}3334.observablehq--field {35margin-left: 1rem;36}3738.observablehq--caret {39margin-right: 2px;40vertical-align: baseline;41}4243.observablehq--collapsed,44.observablehq--expanded.observablehq--inspect a {45cursor: pointer;46}4748/* classes directly from observable's runtime */49.observablehq--key,50.observablehq--index {51color: var(--quarto-hl-dt-color);52}5354.observablehq--string {55color: var(--quarto-hl-st-color);56}5758.observablehq--bigint,59.observablehq--date,60.observablehq--number,61.observablehq--regexp,62.observablehq--symbol {63color: var(--quarto-hl-dv-color);64}6566.observablehq--null,67.observablehq--boolean,68.observablehq--undefined,69.observablehq--keyword {70color: var(--quarto-hl-kw-color);71}7273/* In addition, their import statements specifically come highlighted by hljs.74(probably some legacy feature of theirs?) We handle those here as well.7576Just to be on the safe side, we select on observable's 'md-pre'77class as well, in case someone else uses hljs and wishes to put78their own highlighting.7980TODO Note that to make our highlighting consistent, we're81overriding the "im" class to present like a keyword. I should make82sure this looks right everywhere, but I don't know how to test it83comprehensively.84*/8586code.javascript span.im {87color: var(--quarto-hl-kw-color);88}8990pre.observablehq--md-pre span.hljs-keyword {91color: var(--quarto-hl-kw-color);92}9394pre.observablehq--md-pre span.hljs-string {95color: var(--quarto-hl-st-color);96}9798pre.observablehq--md-pre .span.hljs-date,99pre.observablehq--md-pre .span.hljs-number,100pre.observablehq--md-pre .span.hljs-regexp,101pre.observablehq--md-pre .span.hljs-symbol {102color: var(--quarto-hl-dv-color);103}104105/* Other general niceties, but it's possible that we should do this on a page-by-page basis */106107input {108vertical-align: middle;109}110111input[type="radio"],112input[type="checkbox"] {113margin: 0px 0px 3px 0px;114}115116.observable-in-a-box-waiting-for-module-import {117visibility: hidden;118}119120/* play nicely w/ sidebar layout */121.panel-sidebar .observablehq > form[class^="oi-"] {122flex-wrap: wrap !important;123}124125/* likely that this only makes sense with bootstrap. TODO check with charles */126.observablehq table {127font-size: 0.9em !important;128}129130.quarto-ojs-hide {131display: none;132}133134.quarto-ojs-error-pinpoint {135border-bottom: 2px dotted #e51400;136font-weight: 700;137cursor: pointer;138}139140code span.quarto-ojs-error-pinpoint {141color: inherit;142}143144.observablehq--error .observablehq--inspect {145font-size: 0.875em !important;146}147148.observablehq--error .callout {149margin-bottom: 0;150margin-top: 0;151}152153/* this counteracts the negative margin which observablehq uses in their tables at runtime */154.quarto-ojs-table-fixup {155padding-left: 14px;156}157158div.observablehq input[type="date"] {159border-style: solid;160padding: 0.8em 0.5em 0.8em 0.5em;161border-color: rgba(220, 220, 220, 0.3);162}163164165