提交 aca3eaa9 编写于 作者: B Benjamin Pasero

.hidden should not be in global css space

上级 d05bb700
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright (c) Microsoft Corporation. All rights reserved. * Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information. * Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
/* ---------- Builder ---------- */
.hidden { .builder-hidden {
display: none !important; display: none !important;
visibility: hidden !important; visibility: hidden !important;
} }
......
...@@ -1280,8 +1280,8 @@ export class Builder implements IDisposable { ...@@ -1280,8 +1280,8 @@ export class Builder implements IDisposable {
* Shows the current element of the builder. * Shows the current element of the builder.
*/ */
public show(): Builder { public show(): Builder {
if (this.hasClass('hidden')) { if (this.hasClass('builder-hidden')) {
this.removeClass('hidden'); this.removeClass('builder-hidden');
} }
this.attr('aria-hidden', 'false'); this.attr('aria-hidden', 'false');
...@@ -1319,8 +1319,8 @@ export class Builder implements IDisposable { ...@@ -1319,8 +1319,8 @@ export class Builder implements IDisposable {
* Hides the current element of the builder. * Hides the current element of the builder.
*/ */
public hide(): Builder { public hide(): Builder {
if (!this.hasClass('hidden')) { if (!this.hasClass('builder-hidden')) {
this.addClass('hidden'); this.addClass('builder-hidden');
} }
this.attr('aria-hidden', 'true'); this.attr('aria-hidden', 'true');
...@@ -1334,7 +1334,7 @@ export class Builder implements IDisposable { ...@@ -1334,7 +1334,7 @@ export class Builder implements IDisposable {
* Returns true if the current element of the builder is hidden. * Returns true if the current element of the builder is hidden.
*/ */
public isHidden(): boolean { public isHidden(): boolean {
return this.hasClass('hidden') || this.currentElement.style.display === 'none'; return this.hasClass('builder-hidden') || this.currentElement.style.display === 'none';
} }
/** /**
...@@ -1345,7 +1345,7 @@ export class Builder implements IDisposable { ...@@ -1345,7 +1345,7 @@ export class Builder implements IDisposable {
// Cancel any pending showDelayed() invocation // Cancel any pending showDelayed() invocation
this.cancelVisibilityPromise(); this.cancelVisibilityPromise();
this.swapClass('builder-visible', 'hidden'); this.swapClass('builder-visible', 'builder-hidden');
if (this.isHidden()) { if (this.isHidden()) {
this.attr('aria-hidden', 'true'); this.attr('aria-hidden', 'true');
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information. * Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
.monaco-editor .lightbulb-glyph { .monaco-editor .lightbulb-glyph {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -12,6 +11,11 @@ ...@@ -12,6 +11,11 @@
width: 16px; width: 16px;
} }
.monaco-editor .lightbulb-glyph.hidden {
display: none;
visibility: hidden;
}
.monaco-editor .lightbulb-glyph:hover { .monaco-editor .lightbulb-glyph:hover {
cursor: pointer; cursor: pointer;
} }
......
...@@ -27,6 +27,12 @@ ...@@ -27,6 +27,12 @@
height: calc(100% - 38px); height: calc(100% - 38px);
} }
.extensions-viewlet > .extensions.hidden,
.extensions-viewlet > .message.hidden {
display: none;
visibility: hidden;
}
.extensions-viewlet > .message { .extensions-viewlet > .message {
padding: 5px 9px 5px 16px; padding: 5px 9px 5px 16px;
cursor: default; cursor: default;
......
...@@ -48,6 +48,11 @@ ...@@ -48,6 +48,11 @@
visibility: hidden; visibility: hidden;
} }
.explorer-viewlet .header .monaco-count-badge.hidden {
display: none;
visibility: hidden;
}
.explorer-folders-view .monaco-tree-row > .content { .explorer-folders-view .monaco-tree-row > .content {
display: inline-block; display: inline-block;
} }
......
...@@ -41,6 +41,12 @@ ...@@ -41,6 +41,12 @@
height: 100%; height: 100%;
} }
.markers-panel .markers-panel-container .tree-container.hidden,
.markers-panel .markers-panel-container .message-box-container.hidden {
display: none;
visibility: hidden;
}
.markers-panel .markers-panel-container .tree-container .markers-panel-tree-entry { .markers-panel .markers-panel-container .tree-container .markers-panel-tree-entry {
display: flex; display: flex;
line-height: 22px; line-height: 22px;
......
...@@ -156,6 +156,11 @@ ...@@ -156,6 +156,11 @@
cursor: pointer; cursor: pointer;
} }
.monaco-editor .edit-preferences-widget.hidden {
display: none;
visibility: hidden;
}
.monaco-editor.hc-black .edit-preferences-widget, .monaco-editor.hc-black .edit-preferences-widget,
.monaco-editor.vs-dark .edit-preferences-widget { .monaco-editor.vs-dark .edit-preferences-widget {
background: url('edit_inverse.svg') center center no-repeat; background: url('edit_inverse.svg') center center no-repeat;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册