Files
react-native-devtools-frontend/front_end/settings/keybindsSettingsTab.css
T
Jack Lynch 0a749cf45c Settings: Add Keyboard Shortcuts Docs Link
This CL brings the docs link from the old shortcuts settings page to the
new one.

Screenshot: https://i.imgur.com/rIjWkpl.png

Custom shortcuts explainer: https://docs.google.com/document/d/1oOPSWPxCHvMoBZ0Fw9jwFZt6gP4lrsrsl8DEAp-Hy7o/edit#

Bug: 174309
Change-Id: I580b61cef4d5692e33a2a2627a660b39dee12fd9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2472846
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
2020-10-16 23:54:28 +00:00

191 lines
3.3 KiB
CSS

/*
* Copyright 2020 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.
*/
header {
padding: 0 0 6px;
border-bottom: 1px solid #eee;
flex: none;
margin-bottom: 25px;
}
h1 {
font-size: 18px;
font-weight: normal;
padding-bottom: 3px;
margin: 0;
}
[role="list"],
.widget.vbox {
min-width: 300px;
}
.keybinds-key {
padding: 0.1em 0.6em;
border: 1px solid #ccc;
font-size: 11px;
background-color: #f7f7f7;
color: #333;
box-shadow: 0 1px 0 rgb(0 0 0 / 20%), 0 0 0 2px #fff inset;
border-radius: 3px;
display: inline-block;
margin: 0 0.1em;
text-shadow: 0 1px 0 #fff;
line-height: 1.5;
white-space: nowrap;
}
.keybinds-list-item {
min-height: 30px;
display: grid;
grid-template-rows: repeat(auto-fit, 30px);
grid-template-columns: 1fr 30px 1fr 30px 30px;
flex: auto 1 1;
}
.keybinds-list-item:focus-visible {
background-color: var(--focus-bg-color);
}
.keybinds-list-item:not(.keybinds-category-header) {
padding-left: 20px;
}
.keybinds-list-item.keybinds-editing {
background-color: rgb(0 0 0 / 5%);
}
.keybinds-action-name {
grid-row: 1 / span 1;
grid-column: 1 / span 1;
}
.keybinds-shortcut,
.keybinds-info {
grid-row: auto;
grid-column: 3 / span 1;
}
.keybinds-info .devtools-link {
padding-top: 6px;
}
.keybinds-error {
color: var(--input-validation-error);
}
:host-context(.-theme-with-dark-background) .keybinds-error {
color: #ff6161;
}
.keybinds-list-item.keybinds-editing .keybinds-shortcut {
display: flex;
}
.keybinds-modified {
grid-column: 2 / span 1;
}
.keybinds-list-item button {
border: none;
padding: 0;
background: transparent;
}
.keybinds-list-item button:hover .icon-mask {
background-color: #333;
}
.keybinds-list-item button:focus-visible {
background-color: var(--focus-bg-color);
}
.keybinds-list-item button[disabled] {
opacity: 40%;
}
.keybinds-confirm-button {
grid-column: -2 / span 1;
}
.keybinds-cancel-button {
grid-column: -1 / span 1;
}
.keybinds-edit-button {
display: none;
grid-row: 1 / span 1;
grid-column: 4 / span 1;
}
.keybinds-list-item:not(.keybinds-editing):hover .keybinds-edit-button,
.keybinds-list-item:not(.keybinds-editing):focus-within .keybinds-edit-button {
display: inline-block;
}
.keybinds-list-text {
padding: 3px 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
user-select: none;
color: #222;
text-align: start;
position: relative;
margin-right: 0;
}
.keybinds-category-header {
font-weight: bold;
line-height: 30px;
white-space: nowrap;
}
.keybinds-category-header:not(:nth-child(2)) {
border-top: 1px solid rgb(231 231 231);
}
.keybinds-list-item:not(.keybinds-category-header):hover {
background: hsl(0deg 0% 96%);
}
.keybinds-set-select {
text-align: right;
margin-bottom: 25px;
}
.keybinds-set-select label p {
display: inline;
color: #222;
}
.keybinds-set-select select {
margin-left: 6px;
}
button.text-button {
margin-top: -4px;
width: fit-content;
align-self: flex-end;
}
.keybinds-list-text input {
margin: 0 2px;
}
.docs-link.devtools-link {
align-self: flex-start;
height: 24px;
line-height: 24px;
}
.keybinds-footer {
display: flex;
justify-content: space-between;
min-height: fit-content;
margin-top: 10px;
}