Skip to content
Snippets Groups Projects
Commit 4543dfb4 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Remove Bulma CSS library dependency

parent 28566716
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
"vpu-common": "file:./vendor/common" "vpu-common": "file:./vendor/common"
}, },
"dependencies": { "dependencies": {
"bulma": "^0.7.5",
"jquery": "^3.4.1", "jquery": "^3.4.1",
"lit-element": "^2.1.0", "lit-element": "^2.1.0",
"select2": "^4.0.9" "select2": "^4.0.9"
......
...@@ -3,7 +3,7 @@ import {i18n} from './i18n.js'; ...@@ -3,7 +3,7 @@ import {i18n} from './i18n.js';
import {css, html, LitElement} from 'lit-element'; import {css, html, LitElement} from 'lit-element';
import './vpu-person-select.js'; import './vpu-person-select.js';
import * as commonUtils from 'vpu-common/utils'; import * as commonUtils from 'vpu-common/utils';
import bulmaCSSPath from "bulma/css/bulma.min.css"; import * as commonStyles from 'vpu-common/styles';
class PersonSelectDemo extends LitElement { class PersonSelectDemo extends LitElement {
constructor() { constructor() {
...@@ -30,6 +30,9 @@ class PersonSelectDemo extends LitElement { ...@@ -30,6 +30,9 @@ class PersonSelectDemo extends LitElement {
static get styles() { static get styles() {
// language=css // language=css
return css` return css`
${commonStyles.getThemeCSS()}
${commonStyles.getGeneralCSS()}
h1.title {margin-bottom: 1em;} h1.title {margin-bottom: 1em;}
div.container {margin-bottom: 1.5em;} div.container {margin-bottom: 1.5em;}
`; `;
...@@ -45,10 +48,8 @@ class PersonSelectDemo extends LitElement { ...@@ -45,10 +48,8 @@ class PersonSelectDemo extends LitElement {
render() { render() {
commonUtils.initAssetBaseURL('vpu-person-select-src'); commonUtils.initAssetBaseURL('vpu-person-select-src');
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
return html`
<link rel="stylesheet" href="${bulmaCSS}">
return html`
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<h1 class="title">Person-Select-Demo</h1> <h1 class="title">Person-Select-Demo</h1>
......
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