iconlabel.css 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

/* ---------- Icon label ---------- */

.monaco-icon-label {
	display: inline-block; /* required for icons support :before rule */
10 11
	overflow: hidden;
	text-overflow: ellipsis;
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
}

.monaco-icon-label::before {

	/* svg icons rendered as background image */
	background-size: 16px;
	background-position: left center;
	background-repeat: no-repeat;
	padding-right: 6px;
	width: 16px;
	height: 22px;
	display: inline-block;

	/* fonts icons */
	-webkit-font-smoothing: antialiased;
	vertical-align: top;
}

.monaco-icon-label > .label-name {
	color: inherit;
B
Benjamin Pasero 已提交
32
	white-space: pre; /* enable to show labels that include multiple whitespaces */
33 34 35 36 37 38
}

.monaco-icon-label > .label-description {
	opacity: 0.7;
	margin-left: 0.5em;
	font-size: 0.9em;
B
Benjamin Pasero 已提交
39
	white-space: pre; /* enable to show labels that include multiple whitespaces */
40 41 42 43 44
}

.monaco-icon-label.italic > .label-name,
.monaco-icon-label.italic > .label-description {
	font-style: italic;
45 46 47 48 49 50 51 52 53 54 55 56 57 58
}

.monaco-icon-label > .label-badge {
	align-self: center;
	height: 12px;
	min-width: 10px;
	line-height: 12px;
	font-size: 80%;
	margin: 1px 15px 1px auto;
	padding: 2px 4px;
	border-radius: 14px;
	font-weight: normal;
	text-align: center;
}