use local bulma

This commit is contained in:
Stefan Schwarz 2020-08-22 10:52:54 +02:00
parent d6580d01cf
commit 3b00481425
6 changed files with 1657 additions and 14 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
/target /target
.log .log
/static/css
/static/node_modules

1
static/css/style.css Normal file

File diff suppressed because one or more lines are too long

1604
static/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

18
static/package.json Normal file
View file

@ -0,0 +1,18 @@
{
"name": "static",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"css-build": "node-sass --omit-source-map-url --output-style compressed sass/style.scss css/style.css",
"css-watch": "npm run css-build -- --watch",
"start": "npm run css-watch"
},
"author": "",
"license": "ISC",
"devDependencies": {
"bulma": "^0.9.0",
"node-sass": "^4.14.1"
}
}

31
static/sass/style.scss Normal file
View file

@ -0,0 +1,31 @@
@charset "utf-8";
@import "../node_modules/bulma/sass/utilities/_all.sass";
@import "../node_modules/bulma/sass/base/_all.sass";
@import "../node_modules/bulma/sass/helpers/_all.sass";
@import "../node_modules/bulma/sass/elements/box.sass";
@import "../node_modules/bulma/sass/elements/button.sass";
@import "../node_modules/bulma/sass/elements/container.sass";
@import "../node_modules/bulma/sass/elements/content.sass";
@import "../node_modules/bulma/sass/elements/notification.sass";
@import "../node_modules/bulma/sass/elements/table.sass";
@import "../node_modules/bulma/sass/elements/icon.sass";
@import "../node_modules/bulma/sass/elements/title.sass";
@import "../node_modules/bulma/sass/form/_all.sass";
@import "../node_modules/bulma/sass/components/card.sass";
@import "../node_modules/bulma/sass/layout/hero.sass";
@import "../node_modules/bulma/sass/layout/section.sass";
@media screen and (max-width: 768px) {
.table.has-mobile-cards thead { display: none }
.table.has-mobile-cards tfoot th { border: 0; display: inherit }
.table.has-mobile-cards tr { box-shadow: 0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1); max-width: 100%; position: relative; display: block }
.table.has-mobile-cards tr td { border: 0; display: inherit }
.table.has-mobile-cards tr td:last-child { border-bottom: 0 }
.table.has-mobile-cards tr:not(:last-child) { margin-bottom: 1rem }
.table.has-mobile-cards tr:not([class*=is-]) { background: inherit }
.table.has-mobile-cards tr:not([class*=is-]):hover { background-color: inherit }
.table.has-mobile-cards tr.detail { margin-top: -1rem }
.table.has-mobile-cards tr:not(.detail):not(.is-empty):not(.table-footer) td { display: -ms-flexbox; display: flex; width: auto; -ms-flex-pack: end; justify-content: flex-end; text-align: right; border-bottom: 1px solid #f5f5f5 }
.table.has-mobile-cards tr:not(.detail):not(.is-empty):not(.table-footer) td:before { content: attr(data-label); font-weight: 600; margin-right: auto; padding-right: .5em; text-align: left }
}

View file

@ -4,7 +4,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.0/css/bulma.min.css"> <link rel="stylesheet" href="/static/css/style.css">
<title>macnickenson</title> <title>macnickenson</title>
</head> </head>
@ -150,19 +150,6 @@
}, 5000) }, 5000)
</script> </script>
<style> <style>
@media screen and (max-width: 768px) {
.table.has-mobile-cards thead { display: none }
.table.has-mobile-cards tfoot th { border: 0; display: inherit }
.table.has-mobile-cards tr { box-shadow: 0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1); max-width: 100%; position: relative; display: block }
.table.has-mobile-cards tr td { border: 0; display: inherit }
.table.has-mobile-cards tr td:last-child { border-bottom: 0 }
.table.has-mobile-cards tr:not(:last-child) { margin-bottom: 1rem }
.table.has-mobile-cards tr:not([class*=is-]) { background: inherit }
.table.has-mobile-cards tr:not([class*=is-]):hover { background-color: inherit }
.table.has-mobile-cards tr.detail { margin-top: -1rem }
.table.has-mobile-cards tr:not(.detail):not(.is-empty):not(.table-footer) td { display: -ms-flexbox; display: flex; width: auto; -ms-flex-pack: end; justify-content: flex-end; text-align: right; border-bottom: 1px solid #f5f5f5 }
.table.has-mobile-cards tr:not(.detail):not(.is-empty):not(.table-footer) td:before { content: attr(data-label); font-weight: 600; margin-right: auto; padding-right: .5em; text-align: left }
}
</style> </style>
</html> </html>