:root { --rgh-red: #cf222e; --rgh-green: #28a745; --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:where(: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: 1px solid transparent; border-radius: var(--border-radius); /* Sync with --content-width */ @media (width <= 750px) { border-width: 0; } &[open] { border-color: light-dark(#d2d9e0, #3d444d); &::details-content { padding: 10px; } } } summary { --summary-padding: 10px; position: sticky; display: flex; align-items: center; gap: 0.5em; top: 0; z-index: 1; background: light-dark(#f6f8fa, #141415); list-style: none; padding: var(--summary-padding); font-weight: bold; [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); } svg { fill: currentcolor; } .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; box-sizing: border-box; max-width: var(--content-width); margin: var(--viewport-margin) auto; div { white-space: pre-line; } } @keyframes show { from { display: none; /* Freaking firefox still does not support discrete animations from 2024 */ /* https://caniuse.com/wf-display-animation */ /* https://bugzilla.mozilla.org/show_bug.cgi?id=1834877 */ opacity: 0; } }