Skip to content

Commit

Permalink
Update pills style to use mix (ref #96608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Solorio committed May 8, 2020
1 parent 027b6b7 commit 7653d83
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/vs/base/browser/ui/countBadge/countBadge.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
display: inline-block;
box-sizing: border-box;
}

.monaco-count-badge.long {
padding: 2px 3px;
border-radius: 2px;
}
2 changes: 2 additions & 0 deletions src/vs/base/parts/quickinput/browser/media/quickInput.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@

.quick-input-count .monaco-count-badge {
vertical-align: middle;
padding: 2px 4px;
border-radius: 2px;
}

.quick-input-action {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/browser/callStackView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
}

.dirty-count.monaco-count-badge {
padding-top: 2px;
padding-bottom: 2px;
padding: 2px 4px;
margin-left: 6px;
min-height: auto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() : '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() : '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() : '';
Expand Down

0 comments on commit 7653d83

Please sign in to comment.