UNPKG

chrome-devtools-frontend

Version:
99 lines (82 loc) 1.76 kB
/* * Copyright 2021 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ .root { align-items: flex-start; /* keep chart at top so it doesnt change position as the legend changes height */ display: flex; min-width: fit-content; white-space: nowrap; } .chart-root { position: relative; overflow: hidden; } .pie-chart-foreground { position: absolute; width: 100%; height: 100%; z-index: 10; top: 0; display: flex; pointer-events: none; } .pie-chart-total { margin: auto; padding: 2px 5px; pointer-events: auto; } :focus { outline-width: 0; } .pie-chart-total.selected { font-weight: bold; } .chart-root .slice.selected { stroke: var(--sys-color-primary); stroke-opacity: 100%; stroke-width: 0.04; stroke-linecap: round; stroke-linejoin: round; } .pie-chart-legend { margin-left: 30px; } .pie-chart-legend-row { margin: 5px 2px 5px auto; padding-right: 25px; } .pie-chart-legend-row.selected { font-weight: bold; } .pie-chart-legend-row:focus-visible { box-shadow: 0 0 0 2px var(--sys-color-state-focus-ring) !important; /* stylelint-disable-line declaration-no-important */ } .pie-chart-swatch { display: inline-block; width: 11px; height: 11px; margin: 0 6px; top: 1px; position: relative; border: 1px solid var(--sys-color-neutral-outline); } .pie-chart-name { display: inline-block; } .pie-chart-size { display: inline-block; text-align: right; width: 70px; } @media (forced-colors: active) { .pie-chart-swatch { forced-color-adjust: none; border-color: ButtonText; } .pie-chart-total { forced-color-adjust: none; background-color: canvas; } }