提交 d94dc24e 编写于 作者: E Eric Amodio

Fixes input placeholders

Vendor specific selectors cannot be combined, because browsers will drop the whole ruleset if there is something "unknown" in the selector
上级 b7b21844
......@@ -35,12 +35,14 @@ registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
const placeholderForeground = theme.getColor(inputPlaceholderForeground);
if (placeholderForeground) {
collector.addRule(`
.monaco-workbench input::-moz-placeholder,
.monaco-workbench input::-webkit-input-placeholder { color: ${placeholderForeground}; }
.monaco-workbench input::placeholder { color: ${placeholderForeground}; }
.monaco-workbench input::-webkit-input-placeholder { color: ${placeholderForeground}; }
.monaco-workbench input::-moz-placeholder { color: ${placeholderForeground}; }
`);
collector.addRule(`
.monaco-workbench textarea::-moz-placeholder,
.monaco-workbench textarea::placeholder { color: ${placeholderForeground}; }
.monaco-workbench textarea::-webkit-input-placeholder { color: ${placeholderForeground}; }
.monaco-workbench textarea::-moz-placeholder { color: ${placeholderForeground}; }
`);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册