Skip to content

Commit

Permalink
change the size of webview icon
Browse files Browse the repository at this point in the history
Signed-off-by: kpge <gekangping@126.com>
  • Loading branch information
kpge authored and vince-fugnitto committed Jul 23, 2019
1 parent 2117353 commit f36c151
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
17 changes: 17 additions & 0 deletions packages/plugin-ext/src/main/browser/style/webview.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@
background: none !important;
min-height: 20px;
}

.webview-icon::before {
background-size: 13px;
background-repeat: no-repeat;
vertical-align: middle;
display: inline-block;
text-align: center;
height: 15px;
width: 15px;
content: "";
}

.p-TabBar.theia-app-sides .webview-icon::before {
width: var(--theia-private-sidebar-icon-size);
height: var(--theia-private-sidebar-icon-size);
background-size: contain;
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,7 @@ export class ThemeRulesService {
if (!this.styleElement) {
return;
}
const cssRules: string[] = [`.webview-icon::before {
background-repeat: no-repeat;
vertical-align: middle;
display: inline-block;
text-align: center;
height: 11px;
width: 11px;
content: "";
}`];
const cssRules: string[] = [];
this.icons.forEach((value, key) => {
let path: string;
if (typeof value === 'string') {
Expand Down

0 comments on commit f36c151

Please sign in to comment.