UNPKG

chrome-devtools-frontend

Version:
93 lines (79 loc) 2.11 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. */ .keybinds-list { display: flex; flex-direction: column; /* overwrite default`margin` and `padding` for the <ul> element */ margin: 0; padding: 0; } .keybinds-list-item { display: block; min-width: 315px; align-items: baseline; border-bottom: var(--sys-size-1) solid var(--sys-color-divider); padding: var(--sys-size-4) 0; position: relative; &:last-of-type { border-bottom: unset; } .keybinds-list-title { /* Put the list title absolute so it is out the flow, this enables the * shortcuts to sit on the same row as the title */ position: absolute; top: var(--sys-size-4); left: 0; /* Put the text vertically central so it aligns with the shortcuts shown */ display: flex; align-items: center; height: var(--sys-size-11); /* IMPORTANT: this has to be the same height as .keybinds-key to maintain text alignment */ } } .row-container { display: flex; gap: var(--sys-size-5); align-items: center; .keybinds-join-text, .footnote { color: var(--sys-color-on-surface-subtle); } .footnote { display: block; height: 15px; } } .shortcuts-for-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sys-size-3); } .nav-radio-buttons { display: flex; flex-direction: column; border-bottom: var(--sys-size-1) solid var(--sys-color-divider); padding-bottom: var(--sys-size-5); & label { display: flex; font: var(--sys-typescale-body3-regular); gap: var(--sys-size-2); } input[type="radio"] { margin-left: 0; } } .keybinds-key { display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: var(--sys-size-4); min-width: var(--sys-size-11); height: var(--sys-size-11); font: var(--sys-typescale-body5-medium); white-space: nowrap; border-radius: var(--sys-shape-corner-small); background: var(--sys-color-base-container); }