提交 5b22f3cf 编写于 作者: M Martin Aeschlimann

[icon sets] larger padding, font size control by icon set

上级 66e23474
......@@ -36,14 +36,13 @@
background-size: 16px;
background-position: left center;
background-repeat: no-repeat;
padding-right: 4px;
padding-right: 6px;
width: 16px;
height: 22px;
display: inline-block;
/* fonts icons */
vertical-align: top;
font-size: 16px;
-webkit-font-smoothing: antialiased;
}
......
......@@ -145,7 +145,7 @@ interface FileIconsAssociation {
interface FileIconsDocument extends FileIconsAssociation {
iconDefinitions: { [key:string]: FileIconDefinition };
font: { family: string; weight: string; style: string; src: {path:string, format:string}[] };
font: { family: string; weight: string; style: string; size: string, src: {path:string, format:string}[] };
light?: FileIconsAssociation;
highContrast?: FileIconsAssociation;
}
......@@ -509,7 +509,7 @@ function _processFileIconsObject(id: string, fileIconsPath: string, fileIconsDoc
let src = font.src.map(l => `url('${resolvePath(l.path)}') format('${l.format}')`).join(', ');
cssRules.push(`@font-face { src: ${src}; font-family: '${font.family}'; font-weigth: ${font.weight}; font-style: ${font.style}; }`);
cssRules.push(`.file-icon::before, .folder-icon::before { font-family: '${font.family}';}`);
cssRules.push(`.show-file-icons .file-icon::before, .show-file-icons .folder-icon::before { font-family: '${font.family}'; font-size: ${font.size || '150%'}}`);
}
for (let defId in selectorByDefinitionId) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册