Update pills style to use mix (ref #96608)
This commit is contained in:
Родитель
027b6b709c
Коммит
7653d83694
|
@ -15,3 +15,8 @@
|
|||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.monaco-count-badge.long {
|
||||
padding: 2px 3px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
|
|
@ -103,6 +103,8 @@
|
|||
|
||||
.quick-input-count .monaco-count-badge {
|
||||
vertical-align: middle;
|
||||
padding: 2px 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.quick-input-action {
|
||||
|
|
|
@ -475,7 +475,7 @@ class SessionsRenderer implements ITreeRenderer<IDebugSession, FuzzyScore, ISess
|
|||
dom.append(session, $('.codicon.codicon-bug'));
|
||||
const name = dom.append(session, $('.name'));
|
||||
const state = dom.append(session, $('.state'));
|
||||
const stateLabel = dom.append(state, $('span.label.monaco-count-badge'));
|
||||
const stateLabel = dom.append(state, $('span.label.monaco-count-badge.long'));
|
||||
const label = new HighlightedLabel(name, false);
|
||||
const actionBar = new ActionBar(session, {
|
||||
actionViewItemProvider: action => {
|
||||
|
|
|
@ -60,8 +60,7 @@
|
|||
}
|
||||
|
||||
.dirty-count.monaco-count-badge {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
padding: 2px 4px;
|
||||
margin-left: 6px;
|
||||
min-height: auto;
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ export class OpenEditorsView extends ViewPane {
|
|||
super.renderHeaderTitle(container, this.title);
|
||||
|
||||
const count = dom.append(container, $('.count'));
|
||||
this.dirtyCountElement = dom.append(count, $('.dirty-count.monaco-count-badge'));
|
||||
this.dirtyCountElement = dom.append(count, $('.dirty-count.monaco-count-badge.long'));
|
||||
|
||||
this._register((attachStylerCallback(this.themeService, { badgeBackground, badgeForeground, contrastBorder }, colors => {
|
||||
const background = colors.badgeBackground ? colors.badgeBackground.toString() : '';
|
||||
|
|
|
@ -401,7 +401,7 @@ export class KeybindingsEditor extends BaseEditor implements IKeybindingsEditorP
|
|||
}
|
||||
|
||||
private createRecordingBadge(container: HTMLElement): HTMLElement {
|
||||
const recordingBadge = DOM.append(container, DOM.$('.recording-badge.monaco-count-badge.disabled'));
|
||||
const recordingBadge = DOM.append(container, DOM.$('.recording-badge.monaco-count-badge.long.disabled'));
|
||||
recordingBadge.textContent = localize('recording', "Recording Keys");
|
||||
this._register(attachStylerCallback(this.themeService, { badgeBackground, contrastBorder, badgeForeground }, colors => {
|
||||
const background = colors.badgeBackground ? colors.badgeBackground.toString() : '';
|
||||
|
|
|
@ -442,7 +442,7 @@ export class SettingsEditor2 extends BaseEditor {
|
|||
inputBorder: settingsTextInputBorder
|
||||
}));
|
||||
|
||||
this.countElement = DOM.append(searchContainer, DOM.$('.settings-count-widget.monaco-count-badge'));
|
||||
this.countElement = DOM.append(searchContainer, DOM.$('.settings-count-widget.monaco-count-badge.long'));
|
||||
this._register(attachStylerCallback(this.themeService, { badgeBackground, contrastBorder, badgeForeground }, colors => {
|
||||
const background = colors.badgeBackground ? colors.badgeBackground.toString() : '';
|
||||
const border = colors.contrastBorder ? colors.contrastBorder.toString() : '';
|
||||
|
|
Загрузка…
Ссылка в новой задаче