Skip to content
Snippets Groups Projects
Commit 2936cf63 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Improve padding/size of inline icons; fix script src lookup

parent 3a1de3f5
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<script type="module" src="bundle.js"></script> <script type="module" id="vpu-common-demo-src" src="bundle.js"></script>
<style> <style>
body { body {
font-family: sans; font-family: sans;
......
...@@ -42,7 +42,7 @@ class VpuCommonDemo extends VPULitElement { ...@@ -42,7 +42,7 @@ class VpuCommonDemo extends VPULitElement {
} }
a:after { a:after {
${ unsafeCSS(getIconCSS('bolt')) }; ${ unsafeCSS(getIconCSS('envelope')) };
} }
`; `;
} }
...@@ -62,7 +62,7 @@ class VpuCommonDemo extends VPULitElement { ...@@ -62,7 +62,7 @@ class VpuCommonDemo extends VPULitElement {
} }
render() { render() {
commonUtils.initAssetBaseURL('vpu-person-select-src'); commonUtils.initAssetBaseURL('vpu-common-demo-src');
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath); const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
return html` return html`
<link rel="stylesheet" href="${bulmaCSS}"> <link rel="stylesheet" href="${bulmaCSS}">
......
...@@ -33,7 +33,8 @@ export function getIconCSS(name) { ...@@ -33,7 +33,8 @@ export function getIconCSS(name) {
-webkit-mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
mask-position: center center; mask-position: center center;
-webkit-mask-position: center center; -webkit-mask-position: center center;
font-size: 1.1em; margin-left: 0.2em;
padding-left: 0.3em;
content: "X"; content: "X";
`; `;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment