hover.css 2.0 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
A
Alex Dima 已提交
5

E
Erich Gamma 已提交
6 7
.monaco-editor-hover {
	cursor: default;
J
Joao Moreno 已提交
8 9
	position: absolute;
	overflow: hidden;
E
Erich Gamma 已提交
10
	z-index: 50;
11
	user-select: text;
E
Erich Gamma 已提交
12 13
	-webkit-user-select: text;
	-ms-user-select: text;
J
Joao Moreno 已提交
14
	box-sizing: initial;
J
Joao Moreno 已提交
15
	animation: fadein 100ms linear;
J
Joao Moreno 已提交
16
	line-height: 1.5em;
J
Joao Moreno 已提交
17 18 19 20
}

.monaco-editor-hover.hidden {
	display: none;
J
Joao Moreno 已提交
21
}
J
Joao Moreno 已提交
22

23
.monaco-editor-hover .hover-contents {
24
	padding: 4px 8px;
J
Joao Moreno 已提交
25
}
26

S
Sandeep Somavarapu 已提交
27 28
.monaco-editor-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {
	max-width: 500px;
M
Matt Bierner 已提交
29
	word-wrap: break-word;
S
Sandeep Somavarapu 已提交
30 31
}

J
Joao Moreno 已提交
32 33
.monaco-editor-hover p,
.monaco-editor-hover ul {
J
Joao Moreno 已提交
34
	margin: 8px 0;
J
Joao Moreno 已提交
35 36
}

37
.monaco-editor-hover code {
P
Pine Wu 已提交
38 39 40
	font-family: var(--monaco-monospace-font);
}

41 42 43 44 45 46 47 48
.monaco-editor-hover hr {
	margin-top: 4px;
	margin-bottom: -6px;
	margin-left: -10px;
	margin-right: -10px;
	height: 1px;
}

J
Joao Moreno 已提交
49 50 51 52 53 54 55 56 57 58
.monaco-editor-hover p:first-child,
.monaco-editor-hover ul:first-child {
	margin-top: 0;
}

.monaco-editor-hover p:last-child,
.monaco-editor-hover ul:last-child {
	margin-bottom: 0;
}

P
Pine Wu 已提交
59
/* MarkupContent Layout */
J
Joao Moreno 已提交
60
.monaco-editor-hover ul {
J
Joao Moreno 已提交
61 62
	padding-left: 20px;
}
P
Pine Wu 已提交
63 64 65
.monaco-editor-hover ol {
	padding-left: 20px;
}
J
Joao Moreno 已提交
66 67 68 69 70 71 72

.monaco-editor-hover li > p {
	margin-bottom: 0;
}

.monaco-editor-hover li > ul {
	margin-top: 0;
J
Joao Moreno 已提交
73 74 75 76 77
}

.monaco-editor-hover code {
	border-radius: 3px;
	padding: 0 0.4em;
E
Erich Gamma 已提交
78 79
}

80 81
.monaco-editor-hover .monaco-tokenized-source {
	white-space: pre-wrap;
J
Joao Moreno 已提交
82
	word-break: break-all;
83
}
84

S
Sandeep Somavarapu 已提交
85 86 87 88 89 90
.monaco-editor-hover .hover-row.status-bar {
	font-size: 12px;
	line-height: 22px;
}

.monaco-editor-hover .hover-row.status-bar .actions {
91
	display: flex;
92
	padding: 0px 8px;
93 94
}

S
Sandeep Somavarapu 已提交
95
.monaco-editor-hover .hover-row.status-bar .actions .action-container {
96
	margin-right: 16px;
97 98 99
	cursor: pointer;
}

S
Sandeep Somavarapu 已提交
100
.monaco-editor-hover .hover-row.status-bar .actions .action-container .action .icon {
101
	padding-right: 4px;
102
}