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

Remove Bulma dependency

parent d3476fe5
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
"vpu-common": "file:./vendor/common" "vpu-common": "file:./vendor/common"
}, },
"dependencies": { "dependencies": {
"bulma": "^0.7.5",
"i18next": "^17.0.3", "i18next": "^17.0.3",
"lit-element": "^2.1.0", "lit-element": "^2.1.0",
"lit-html": "^1.1.1", "lit-html": "^1.1.1",
......
...@@ -3,7 +3,7 @@ import {css, html, LitElement} from 'lit-element'; ...@@ -3,7 +3,7 @@ import {css, html, LitElement} from 'lit-element';
import 'vpu-auth'; import 'vpu-auth';
import './vpu-knowledge-base-web-page-element-view.js'; import './vpu-knowledge-base-web-page-element-view.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 KnowledgeBaseWebPageElementViewDemo extends LitElement { class KnowledgeBaseWebPageElementViewDemo extends LitElement {
constructor() { constructor() {
...@@ -32,8 +32,21 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement { ...@@ -32,8 +32,21 @@ class KnowledgeBaseWebPageElementViewDemo 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;}
vpu-knowledge-base-web-page-element-view.clean {
--KBBorder: initial;
--KBBorderRadius: initial;
--KBMargin: initial;
--KBPadding: initial;
}
vpu-knowledge-base-web-page-element-view.opt {
--KBBorder: 2px solid blue;
}
`; `;
} }
...@@ -47,21 +60,7 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement { ...@@ -47,21 +60,7 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement {
render() { render() {
commonUtils.initAssetBaseURL('vpu-knowledge-base-web-page-element-view-src'); commonUtils.initAssetBaseURL('vpu-knowledge-base-web-page-element-view-src');
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
return html` return html`
<link rel="stylesheet" href="${bulmaCSS}">
<style>
vpu-knowledge-base-web-page-element-view.clean {
--KBBorder: initial;
--KBBorderRadius: initial;
--KBMargin: initial;
--KBPadding: initial;
}
vpu-knowledge-base-web-page-element-view.opt {
--KBBorder: 2px solid blue;
}
</style>
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<h1 class="title">KnowledgeBaseWebPageElementView-Demo</h1> <h1 class="title">KnowledgeBaseWebPageElementView-Demo</h1>
......
...@@ -5,7 +5,6 @@ import VPULitElement from 'vpu-common/vpu-lit-element' ...@@ -5,7 +5,6 @@ import VPULitElement from 'vpu-common/vpu-lit-element'
import "vpu-common/vpu-mini-spinner.js"; import "vpu-common/vpu-mini-spinner.js";
import * as commonUtils from "vpu-common/utils"; import * as commonUtils from "vpu-common/utils";
import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import bulmaCSSPath from "bulma/css/bulma.min.css";
/** /**
* KnowledgeBaseWebPageElementView web component * KnowledgeBaseWebPageElementView web component
...@@ -156,9 +155,8 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement { ...@@ -156,9 +155,8 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement {
render() { render() {
commonUtils.initAssetBaseURL('vpu-knowledge-base-web-page-element-view-src'); commonUtils.initAssetBaseURL('vpu-knowledge-base-web-page-element-view-src');
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
return html` return html`
<link rel="stylesheet" href="${bulmaCSS}">
<style> <style>
.kb { .kb {
display: none; display: none;
......
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