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

.monaco-editor .parameter-hints-widget {
	z-index: 10;
J
Joao Moreno 已提交
8 9
	background-color: #F3F3F3;
	border: 1px solid rgb(200, 200, 200);
J
Joao Moreno 已提交
10 11
	display: flex;
	flex-direction: column;
12
	line-height: 1.5em;
J
Joao Moreno 已提交
13 14
}

J
Joao Moreno 已提交
15 16
.monaco-editor .parameter-hints-widget > .wrapper {
	max-width: 440px;
J
Joao Moreno 已提交
17 18
	display: flex;
	flex-direction: column;
J
Joao Moreno 已提交
19 20 21 22 23
}

.monaco-editor .parameter-hints-widget.multiple {
	min-height: 3.3em;
	padding: 0 0 0 1.9em;
E
Erich Gamma 已提交
24 25 26 27 28 29 30 31 32
}

.monaco-editor .parameter-hints-widget.visible {
	-webkit-transition: left .05s ease-in-out;
	-moz-transition: left .05s ease-in-out;
	-o-transition: left .05s ease-in-out;
	transition: left .05s ease-in-out;
}

J
Joao Moreno 已提交
33 34 35
.monaco-editor .parameter-hints-widget p,
.monaco-editor .parameter-hints-widget ul {
	margin: 8px 0;
E
Erich Gamma 已提交
36 37
}

J
Joao Moreno 已提交
38 39
.monaco-editor .parameter-hints-widget .monaco-scrollable-element,
.monaco-editor .parameter-hints-widget .body {
J
Joao Moreno 已提交
40 41 42 43
	display: flex;
	flex-direction: column;
}

J
Joao Moreno 已提交
44 45 46 47 48 49 50 51 52 53 54 55 56
.monaco-editor .parameter-hints-widget.multiple .body {
	border-left: 1px solid rgba(204, 204, 204, 0.5);
}

.monaco-editor .parameter-hints-widget .signature {
	padding: 4px 5px;
}

.monaco-editor .parameter-hints-widget .signature.has-docs {
	border-bottom: 1px solid rgba(204, 204, 204, 0.5);
}

.monaco-editor .parameter-hints-widget .docs {
J
Joao Moreno 已提交
57
	padding: 0 10px 0 5px;
E
Erich Gamma 已提交
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
}

.monaco-editor .parameter-hints-widget .buttons {
	position: absolute;
	display: none;
	bottom: 0;
	left: 0;
}

.monaco-editor .parameter-hints-widget.multiple .buttons {
	display: block;
}

.monaco-editor .parameter-hints-widget.multiple .button {
	position: absolute;
	left: 2px;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.monaco-editor .parameter-hints-widget .button.previous {
	bottom: 24px;
	background-image: url('arrow-up.svg');
}

.monaco-editor .parameter-hints-widget .button.next {
	bottom: 0;
	background-image: url('arrow-down.svg');
}

.monaco-editor .parameter-hints-widget .overloads {
	position: absolute;
	display: none;
	text-align: center;
	bottom: 14px;
	left: 0;
	width: 22px;
	height: 12px;
	line-height: 12px;
	opacity: 0.5;
}

.monaco-editor .parameter-hints-widget.multiple .overloads {
	display: block;
}

.monaco-editor .parameter-hints-widget .signature .parameter {
	display: inline-block;
}

.monaco-editor .parameter-hints-widget .signature .parameter.active {
	font-weight: bold;
J
Joao Moreno 已提交
112
	text-decoration: underline;
E
Erich Gamma 已提交
113 114
}

J
Joao Moreno 已提交
115
.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {
E
Erich Gamma 已提交
116 117 118 119
	font-weight: bold;
	margin-right: 0.5em;
}

J
Joao Moreno 已提交
120
/*** VS Dark */
E
Erich Gamma 已提交
121

J
Joao Moreno 已提交
122 123 124
.monaco-editor.vs-dark .parameter-hints-widget {
	background-color: #2D2D30;
	border-color: rgba(85,85,85,0.5);
E
Erich Gamma 已提交
125 126
}

J
Joao Moreno 已提交
127 128 129 130 131
.monaco-editor.hc-black .parameter-hints-widget .body,
.monaco-editor.vs-dark .parameter-hints-widget .body,
.monaco-editor.hc-black .parameter-hints-widget .signature,
.monaco-editor.vs-dark .parameter-hints-widget .signature {
	border-color: rgba(85,85,85,0.5);
E
Erich Gamma 已提交
132 133
}

134
.monaco-editor.hc-black .parameter-hints-widget .button.previous,
E
Erich Gamma 已提交
135 136 137 138
.monaco-editor.vs-dark .parameter-hints-widget .button.previous {
	background-image: url('arrow-up-dark.svg');
}

139
.monaco-editor.hc-black .parameter-hints-widget .button.next,
E
Erich Gamma 已提交
140 141 142 143
.monaco-editor.vs-dark .parameter-hints-widget .button.next {
	background-image: url('arrow-down-dark.svg');
}

J
Joao Moreno 已提交
144
/*** High Contrast */
E
Erich Gamma 已提交
145

J
Joao Moreno 已提交
146 147 148 149
.monaco-editor.hc-black .parameter-hints-widget {
	background-color: #0C141F;
	border: 2px solid #6FC3DF;
}