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

B
Benjamin Pasero 已提交
6
.monaco-workbench .part.editor.has-watermark > .content.empty .editor-group-container > .editor-group-letterpress {
7 8 9
	background-position-y: calc(50% - 100px);
}

B
Benjamin Pasero 已提交
10
.monaco-workbench .part.editor.max-height-478px > .content.empty .editor-group-container > .editor-group-letterpress {
11 12 13
	background-position-y: 50%;
}

14
.monaco-workbench .part.editor > .content > .watermark {
15 16 17
	display: none; /* only visible when no editors are opened */
}

18
.monaco-workbench .part.editor.has-watermark > .content.empty > .watermark {
19
	display: block;
20 21
	position: absolute;
	width: 100%;
22
	top: calc(50% + 55px);
23
	text-align: center;
24
	white-space: nowrap;
25
	overflow: hidden;
26 27
}

28
.monaco-workbench .part.editor > .content.empty > .watermark > .watermark-box {
29 30 31
	display: inline-table;
	border-collapse: separate;
	border-spacing: 13px 17px;
32 33
}

34
.monaco-workbench .part.editor.max-height-478px > .content.empty > .watermark {
35
	display: none;
36
}
37

38
.monaco-workbench .part.editor > .content.empty > .watermark dl {
39
	display: table-row;
40 41
	opacity: .8;
	cursor: default;
42 43
}

44
.monaco-workbench .part.editor > .content.empty > .watermark dt {
45
	text-align: right;
46
	letter-spacing: 0.04em
47 48
}

49
.monaco-workbench .part.editor > .content.empty > .watermark dd {
50 51 52
	text-align: left;
}

53 54
.monaco-workbench .part.editor > .content.empty > .watermark dt,
.monaco-workbench .part.editor > .content.empty > .watermark dd {
55
	display: table-cell;
56 57
}

58 59
.monaco-workbench .part.editor > .content.empty > .watermark dt,
.monaco-workbench .part.editor > .content.empty > .watermark dl {
60
	color: rgba(0,0,0,.68);
61 62
}

63 64
.monaco-workbench.vs-dark .part.editor > .content.empty > .watermark dt,
.monaco-workbench.vs-dark .part.editor > .content.empty > .watermark dl {
65
	color: rgba(255,255,255,.6);
66 67
}

68
.monaco-workbench.hc-black .part.editor > .content.empty > .watermark dt {
69 70
	color: #FFF;
}
71
.monaco-workbench.hc-black .part.editor > .content.empty > .watermark dl {
72
	color: #FFF;
73
	opacity: 1;
74
}