:root { --sh-caret-color: #333; --sh-line-number-color: #a4a4a4; --sh-line-highlight-color: #555555; --sh-control-color: #8d8989; --docs-code-font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } ::selection { background-color: #333; color: #ddd; } .codice ::selection { background-color: #e2ffea; } * { box-sizing: border-box; } html { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; overflow-x: hidden; } body { margin: 0; overflow-x: hidden; width: 100%; } a { color: #888; text-decoration: underline solid currentColor; text-underline-position: from-font; text-decoration-thickness: from-font; } a:hover { color: #333; } .container-960 { max-width: 960px; padding: 0 10px 40px; margin: auto; } .container-720 { max-width: 720px; padding: 0 16px 24px; margin: auto; } /* Showcase band — a bit narrower than the old 1200px layout */ .container-showcase { max-width: min(900px, 94vw); padding: 16px; margin-left: auto; margin-right: auto; box-sizing: border-box; width: 100%; } input[type='radio'] { display: none; } .flex { display: flex; } .flex-1 { flex: 1; } .align-start { align-self: start; } .align-center { align-items: center; } .features { margin: 16px 0; } .features__control { display: flex; align-items: center; margin: 8px auto; } input[type='checkbox'] { cursor: pointer; appearance: none; background-color: transparent; font: inherit; color: #444; width: 1em; height: 1em; border: 0.15em solid currentColor; margin-right: 8px; } input[type='checkbox']:checked { background-color: currentColor; } .big-title { line-height: 1.2; transition: all 0.2s ease; } .header { margin: 1rem auto; text-align: center; padding: 2rem 0; color: #354150; } .product-shell.home-product-nav { width: min(920px, 100%); padding-top: 4px; } .home-product-nav .product-nav { justify-content: flex-end; margin-bottom: 0; } .header h1 span { font-size: 5rem; font-weight: 800; text-align: center; margin: 1rem; } .header p { font-size: 1.3rem; color: #808c97; } .code-frame { position: relative; } /* Showcase — diagonal stack; active layer lifts straight up (file picked off the pile) */ .showcase-section { position: relative; overflow: visible; } .showcase-stack { --showcase-preview-max-h: 300px; --showcase-card-width: min(430px, 74vw); --showcase-count: 5; position: relative; width: 100%; max-width: 100%; margin: 2rem auto 0; padding: 2rem 12px 0rem; box-sizing: border-box; overflow: visible; min-height: calc(var(--showcase-preview-max-h) + 150px); } .showcase-card--stack { --showcase-z: 1; --showcase-x: 0px; --showcase-y: 0px; --showcase-rotate: 0deg; position: absolute; left: 50%; display: flex; flex-direction: column; width: var(--showcase-card-width); max-width: var(--showcase-card-width); top: 36px; transform: translate( calc(-50% + var(--showcase-x)), var(--showcase-y) ) rotate(var(--showcase-rotate)); z-index: var(--showcase-z); opacity: 1; height: var(--showcase-preview-max-h); max-height: var(--showcase-preview-max-h); overflow: visible; border-radius: 6px; transition: opacity 0.28s ease, filter 0.28s ease, transform 0.56s cubic-bezier(0.16, 1, 0.3, 1); background: transparent; user-select: none; -webkit-user-select: none; } .showcase-stack--spread .showcase-card--stack { --showcase-x: var(--showcase-final-x, 0px); --showcase-y: var(--showcase-final-y, 0px); --showcase-rotate: var(--showcase-final-rotate, 0deg); } .showcase-card-lift { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: 100%; border-radius: 45px; corner-shape: squircle; overflow: hidden; box-shadow: -3px 9px 18px #0000001a, 0 0 0 1px #00000008; background: var(--showcase-card-bg, transparent); transform: translateY(0); transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease; } @media (hover: hover) { .showcase-card:hover { z-index: 30; } .showcase-card:hover .showcase-card-lift { transform: translateY(-18px) scale(1.02); box-shadow: -3px 16px 34px rgba(0, 0, 0, 0.25), 0 0 0 1px #00000008; } } .showcase-card:focus-within { z-index: 30; } .showcase-card:focus-within .showcase-card-lift { transform: translateY(-18px) scale(1.02); box-shadow: -3px 16px 34px rgba(0, 0, 0, 0.25), 0 0 0 1px #00000008; } .showcase-card--popped .showcase-card-hit { animation: showcase-card-shake 0.46s ease-in-out; } @keyframes showcase-card-shake { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-3px) rotate(-0.32deg); } 50% { transform: translateX(3px) rotate(0.28deg); } 75% { transform: translateX(-1.5px) rotate(-0.14deg); } } .showcase-card-hit { flex: 1 1 auto; min-height: 0; overflow: hidden; cursor: pointer; outline: none; } .showcase-card-hit:focus-visible { box-shadow: inset 0 0 0 2px var(--docs-ui-primary, #354150); } .showcase-section .code-frame, .showcase-section .codice.code-snippet { --sh-font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; background: var(--showcase-card-bg, #f6f6f6); } .showcase-section .codice[data-codice-code] code, .showcase-section .codice[data-codice-code] [data-codice-code-content] { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 0.9rem; line-height: 1.6; letter-spacing: -0.15px; } .showcase-section .sh__line { display: block; white-space: pre; } .showcase-section .sh__line--diff-add { background-color: color-mix(in srgb, #2da44e 18%, transparent); } .showcase-section .sh__line--diff-remove { background-color: color-mix(in srgb, #cf222e 18%, transparent); } .showcase-section .sh__line--diff-hunk, .showcase-section .sh__line--diff-meta { color: var(--sh-comment); } .showcase-pagination { display: none; } @media (prefers-reduced-motion: reduce) { .showcase-card--stack { transition: opacity 0.2s ease, filter 0.2s ease, transform 0.01ms; } .showcase-card-lift, .showcase-card-hit { animation: none !important; transition-duration: 0.01ms; } } @media (max-width: 680px) { .showcase-stack { --showcase-card-width: min(88vw, 360px); position: relative; display: block; min-height: calc(var(--showcase-preview-max-h) + 72px); margin-top: 1rem; padding: 28px calc(6vw - 2px) 44px; overflow: visible; touch-action: pan-y; } .showcase-card--stack, .showcase-stack--spread .showcase-card--stack { position: absolute; top: 28px; left: 50%; width: var(--showcase-card-width); max-width: var(--showcase-card-width); height: var(--showcase-preview-max-h); max-height: var(--showcase-preview-max-h); opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(18px) scale(0.94); transition: opacity 0.34s ease, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1); } .showcase-card--mobile-active, .showcase-stack--spread .showcase-card--mobile-active { z-index: 30; opacity: 1; pointer-events: auto; transform: translateX(calc(-50% + var(--showcase-drag-x, 0px))); } .showcase-card--mobile-next, .showcase-stack--spread .showcase-card--mobile-next { z-index: 20; opacity: 0.92; transform: translateX(calc(-50% + 10px)) translateY(9px) scale(0.98) rotate(1.4deg); } .showcase-card--mobile-after-next, .showcase-stack--spread .showcase-card--mobile-after-next { z-index: 10; opacity: 0.72; transform: translateX(calc(-50% - 7px)) translateY(17px) scale(0.96) rotate(-1.5deg); } .showcase-card--mobile-previous, .showcase-stack--spread .showcase-card--mobile-previous { z-index: 40; opacity: 0; transform: translateX(calc(-50% - 105vw)) rotate(-8deg); } .showcase-card--mobile-previous.showcase-card--exit-right, .showcase-stack--spread .showcase-card--mobile-previous.showcase-card--exit-right { transform: translateX(calc(-50% + 105vw)) rotate(8deg); } .showcase-card--dragging, .showcase-stack--spread .showcase-card--dragging { transition: none; } .showcase-pagination { display: flex; order: -1; align-items: center; justify-content: center; gap: 8px; margin: 2px auto -0.5rem; } .showcase-pagination__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--docs-ui-secondary, #5c6570) 28%, transparent); cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; } .showcase-pagination__dot[aria-current='true'] { background: #f47067; transform: scale(1.3); } .showcase-stack .showcase-card-hit { touch-action: pan-y; } } .carousel { margin: 1rem auto; display: flex; justify-content: center; flex-direction: column; align-items: center; } .showcase-stack textarea { pointer-events: none; } .showcase-stack [data-codice-title] { pointer-events: none; user-select: none; -webkit-user-select: none; } code { counter-reset: sh-line-number; } /* Full-bleed row: editor stays in centered band; color rail sits in side columns */ .live-editor-layout { display: grid; grid-template-columns: 1fr minmax(0, max-content) auto 1fr; gap: 10px; align-items: start; width: 100%; max-width: 100%; padding: 0 16px; box-sizing: border-box; margin: 2rem auto; } .live-editor-editor-col { grid-column: 2; position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; max-width: var(--live-editor-pane-max); justify-self: center; } /* `/p` — site title + issue link above preview */ .p-page-issue-link-wrap { max-width: min(720px, calc(100vw - 32px)); margin: 0 auto 0.5rem; padding: 0 16px; box-sizing: border-box; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; } .p-page-site-title { font-size: 1.125rem; font-weight: 700; color: #354150; text-decoration: none; } .p-page-site-title:hover { color: #111827; text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; } .p-page-issue-link { font-size: 0.8125rem; color: var(--text-secondary, #6b7280); text-decoration: none; } .p-page-issue-link:hover { text-decoration: underline; color: var(--text-primary, #111827); } /* Shared editor controls align with the color plate controls in the adjacent column. */ .live-editor__header { display: flex; align-items: center; justify-content: flex-end; gap: 4px; height: 28px; padding: 0 6px; box-sizing: border-box; border-bottom: 1px solid #e8ebed; } .live-editor { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; width: 100%; max-width: none; min-width: 0; margin: 0; cursor: default; border-radius: 6px; overflow: visible; position: relative; background: transparent; box-shadow: none; } .live-editor::-webkit-scrollbar, .live-editor__header::-webkit-scrollbar, .live-editor__footer::-webkit-scrollbar, .live-editor__capture-area::-webkit-scrollbar { display: none; } .live-editor, .live-editor__header, .live-editor__footer, .live-editor__capture-area { scrollbar-width: none; } .live-editor--with-header { background: transparent; box-shadow: none; } .live-editor textarea { color: var(--live-editor-textarea-color, transparent) !important; } /* Compact language control. It lives in the header when a color plate is present. */ .live-editor__syntax-toolbar { flex: 0 0 auto; pointer-events: auto; } .live-editor:not(.live-editor--with-header) .live-editor__syntax-toolbar { position: absolute; top: 6px; right: 6px; z-index: 6; } .live-editor__syntax-toolbar-select { height: 22px; font-size: 0.6875rem; line-height: 1.2; font-family: inherit; color: var(--text-primary, #111827); background: color-mix(in srgb, var(--background, #fff) 92%, transparent); border: 1px solid color-mix(in srgb, var(--text-secondary, #6b7280) 28%, transparent); border-radius: 4px; padding: 2px 22px 2px 6px; max-width: 7.5rem; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 5px center; backdrop-filter: blur(4px); } .live-editor__syntax-toolbar-select:hover { border-color: color-mix(in srgb, var(--text-secondary, #6b7280) 48%, transparent); } .live-editor__syntax-toolbar-select:focus { outline: 1px solid color-mix(in srgb, var(--text-primary, #111827) 30%, transparent); outline-offset: 0; } .live-editor__footer .live-editor__syntax-toolbar-select { color: #68727f; background-color: transparent; border-color: transparent; } .live-editor__footer .live-editor__syntax-toolbar { display: flex; align-items: center; height: 100%; } .live-editor__footer .live-editor__syntax-toolbar-select:hover { color: #333; background-color: #eceff1; border-color: transparent; } .live-editor.live-editor--with-syntax-toolbar { padding-top: 1.75rem; } .live-editor:focus-within > .codice.editor { outline: none; /* Vertical-only lift — no shadow cast to the right */ box-shadow: 0 14px 44px rgba(93, 89, 89, 0.28); } .live-editor.live-editor--with-header:focus-within { box-shadow: none; } .live-editor.live-editor--with-header > .codice.editor, .live-editor.live-editor--with-header:focus-within > .codice.editor { border-radius: 0 0 6px 6px; box-shadow: none; } .live-editor-section { position: relative; --live-editor-pane-max: 560px; } .live-editor-section--github-preview { --live-editor-pane-max: min(720px, calc(100vw - 32px)); } .live-editor-section--github-preview .live-editor-layout { grid-template-columns: 1fr minmax(0, var(--live-editor-pane-max)) 1fr; } .live-editor-section--github-preview .live-editor__color { display: none; } /* Smooth color transitions for syntax highlighting */ .live-editor-section [class*="sh__token--"], .live-editor-section .live-editor__color__item__indicator { transition: color 0.4s ease, background-color 0.4s ease; } .github-source-loader { max-width: var(--live-editor-pane-max); margin: 0 auto 1.25rem; padding: 0 16px; box-sizing: border-box; } .github-source-loader--minimal { margin-bottom: 1rem; padding-top: 1.5rem; } .github-source-loader--minimal .github-source-loader__row { flex-wrap: wrap; } .github-source-loader__label { display: block; font-size: 13px; color: #68727f; margin-bottom: 6px; } .github-source-loader__row { display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; } .github-source-loader__input { flex: 1 1 200px; min-width: 0; font-size: 13px; font-family: ui-monospace, monospace; padding: 8px 10px; border: 1px solid #d8dee4; border-radius: 6px; background: #fff; color: #333; } .github-source-loader__input-wrap { flex: 1 1 auto; min-width: 0; position: relative; display: block; } /* Resting baseline */ .github-source-loader__input-wrap::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #d0d7de; pointer-events: none; } /* Focus accent: draws left → right */ .github-source-loader__input-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #354150; transform: scaleX(0); transform-origin: left center; transition: transform 0.22s ease; pointer-events: none; } .github-source-loader__input-wrap:focus-within::after { transform: scaleX(1); } @media (prefers-reduced-motion: reduce) { .github-source-loader__input-wrap::after { transition-duration: 0.01ms; } } .github-source-loader__input--underline { flex: 1 1 auto; width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 2px 10px; margin: 0; border: none; border-radius: 0; background: transparent; font-size: 14px; appearance: none; -webkit-appearance: none; } .github-source-loader__input--underline:focus, .github-source-loader__input--underline:focus-visible { outline: none !important; box-shadow: none !important; border: none !important; } .github-source-loader__input--underline:-webkit-autofill, .github-source-loader__input--underline:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px transparent inset !important; transition: background-color 9999s ease-out; } .github-source-loader__input:focus { outline: none; border-color: #8996a3; box-shadow: 0 0 0 2px rgba(137, 150, 163, 0.2); } .github-source-loader__input:disabled:not(.github-source-loader__input--underline) { opacity: 0.65; cursor: not-allowed; } .github-source-loader__input--underline:disabled { opacity: 0.55; cursor: not-allowed; } .github-source-loader__button { flex: 0 0 auto; font-size: 13px; padding: 8px 14px; border-radius: 6px; border: 1px solid #d8dee4; background: #f6f8fa; color: #333; cursor: pointer; font-family: inherit; } .github-source-loader__button--minimal { padding: 6px 0; border: none; border-radius: 0; background: transparent; color: #354150; font-size: 14px; font-weight: 500; text-decoration: none; appearance: none; -webkit-appearance: none; } .github-source-loader__button--minimal:focus, .github-source-loader__button--minimal:focus-visible { outline: none; box-shadow: none; } .github-source-loader__button--minimal:hover:not(:disabled) { background: transparent; color: #111; } .github-source-loader__button--minimal:disabled { cursor: wait; opacity: 0.45; } .github-source-loader__button:hover:not(:disabled) { background: #eaeef2; } .github-source-loader__button:disabled { cursor: wait; opacity: 0.8; } .github-source-loader__error { margin: 8px 0 0; font-size: 13px; color: #b42318; } .github-source-loader__hint { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #8a939e; } .github-source-loader__hint code { font-size: 11px; background: #f0f3f6; padding: 1px 4px; border-radius: 3px; } .github-source-loader__hint a { color: #4e8fdf; word-break: break-all; } .github-source-loader__hint--compact { margin-top: 12px; font-size: 11px; line-height: 1.5; word-break: break-all; } .github-source-loader__examples { word-break: normal; } .github-source-loader__examples-label { margin: 0 0 6px; color: #9aa3ad; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; } .github-source-loader__examples-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; } .github-source-loader__examples-item { margin: 0; padding: 0; } .github-source-loader__examples .github-source-loader__example-load { display: block; width: 100%; padding: 4px 0; text-align: left; } .github-source-loader__mono-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #5c6570; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #c5cdd6; } .github-source-loader__mono-link:hover { color: #354150; text-decoration-color: #8996a3; } .github-source-loader__example-load { margin: 0; padding: 0; border: none; background: none; font: inherit; font-size: 12px; color: #6b7785; cursor: pointer; text-align: left; appearance: none; -webkit-appearance: none; } .github-source-loader__example-load:focus, .github-source-loader__example-load:focus-visible { outline: none; box-shadow: none; } .github-source-loader__example-load:hover:not(:disabled) { color: #354150; } .github-source-loader__example-load:disabled { cursor: wait; opacity: 0.5; } .github-source-loader__example-file { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #5c6570; } .github-source-loader__example-load:hover:not(:disabled) .github-source-loader__example-file { color: #354150; } .github-source-loader__arrow { color: #a4adb6; font-family: inherit; white-space: nowrap; } .theme-mode-button { background: none; border: none; color: #68727f; font-size: 14px; padding: 2px 6px; margin: -2px -6px; cursor: pointer; transition: all 0.2s ease; font-family: inherit; font-weight: inherit; border-radius: 4px; } .theme-mode-button:hover { color: #333; background-color: #f5f5f5; } .live-editor > .codice.editor { min-width: 0; border-radius: 6px; box-sizing: border-box; box-shadow: 0 10px 36px rgba(0, 0, 0, 0.07); transition: box-shadow 0.3s ease; } .live-editor__color { grid-column: 3; margin: 0; padding: 0 10px 12px; list-style: none; width: 132px; max-width: 132px; box-sizing: border-box; background: #f6f6f6; border: none; border-radius: 6px; box-shadow: none; } .live-editor__color__theme { display: flex; align-items: center; min-height: 28px; list-style: none; margin: 0 -10px 6px; padding: 0 10px; width: auto; border-bottom: 1px solid #e8ebed; } .live-editor__color .theme-mode-button__full { display: inline; } .live-editor__color .color-theme-title { display: flex; justify-content: space-between; align-items: center; gap: 4px; width: 100%; height: 100%; color: #68727f; font-size: 0.6875rem; line-height: 1.2; } .live-editor__color .color-theme-title .theme-mode-button { display: inline-flex; align-items: center; height: 22px; margin: 0; padding: 0; font-size: inherit; line-height: inherit; } .live-editor__color .color-theme-title .copy-button { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: auto; } .live-editor__color .color-theme-title .copy-button svg { width: 12px; height: 12px; } .textarea-color-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: none; border: none; color: #a4a4a4; font-size: 12px; padding: 0; cursor: pointer; transition: all 0.2s ease; border-radius: 4px; } .textarea-color-toggle:hover { background-color: #f8f8f8; color: #68727f; } .textarea-color-toggle--active { background-color: #f8f8f8; } .textarea-color-toggle--active:hover { background-color: #f8f8f8; } .live-editor__color input[type='color'] { display: inline; width: 0; height: 0; border: none; padding: 0; margin: 0 0 0 8px; opacity: 0; cursor: none; } .live-editor__color__item { display: flex; align-items: center; color: #666; margin: 6px 0; width: 100%; } .live-editor__color__item .copy-button { visibility: hidden; } .live-editor__color__item:hover .copy-button { visibility: visible; } .live-editor__color__item:hover, .live-editor__color__item:hover label { cursor: pointer; } .live-editor__color__item__indicator { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border-radius: 999px; } .live-editor__color__item__name { flex: 1 1 auto; min-width: 0; margin-right: 0; color: #a4a4a4; font-size: 11px; line-height: 1.25; word-break: break-word; } .live-editor__color__item__color { display: none; } .live-editor .sh__line { color: #333; } .live-editor-section .live-editor__color__item__indicator { background-color: currentColor; } /* The screenshot canvas sits between dedicated theme and action toolbars. */ .live-editor-layout { grid-template-columns: 1fr minmax(0, var(--live-editor-pane-max)) 1fr; margin: 48px auto 64px; } .live-editor__header, .live-editor__footer { display: flex; align-items: center; justify-content: flex-start; gap: 6px; height: 38px; width: max-content; max-width: calc(100vw - 32px); flex: 0 0 auto; padding: 0 8px; overflow-x: auto; scrollbar-width: none; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.88); box-shadow: 0 5px 16px rgba(50, 60, 70, 0.08); backdrop-filter: blur(12px); } .live-editor__header { margin-bottom: 10px; padding: 3px; flex-wrap: wrap; height: auto; min-height: 38px; } .live-editor__theme-picker { width: min(100%, 360px); min-width: 0; margin-bottom: 10px; } .live-editor__theme-picker .react-theme-picker { margin-top: 0; } .live-editor__language-scroller { width: min(100%, 360px); min-width: 0; margin-bottom: 12px; } .live-editor-section--home .live-editor__theme-picker, .live-editor-section--home .live-editor__language-scroller { width: min(100%, 560px); } .live-editor__footer { margin-top: 10px; } .live-editor__theme-button { display: flex; align-items: center; gap: 10px; width: auto; height: 100%; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; } .live-editor__theme-button:hover { background: #edf0f2; } .live-editor__theme-button:focus-visible { outline: 1px solid color-mix(in srgb, #354150 34%, transparent); outline-offset: -1px; } .live-editor__theme-name { flex: 0 0 68px; overflow: hidden; color: #8a949e; font-size: 10px; font-weight: 500; line-height: 1.2; text-align: left; white-space: nowrap; text-overflow: ellipsis; } .live-editor__header .live-editor__appearance-toggle { margin-right: 5px; } .live-editor__toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: 0; } .live-editor__padding-select { height: 24px; width: 92px; max-width: 92px; padding: 0 18px 0 6px; border: 0; border-radius: 5px; color: #7c8791; background-color: transparent; font-size: 10px; cursor: pointer; } .live-editor__padding-select:hover, .live-editor__padding-select:focus { outline: none; color: #354150; background-color: #e9edf0; } .live-editor__header::-webkit-scrollbar, .live-editor__footer::-webkit-scrollbar { display: none; } .live-editor__footer .copy-button, .live-editor__line-numbers-toggle, .live-editor__screenshot-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; color: #7c8791; background: transparent; cursor: pointer; } .live-editor__footer .copy-button:hover { color: #354150; background: transparent; } .live-editor__screenshot-button:hover, .live-editor__line-numbers-toggle:hover, .live-editor__line-numbers-toggle[aria-pressed='true'] { color: #354150; background: #e9edf0; } .live-editor__screenshot-button:disabled { opacity: 0.45; } .live-editor__swatches { display: flex; flex: 1 1 auto; align-items: center; gap: 5px; min-width: 0; } .live-editor__swatch-dot { width: 11px; height: 11px; flex: 0 0 auto; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 50%; } .live-editor__appearance-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; margin-right: 0; } .live-editor__appearance-toggle:hover { background: #e9edf0; } .live-editor__appearance-toggle > span { width: 13px; height: 13px; border: 1px solid #7c8791; border-radius: 50%; background: linear-gradient(90deg, #fff 50%, #242629 50%); transition: transform 0.2s ease; } .live-editor__appearance-toggle[aria-pressed='true'] > span { transform: rotate(180deg); } .live-editor__capture-area { position: relative; display: block; flex: 0 0 auto; min-height: 0; width: max-content; max-width: none; box-sizing: border-box; background: var(--live-editor-canvas-surface); transition: background-color 0.25s ease; } .live-editor__window { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; box-shadow: 0 8px 28px rgba(50, 60, 70, 0.12); } .live-editor__capture-area .codice.editor { overflow: hidden; border-radius: 0 0 6px 6px; background: var(--live-editor-window-surface); box-shadow: none; } .live-editor__resize-handle { position: absolute; z-index: 40; touch-action: none; user-select: none; } .live-editor__resize-handle--right, .live-editor__resize-handle--left { top: 14px; bottom: 14px; width: 10px; cursor: ew-resize; } .live-editor__resize-handle--right { right: 0; } .live-editor__resize-handle--left { left: 0; } .live-editor__resize-handle--top, .live-editor__resize-handle--bottom { left: 14px; right: 14px; height: 10px; cursor: ns-resize; } .live-editor__resize-handle--top { top: 0; } .live-editor__resize-handle--bottom { bottom: 0; } .live-editor__resize-handle--top-left, .live-editor__resize-handle--top-right, .live-editor__resize-handle--bottom-left, .live-editor__resize-handle--bottom-right { width: 14px; height: 14px; } .live-editor__resize-handle--top-left { top: 0; left: 0; cursor: nwse-resize; } .live-editor__resize-handle--top-right { top: 0; right: 0; cursor: nesw-resize; } .live-editor__resize-handle--bottom-left { bottom: 0; left: 0; cursor: nesw-resize; } .live-editor__resize-handle--bottom-right { bottom: 0; right: 0; cursor: nwse-resize; } .live-editor__window[data-resized-height] > .codice.editor { flex: 1; min-height: 0; overflow: auto; } .live-editor__window-header { flex-shrink: 0; } .live-editor.live-editor--with-header .live-editor__capture-area .codice.editor { border-radius: 0 0 6px 6px; } .live-editor__window-header { position: relative; z-index: 2; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; min-height: 34px; padding: 0 10px; box-sizing: border-box; border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--live-editor-window-surface); box-shadow: none; } .live-editor__window-buttons { display: flex; align-items: center; gap: 6px; } .live-editor__window-buttons span { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); } .live-editor__window-buttons span:nth-child(2) { background: #febc2e; } .live-editor__window-buttons span:nth-child(3) { background: #28c840; } .live-editor__filename { min-width: 0; width: 100%; padding: 3px 6px; border: 0; border-radius: 4px; outline: none; color: #7c8791; background: transparent; font: 500 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; } .live-editor__filename:hover, .live-editor__filename:focus { color: #5f6973; background: rgba(124, 135, 145, 0.1); } .live-editor__screenshot-preview { position: fixed; z-index: 9999; object-fit: fill; pointer-events: none; transform-origin: center; box-shadow: 0 18px 50px rgba(44, 54, 64, 0.2); } .live-editor__screenshot-preview--minimized { animation: live-editor-minimize 0.82s cubic-bezier(0.22, 0.82, 0.22, 1) forwards; } @keyframes live-editor-minimize { 0% { transform: translate(0, 0) scale(1); opacity: 1; border-radius: 6px; } 65% { opacity: 1; } 100% { left: calc(100vw - 28px); top: calc(100vh - 22px); transform: translate(-100%, -100%) scale(0.16); opacity: 0; border-radius: 18px; } } @media (prefers-reduced-motion: reduce) { .live-editor__screenshot-preview--minimized { animation-duration: 0.01ms; } } @media screen and (max-width: 640px) { .container-960 { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); padding-bottom: 28px; } .container-960.header { margin-top: 0; } .container-showcase { padding-bottom: 20px; } /* Stretch the flex column; min-width:0 avoids intrinsic min-width from code. */ .showcase-section.carousel.container-showcase { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: visible; } .showcase-stack { --showcase-preview-max-h: min(320px, 52vh); --showcase-card-width: min(360px, calc(100vw - 48px)); min-height: calc(var(--showcase-preview-max-h) + 72px); padding: 28px calc(6vw - 2px) 44px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: visible; touch-action: pan-y; } .showcase-card--stack { left: 50%; right: auto; margin: 0; width: var(--showcase-card-width); max-width: var(--showcase-card-width); min-width: 0; } .showcase-stack .showcase-card-lift { min-height: 0; } .showcase-stack .showcase-card-hit { display: flex; flex-direction: column; overflow: hidden; touch-action: pan-y; } .showcase-stack .showcase-card-hit::-webkit-scrollbar { display: none; } .showcase-stack .code-frame { min-width: 0; max-width: 100%; } .showcase-stack .codice.code-snippet { min-width: 0; max-width: 100%; } .showcase-stack .codice[data-codice-code], .showcase-stack [data-codice-code] pre { min-width: 0; max-width: 100%; } .showcase-stack [data-codice-code] pre { overflow-x: hidden; scrollbar-width: none; } .showcase-stack [data-codice-code] pre::-webkit-scrollbar { display: none; } .showcase-stack .code-snippet [data-codice-code-content] { padding: 12px 12px 16px; } .live-editor-layout { display: flex; flex-direction: column; margin: 2rem auto 2.5rem; padding: 0 16px; gap: 0; } .live-editor__header, .live-editor__footer { position: sticky; top: 0; z-index: 30; width: max-content; max-width: 100%; height: auto; min-height: 38px; padding: 6px 8px; box-sizing: border-box; flex-wrap: wrap; overflow: visible; background: rgba(246, 246, 246, 0.96); backdrop-filter: blur(10px); } .live-editor__footer { position: relative; margin-top: 10px; } .live-editor__theme-button { height: 32px; } .live-editor__swatches { gap: 5px; overflow-x: auto; scrollbar-width: none; } .live-editor__swatches::-webkit-scrollbar { display: none; } .live-editor__swatch-dot { width: 13px; height: 13px; } .live-editor__appearance-toggle { width: 32px; height: 32px; margin-right: 0; } .live-editor__toolbar-actions { flex: 1 1 auto; width: auto; min-width: 0; gap: 6px; overflow-x: auto; } .live-editor__padding-select { flex: 1 1 auto; width: auto; max-width: none; height: 32px; font-size: 12px; } .live-editor__footer .copy-button, .live-editor__line-numbers-toggle, .live-editor__screenshot-button, .live-editor__footer .textarea-color-toggle, .live-editor__header .live-editor__appearance-toggle { width: 32px; height: 32px; } .live-editor__footer .live-editor__syntax-toolbar-select { height: 32px; max-width: 7rem; font-size: 12px; } .live-editor__capture-area { padding: 16px !important; } .live-editor-editor-col { order: 1; width: 100%; max-width: none; } .live-editor { grid-column: unset; width: 100% !important; height: auto !important; max-width: none; overflow: hidden; } .live-editor__capture-area { width: 100% !important; height: auto !important; } .live-editor__window { max-width: 100%; margin-inline: auto; } .live-editor__color { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px; order: 0; position: sticky; top: 0; z-index: 30; width: 100%; max-width: none; margin: 0 0 10px; padding: 8px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: rgba(246, 246, 246, 0.94); backdrop-filter: blur(10px); border: none; box-shadow: none; justify-content: flex-start; } .live-editor__color::-webkit-scrollbar { display: none; } /* Keep the color-plate header pinned while token swatches scroll. */ .live-editor__color__theme { flex: 0 0 auto; width: auto; min-height: auto; margin: 0 auto 0 0; position: sticky; left: 0; z-index: 2; padding: 0 14px 0 0; border: 0; background: linear-gradient( 90deg, rgba(246, 246, 246, 0.98) 0%, rgba(246, 246, 246, 0.98) 85%, rgba(246, 246, 246, 0) 100% ); } .live-editor__color .color-theme-title { margin: 0; gap: 8px; width: auto; } .live-editor__color .color-theme-title .copy-button { display: inline-flex; color: #68727f; } .live-editor__color__item__name { display: none; } .live-editor__color__item { flex: 0 0 auto; margin: 0; width: auto; } .live-editor__color__item label { margin: 0; } .live-editor__color__item__indicator { margin-right: 0; } .live-editor__color input[type='color'] { margin: 0; } .header h1 span { font-size: 200%; } } [data-codice="editor"] code { width: 100%; } .editor, .code-frame { background-color: #f6f6f6; } .live-editor__capture-area .codice.editor, .live-editor__capture-area .codice.editor [data-codice-content] { background-color: var(--live-editor-window-surface); } .live-editor__capture-area .codice.editor textarea, .live-editor__capture-area .codice.editor code { background-color: transparent; } .live-editor__capture-area .codice.editor textarea { caret-color: var(--sh-identifier); } [data-codice-code] code, [data-codice-code] textarea, [data-codice-code] [data-codice-code-content] { font-family: var(--docs-code-font-family); } .codice[data-codice-code] code, .codice[data-codice-code] textarea { font-family: var(--docs-code-font-family); border: none; font-size: var(--docs-code-font-size, 15px); line-height: 1.5em; caret-color: #333; outline: none; scrollbar-width: none; } .codice[data-codice-code] *, .code-snippet * { scrollbar-width: none; } .codice[data-codice-code] *::-webkit-scrollbar, .code-snippet *::-webkit-scrollbar { display: none; } .code-snippet [data-codice-code-content] { padding: 24px; padding-bottom: 36px; } .codice[data-codice-code] code::selection { color: transparent; } .codice[data-codice-code] textarea::selection { color: #2c7ea163; } .codice [data-codice-control] { background-color: rgba(0, 0, 0, 0.34); } .codice [data-codice-title] { color: rgba(0, 0, 0, 0.34); } /* Remark page specific styles */ .code { margin-top: 1rem; margin-bottom: 1rem; width: 100%; } div[data-codice-editor-header="true"] { background-color: #d6e1eb; padding: 4px 6px; color: #507a99; margin: 0; } /* Override */ [data-codice-code] pre, [data-codice-code] code { width: 100%; } .code[data-codice-code="true"] pre { padding: 8px 0; } .sh__line { display: block; min-height: 1em; } .live-editor [data-codice-editor] code { margin-left: 0 !important; } .sh__line [data-codice-code-line-number] { position: absolute; } .sh__line--highlighted { background-color: #dff1ff; } /* Navigation styles */ .navigation { background-color: #f8f9fa; border-bottom: 1px solid #e9ecef; padding: 1rem 0; } .navigation .container-960 { display: flex; gap: 2rem; } .nav-link { color: #495057; text-decoration: none; font-weight: 500; transition: color 0.2s ease; } .nav-link:hover { color: #212529; } .site-footer { margin-top: 2rem; border-top: 1px solid #e5e7eb; padding-top: 1.5rem; } .site-footer__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35rem 0.75rem; padding-bottom: 2rem; } .site-footer__sep { color: #c4c4c4; user-select: none; } .site-footer__link { font-size: 0.875rem; color: #888; text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; } .site-footer__link:hover { color: #333; }