Path: blob/main/src/vs/platform/hover/browser/hover.css
4777 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45/* stylelint-disable layer-checker */67.monaco-hover.workbench-hover {8position: relative;9font-size: 13px;10line-height: 19px;11/* Must be higher than sash's z-index and terminal canvases */12z-index: 40;13overflow: hidden;14max-width: 700px;15background: var(--vscode-editorHoverWidget-background);16border: 1px solid var(--vscode-editorHoverWidget-border);17border-radius: 5px;18color: var(--vscode-editorHoverWidget-foreground);19box-shadow: 0 2px 8px var(--vscode-widget-shadow);20}2122.monaco-hover.workbench-hover .monaco-action-bar .action-item .codicon {23/* Given our font-size, adjust action icons accordingly */24width: 13px;25height: 13px;26}2728.monaco-hover.workbench-hover hr {29border-bottom: none;30}3132.monaco-hover.workbench-hover.compact {33font-size: 12px;34}3536.monaco-hover.workbench-hover.compact .monaco-action-bar .action-item .codicon {37/* Given our font-size, adjust action icons accordingly */38width: 12px;39height: 12px;40}4142.monaco-hover.workbench-hover.compact .hover-contents {43padding: 2px 8px;44}4546.workbench-hover-container.locked .monaco-hover.workbench-hover {47outline: 1px solid var(--vscode-editorHoverWidget-border);48}49.workbench-hover-container:focus-within.locked .monaco-hover.workbench-hover {50outline-color: var(--vscode-focusBorder);51}5253.workbench-hover-pointer {54position: absolute;55/* Must be higher than workbench hover z-index */56z-index: 41;57pointer-events: none;58}5960.workbench-hover-pointer:after {61content: '';62position: absolute;63width: 5px;64height: 5px;65background-color: var(--vscode-editorHoverWidget-background);66border-right: 1px solid var(--vscode-editorHoverWidget-border);67border-bottom: 1px solid var(--vscode-editorHoverWidget-border);68}69.workbench-hover-container:not(:focus-within).locked .workbench-hover-pointer:after {70width: 4px;71height: 4px;72border-right-width: 2px;73border-bottom-width: 2px;74}75.workbench-hover-container:focus-within .workbench-hover-pointer:after {76border-right: 1px solid var(--vscode-focusBorder);77border-bottom: 1px solid var(--vscode-focusBorder);78}7980.workbench-hover-pointer.left { left: -3px; }81.workbench-hover-pointer.right { right: 3px; }82.workbench-hover-pointer.top { top: -3px; }83.workbench-hover-pointer.bottom { bottom: 3px; }8485.workbench-hover-pointer.left:after {86transform: rotate(135deg);87}8889.workbench-hover-pointer.right:after {90transform: rotate(315deg);91}9293.workbench-hover-pointer.top:after {94transform: rotate(225deg);95}9697.workbench-hover-pointer.bottom:after {98transform: rotate(45deg);99}100101.monaco-hover.workbench-hover a {102color: var(--vscode-textLink-foreground);103}104105.monaco-hover.workbench-hover a:focus {106outline: 1px solid;107outline-offset: -1px;108text-decoration: underline;109outline-color: var(--vscode-focusBorder);110}111112.monaco-hover.workbench-hover a.codicon:focus,113.monaco-hover.workbench-hover a.monaco-button:focus {114text-decoration: none;115}116117.monaco-hover.workbench-hover a:hover,118.monaco-hover.workbench-hover a:active {119color: var(--vscode-textLink-activeForeground);120}121122.monaco-hover.workbench-hover code {123background: var(--vscode-textCodeBlock-background);124}125126.monaco-hover.workbench-hover .hover-row .actions {127background: var(--vscode-editorHoverWidget-statusBarBackground);128}129130.monaco-hover.workbench-hover.right-aligned {131/* The context view service wraps strangely when it's right up against the edge without this */132left: 1px;133}134135.monaco-hover.workbench-hover.right-aligned .hover-row.status-bar .actions {136flex-direction: row-reverse;137}138139.monaco-hover.workbench-hover.right-aligned .hover-row.status-bar .actions .action-container {140margin-right: 0;141margin-left: 16px;142}143144145