:root { --rgh-red: #cf222e; --content-width: 750px; /* Sync with media query below */ --viewport-margin: 30px; max-width: none; } body { margin: 0; } form { max-width: var(--content-width); margin: auto; padding-block: 1em; } html::after { /* Add some extra scroll to the page to reduce section toggle jumps/scroll */ content: ''; display: block; height: 50vh; background: url('icon.png') center no-repeat; filter: opacity(0.1) saturate(0) brightness(1.2); } @media (prefers-color-scheme: dark) { :root { --rgh-red: #f85149; } } p, ul { margin-top: 0; } /* :not() due to https://github.com/refined-github/refined-github/issues/8062 */ p:last-child:not(.info p, background-status p), ul:last-child { margin-bottom: 0; } ul { padding-left: 0; list-style: none; } storage-usage { font-style: italic; } details { margin-bottom: 1em; --border-radius: 6px; border: solid 1px transparent; border-radius: var(--border-radius); /* Sync with --content-width */ @media (width <= 750px) { border-width: 0; } &[open] { border-color: light-dark(#d2d9e0, #3d444d); } } details[open]::details-content { padding: 10px; } summary { --summary-padding: 10px; position: sticky; top: 0; z-index: 1; background: light-dark(#f6f8fa, #141415); list-style: none; padding: var(--summary-padding); [open] & { border-top-left-radius: var(--border-radius); border-top-right-radius: var(--border-radius); } } summary::-webkit-details-marker { display: none; /* Just for Safari. Chrome uses `list-style` */ } summary:hover { background: light-dark(#e3e9ef, #0e1012); } .text-code { font-size: 11px; } .text-italics { font-style: italic; } .error-banner { padding: 1em; border: 1px solid var(--rgh-red); background: color-mix(in srgb, var(--rgh-red) 10%, transparent); } #js-failed { animation: show 0s 1s both; white-space: pre-line; box-sizing: border-box; max-width: var(--content-width); margin: var(--viewport-margin) auto; } @keyframes show { from { display: none; /* Freaking firefox still does not support discrete animations */ /* https://caniuse.com/wf-display-animation */ opacity: 0; } }