UNPKG

chrome-devtools-frontend

Version:
84 lines (71 loc) 1.41 kB
/* * Copyright 2023 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. */ * { margin: 0; padding: 0; box-sizing: border-box; font-size: inherit; } .control { background: none; border: none; display: flex; flex-direction: column; align-items: center; } .control[disabled] { filter: grayscale(100%); cursor: auto; } .icon { display: flex; width: 40px; height: 40px; border-radius: 50%; background: var(--color-red); margin-bottom: 8px; position: relative; transition: background 200ms; justify-content: center; align-content: center; align-items: center; } .icon::before { --override-white: #fff; box-sizing: border-box; content: ""; display: block; width: 14px; height: 14px; border: 1px solid var(--override-white); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--override-white); } .icon.square::before { border-radius: 0; } .icon.circle::before { border-radius: 50%; } .icon:hover { background: var(--color-accent-red); } .icon:active { background: var(--color-red); } .control[disabled] .icon:hover { background: var(--color-red); } .label { font-size: 12px; line-height: 16px; text-align: center; letter-spacing: 0.02em; color: var(--color-text-primary); }