have platform classname only once
parent
dacef0561a
commit
5e50e1bfd0
|
@ -54,7 +54,7 @@
|
|||
background-image: none;
|
||||
}
|
||||
|
||||
.monaco-workbench.windows > .part.editor > .content .editor-group-container > .title.breadcrumbs .breadcrumbs-control .monaco-breadcrumb-item::before {
|
||||
.windows > .monaco-workbench > .part.editor > .content .editor-group-container > .title.breadcrumbs .breadcrumbs-control .monaco-breadcrumb-item::before {
|
||||
content: '\\';
|
||||
}
|
||||
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
|
||||
/* Windows/Linux: Rules for custom title (icon, window controls) */
|
||||
|
||||
.monaco-workbench.windows > .part.titlebar,
|
||||
.monaco-workbench.linux > .part.titlebar {
|
||||
.windows > .monaco-workbench > .part.titlebar,
|
||||
.linux > .monaco-workbench > .part.titlebar {
|
||||
padding: 0;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
|
@ -51,17 +51,17 @@
|
|||
overflow: visible;
|
||||
}
|
||||
|
||||
.monaco-workbench.windows > .part.titlebar > .window-title,
|
||||
.monaco-workbench.linux > .part.titlebar > .window-title {
|
||||
.windows > .monaco-workbench > .part.titlebar > .window-title,
|
||||
.linux > .monaco-workbench > .part.titlebar > .window-title {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.monaco-workbench.linux > .part.titlebar > .window-title {
|
||||
.linux > .monaco-workbench > .part.titlebar > .window-title {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.monaco-workbench.windows > .part.titlebar > .resizer,
|
||||
.monaco-workbench.linux > .part.titlebar > .resizer {
|
||||
.windows > .monaco-workbench > .part.titlebar > .resizer,
|
||||
.linux > .monaco-workbench > .part.titlebar > .resizer {
|
||||
-webkit-app-region: no-drag;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
@ -69,8 +69,8 @@
|
|||
height: 20%;
|
||||
}
|
||||
|
||||
.monaco-workbench.windows.fullscreen > .part.titlebar > .resizer,
|
||||
.monaco-workbench.linux.fullscreen > .part.titlebar > .resizer {
|
||||
.windows > .monaco-workbench.fullscreen > .part.titlebar > .resizer,
|
||||
.linux > .monaco-workbench.fullscreen > .part.titlebar > .resizer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -156,4 +156,4 @@
|
|||
|
||||
.monaco-workbench > .part.titlebar > .window-controls-container .window-icon.window-close:hover {
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -292,7 +292,7 @@ export class Workbench extends Disposable implements IPartService {
|
|||
private createWorkbench(): void {
|
||||
this.workbench = document.createElement('div');
|
||||
this.workbench.id = Identifiers.WORKBENCH_CONTAINER;
|
||||
DOM.addClasses(this.workbench, 'monaco-workbench', isWindows ? 'windows' : isLinux ? 'linux' : 'mac');
|
||||
DOM.addClass(this.workbench, 'monaco-workbench');
|
||||
|
||||
this._register(DOM.addDisposableListener(this.workbench, DOM.EventType.SCROLL, () => {
|
||||
this.workbench.scrollTop = 0; // Prevent workbench from scrolling #55456
|
||||
|
|
|
@ -142,12 +142,12 @@
|
|||
font-family: Monaco, Menlo, Consolas, "Droid Sans Mono", "Inconsolata", "Courier New", monospace, "Droid Sans Fallback";
|
||||
}
|
||||
|
||||
.monaco-workbench.mac .monaco-list-row .expression {
|
||||
.mac > .monaco-workbench .monaco-list-row .expression {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.monaco-workbench.windows .monaco-list-row .expression,
|
||||
.monaco-workbench.linux .monaco-list-row .expression {
|
||||
.windows > .monaco-workbench .monaco-list-row .expression,
|
||||
.linux > .monaco-workbench .monaco-list-row .expression {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.monaco-workbench.mac > .part > .title > .title-actions .start-debug-action-item {
|
||||
.mac > .monaco-workbench > .part > .title > .title-actions .start-debug-action-item {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
|
||||
/* High Contrast Theming */
|
||||
|
||||
.monaco-workbench.mac .zone-widget .zone-widget-container.exception-widget {
|
||||
.mac > .monaco-workbench .zone-widget .zone-widget-container.exception-widget {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.monaco-workbench.windows .zone-widget .zone-widget-container.exception-widget,
|
||||
.monaco-workbench.linux .zone-widget .zone-widget-container.exception-widget {
|
||||
.windows > .monaco-workbench .zone-widget .zone-widget-container.exception-widget,
|
||||
.linux > .monaco-workbench .zone-widget .zone-widget-container.exception-widget {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
|
|
@ -37,13 +37,13 @@
|
|||
word-break: break-all;
|
||||
}
|
||||
|
||||
.monaco-workbench.mac .repl .repl-tree .monaco-tl-twistie.collapsible + .monaco-tl-contents,
|
||||
.monaco-workbench.mac .repl .repl-tree .monaco-tl-twistie {
|
||||
.mac > .monaco-workbench .repl .repl-tree .monaco-tl-twistie.collapsible + .monaco-tl-contents,
|
||||
.mac > .monaco-workbench .repl .repl-tree .monaco-tl-twistie {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.monaco-workbench.mac .repl .repl-tree .input.expression,
|
||||
.monaco-workbench.mac .repl .repl-tree .output.expression {
|
||||
.mac > .monaco-workbench .repl .repl-tree .input.expression,
|
||||
.mac > .monaco-workbench .repl .repl-tree .output.expression {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
@ -62,10 +62,10 @@
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.monaco-workbench.windows .repl .repl-tree .monaco-list-row .input.expression,
|
||||
.monaco-workbench.windows .repl .repl-tree .monaco-list-row .output.expression,
|
||||
.monaco-workbench.linux .repl .repl-tree .monaco-list-row .input.expression,
|
||||
.monaco-workbench.linux .repl .repl-tree .monaco-list-row .output.expression {
|
||||
.windows > .monaco-workbench .repl .repl-tree .monaco-list-row .input.expression,
|
||||
.windows > .monaco-workbench .repl .repl-tree .monaco-list-row .output.expression,
|
||||
.linux > .monaco-workbench .repl .repl-tree .monaco-list-row .input.expression,
|
||||
.linux > .monaco-workbench .repl .repl-tree .monaco-list-row .output.expression {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
@ -103,7 +103,7 @@
|
|||
line-height: 18px;
|
||||
}
|
||||
|
||||
.monaco-workbench.linux .repl .repl-input-wrapper:before {
|
||||
.linux > .monaco-workbench .repl .repl-input-wrapper:before {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
|
|
|
@ -106,8 +106,8 @@
|
|||
line-height: normal;
|
||||
}
|
||||
|
||||
.monaco-workbench.linux .explorer-viewlet .explorer-item .monaco-inputbox,
|
||||
.monaco-workbench.mac .explorer-viewlet .explorer-item .monaco-inputbox {
|
||||
.linux > .monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox,
|
||||
.mac > .monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox {
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
|
@ -115,8 +115,8 @@
|
|||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
.monaco-workbench.linux .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input,
|
||||
.monaco-workbench.mac .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input {
|
||||
.linux > .monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input,
|
||||
.mac > .monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input {
|
||||
padding: 0;
|
||||
height: 20px;
|
||||
}
|
||||
|
|
|
@ -157,8 +157,8 @@
|
|||
.vs-dark .monaco-workbench .terminal-action.split, .hc-black .monaco-workbench .terminal-action.split { background: url('split-inverse.svg') center center no-repeat; }
|
||||
.vs-dark .monaco-workbench .panel.right .terminal-action.split, .hc-black .monaco-workbench .panel.right .terminal-action.split { background: url('split-horizontal-inverse.svg') center center no-repeat; }
|
||||
|
||||
.vs-dark .monaco-workbench.mac .panel.integrated-terminal .terminal-outer-container:not(.alt-active) .terminal:not(.enable-mouse-events),
|
||||
.hc-black .monaco-workbench.mac .panel.integrated-terminal .terminal-outer-container:not(.alt-active) .terminal:not(.enable-mouse-events) {
|
||||
.vs-dark.mac .monaco-workbench .panel.integrated-terminal .terminal-outer-container:not(.alt-active) .terminal:not(.enable-mouse-events),
|
||||
.hc-black.mac .monaco-workbench .panel.integrated-terminal .terminal-outer-container:not(.alt-active) .terminal:not(.enable-mouse-events) {
|
||||
cursor: -webkit-image-set(url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=') 1x, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC') 2x) 5 8, text;
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
.monaco-workbench.mac > .part.editor > .content.empty > .watermark dd > .shortcuts {
|
||||
.mac > .monaco-workbench > .part.editor > .content.empty > .watermark dd > .shortcuts {
|
||||
letter-spacing: 0.15em;
|
||||
font-family: "Lucida Grande", sans-serif;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@
|
|||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
.monaco-workbench.mac > .part.editor > .content.empty > .watermark dd > .unbound {
|
||||
.mac > .monaco-workbench > .part.editor > .content.empty > .watermark dd > .unbound {
|
||||
font-family: "Lucida Grande", sans-serif;
|
||||
}
|
||||
|
||||
|
|
|
@ -228,21 +228,21 @@
|
|||
.monaco-workbench > .part.editor > .content .welcomePage .linux-only {
|
||||
display: none;
|
||||
}
|
||||
.monaco-workbench.mac > .part.editor > .content .welcomePage .mac-only {
|
||||
.mac > .monaco-workbench > .part.editor > .content .welcomePage .mac-only {
|
||||
display: initial;
|
||||
}
|
||||
.monaco-workbench.windows > .part.editor > .content .welcomePage .windows-only {
|
||||
.windows > .monaco-workbench > .part.editor > .content .welcomePage .windows-only {
|
||||
display: initial;
|
||||
}
|
||||
.monaco-workbench.linux > .part.editor > .content .welcomePage .linux-only {
|
||||
.linux > .monaco-workbench > .part.editor > .content .welcomePage .linux-only {
|
||||
display: initial;
|
||||
}
|
||||
.monaco-workbench.mac > .part.editor > .content .welcomePage li.mac-only {
|
||||
.mac > .monaco-workbench > .part.editor > .content .welcomePage li.mac-only {
|
||||
display: list-item;
|
||||
}
|
||||
.monaco-workbench.windows > .part.editor > .content .welcomePage li.windows-only {
|
||||
.windows > .monaco-workbench > .part.editor > .content .welcomePage li.windows-only {
|
||||
display: list-item;
|
||||
}
|
||||
.monaco-workbench.linux > .part.editor > .content .welcomePage li.linux-only {
|
||||
.linux > .monaco-workbench > .part.editor > .content .welcomePage li.linux-only {
|
||||
display: list-item;
|
||||
}
|
||||
|
|
|
@ -123,13 +123,13 @@
|
|||
.monaco-workbench > .part.editor > .content .walkThroughContent .linux-only {
|
||||
display: none;
|
||||
}
|
||||
.monaco-workbench.mac > .part.editor > .content .walkThroughContent .mac-only {
|
||||
.mac > .monaco-workbench > .part.editor > .content .walkThroughContent .mac-only {
|
||||
display: initial;
|
||||
}
|
||||
.monaco-workbench.windows > .part.editor > .content .walkThroughContent .windows-only {
|
||||
.windows > .monaco-workbench > .part.editor > .content .walkThroughContent .windows-only {
|
||||
display: initial;
|
||||
}
|
||||
.monaco-workbench.linux > .part.editor > .content .walkThroughContent .linux-only {
|
||||
.linux > .monaco-workbench > .part.editor > .content .walkThroughContent .linux-only {
|
||||
display: initial;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue