/* ========================================================================== 17. Carbon theme settings page ========================================================================== */ .cb-update [hidden] { display: none !important; } .cb-update .cb-update-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; } .cb-update .cb-update-versions { display: flex; gap: 3rem; flex-wrap: wrap; margin: 1rem 0; } /* a form field with its button and status message on one centred line */ .cb-update .cb-update-field { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; } .cb-update .cb-update-field > input { flex: 0 1 22rem; min-width: 0; margin: 0; } .cb-update .cb-update-note { color: var(--cb-text-2); font-size: 13px; overflow-wrap: anywhere; } /* Release notes: scoped Markdown typography, with local overflow on phones. */ .cb-update .cb-release-notes { max-height: 32rem; min-width: 0; overflow: auto; overflow-wrap: anywhere; line-height: 1.75; padding: 2px 12px 2px 2px; color: var(--cb-text); } .cb-release-notes > :first-child { margin-top: 0; } .cb-release-notes > :last-child { margin-bottom: 0; } .cb-release-notes :is(h1, h2, h3, h4, h5, h6) { line-height: 1.4; margin: 1.25em 0 .6em; font-weight: 650; } .cb-release-notes h1 { font-size: 1.5rem; } .cb-release-notes h2 { font-size: 1.3rem; } .cb-release-notes h3 { font-size: 1.12rem; } .cb-release-notes :is(h4, h5, h6) { font-size: 1rem; } .cb-release-notes :is(p, ul, ol, blockquote, pre, table) { margin: .8em 0; } .cb-release-notes :is(ul, ol) { padding-inline-start: 1.6em; } .cb-release-notes ul { list-style: disc outside; } .cb-release-notes ol { list-style: decimal outside; } .cb-release-notes li { display: list-item; margin: .25em 0; } .cb-release-notes li > :is(ul, ol) { margin: .25em 0; } .cb-release-notes a { color: var(--cb-accent); text-decoration: underline; text-underline-offset: 3px; } .cb-release-notes blockquote { border-inline-start: 3px solid var(--cb-accent); padding: .1em 1em; color: var(--cb-text-2); } .cb-release-notes code { font-family: var(--cb-mono); font-size: .9em; background: var(--cb-fill); border-radius: 4px; padding: .15em .35em; } .cb-release-notes pre { max-width: 100%; overflow: auto; white-space: pre; padding: 14px; background: var(--cb-fill-2); border: 1px solid var(--cb-border); border-radius: var(--cb-radius-sm); } .cb-release-notes pre code { display: block; background: none; padding: 0; white-space: pre; overflow-wrap: normal; } .cb-release-notes table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; } .cb-release-notes :is(th, td) { border: 1px solid var(--cb-border-strong); padding: 8px 12px; text-align: start; } .cb-release-notes th { background: var(--cb-fill-2); font-weight: 600; } .cb-release-notes img { max-width: 100%; height: auto; border-radius: var(--cb-radius-sm); } .cb-release-notes hr { border: 0; border-top: 1px solid var(--cb-border); margin: 1.25em 0; } /* Logo */ .cb-logo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 4px; } .cb-logo-preview { width: 72px; height: 72px; flex: none; object-fit: contain; padding: 6px; border-radius: 18px; background: var(--cb-fill); border: 1px solid var(--cb-border); } .cb-logo-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; min-width: 0; } /* "?" toggletip next to a heading: hover / keyboard focus shows, click pins */ .cb-update h3 .cb-hint { margin-inline-start: 6px; } .cb-hint { position: relative; display: inline-flex; } .cb-hint-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--cb-fill); color: var(--cb-text-2); font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1; cursor: help; transition: background-color .15s var(--cb-ease), color .15s var(--cb-ease); } .cb-hint-btn:hover, .cb-hint.open .cb-hint-btn { background: var(--cb-accent-t); color: var(--cb-accent); } .cb-hint-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--cb-focus); } .cb-hint-bubble { position: absolute; z-index: 50; top: calc(100% + 8px); left: -12px; width: max-content; max-width: min(24rem, calc(100vw - 48px)); padding: 10px 12px; border-radius: var(--cb-radius-md); border: 1px solid var(--cb-border); background: var(--cb-card-solid); box-shadow: var(--cb-shadow-pop); color: var(--cb-text); /* the heading is a small uppercase label: reset its text styles */ font-size: 12.5px; font-weight: 400; line-height: 1.6; letter-spacing: normal; text-transform: none; white-space: normal; overflow-wrap: anywhere; opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; transition: opacity .14s var(--cb-ease), transform .14s var(--cb-ease), visibility .14s; } /* bridge the gap so the pointer can move from the icon into the bubble */ .cb-hint-bubble::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } .cb-hint:hover .cb-hint-bubble, .cb-hint:has(.cb-hint-btn:focus-visible) .cb-hint-bubble, .cb-hint.open .cb-hint-bubble { opacity: 1; visibility: visible; transform: none; pointer-events: auto; } /* narrow screens: anchor the bubble to the heading so it spans the section */ .cb-update .cbi-section > h3 { position: relative; } @media (max-width: 600px) { .cb-update h3 .cb-hint { position: static; } .cb-update h3 .cb-hint-bubble { left: 0; right: 0; width: auto; max-width: none; } } @media (prefers-reduced-motion: reduce) { .cb-hint-bubble { transition: none; } }