Skip to content
Snippets Groups Projects
Commit 55edfcdc authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Remove BULMA.CSS

TODO: rollup.config.js cleanup
parent 34d6bfa2
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
include: 'node_modules/**' include: 'node_modules/**'
}), }),
json(), json(),
url({ url({ // TODO: remove when last dependency for BULMA is deleted
limit: 0, limit: 0,
include: [ include: [
"node_modules/bulma/**/*.css", "node_modules/bulma/**/*.css",
......
...@@ -3,7 +3,6 @@ import './vpu-data-table-view.js'; ...@@ -3,7 +3,6 @@ import './vpu-data-table-view.js';
import {i18n} from './i18n'; import {i18n} from './i18n';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import * as commonUtils from 'vpu-common/utils'; import * as commonUtils from 'vpu-common/utils';
import bulmaCSSPath from "bulma/css/bulma.min.css";
class DataTableViewDemo extends LitElement { class DataTableViewDemo extends LitElement {
constructor() { constructor() {
...@@ -105,15 +104,47 @@ class DataTableViewDemo extends LitElement { ...@@ -105,15 +104,47 @@ class DataTableViewDemo extends LitElement {
render() { render() {
commonUtils.initAssetBaseURL('vpu-data-table-view-src'); commonUtils.initAssetBaseURL('vpu-data-table-view-src');
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
return html` return html`
<link rel="stylesheet" href="${bulmaCSS}">
<style> <style>
.box { .box {
margin: 10px; margin: 10px;
padding: 10px; padding: 10px;
border: 1px solid orange; border: 1px solid orange;
} }
/* from BULMA.CSS */
.section {
padding: 3rem 1.5rem;
}
.content h1 {
font-size: 2em;
margin-bottom: .5em;
}
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
color: #363636;
font-weight: 600;
line-height: 1.125;
}
.content table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
.content table th:not([align]) {
text-align: left;
}
.content table thead th {
border-width: 0 0 2px;
color: #363636;
}
.content table th {
border: 1px solid #dbdbdb;
padding: .5em .75em;
vertical-align: top;
}
.content table td {
padding: .5em .75em;
vertical-align: top;
}
</style> </style>
<section class="section"> <section class="section">
......
...@@ -8,7 +8,6 @@ import de from '../assets/datatables/i18n/German'; ...@@ -8,7 +8,6 @@ import de from '../assets/datatables/i18n/German';
import en from '../assets/datatables/i18n/English'; import en from '../assets/datatables/i18n/English';
import * as commonUtils from 'vpu-common/utils'; import * as commonUtils from 'vpu-common/utils';
import bulmaCSSPath from "bulma/css/bulma.min.css";
dt(window, $); dt(window, $);
resp(window, $); resp(window, $);
...@@ -111,12 +110,10 @@ class DataTableView extends LitElement { ...@@ -111,12 +110,10 @@ class DataTableView extends LitElement {
render() { render() {
commonUtils.initAssetBaseURL('vpu-data-table-view-src'); commonUtils.initAssetBaseURL('vpu-data-table-view-src');
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
let dt_css = commonUtils.getAssetURL('local/vpu-data-table-view/css/jquery.dataTables.min.css'); let dt_css = commonUtils.getAssetURL('local/vpu-data-table-view/css/jquery.dataTables.min.css');
let rs_css = commonUtils.getAssetURL('local/vpu-data-table-view/css/responsive.dataTables.css'); let rs_css = commonUtils.getAssetURL('local/vpu-data-table-view/css/responsive.dataTables.css');
return html` return html`
<link rel="stylesheet" href="${bulmaCSS}">
<link rel="stylesheet" href="${dt_css}"> <link rel="stylesheet" href="${dt_css}">
<link rel="stylesheet" href="${rs_css}"> <link rel="stylesheet" href="${rs_css}">
<style> <style>
......
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