This is a small package built from Bulma Start, and modified for Drives
npm install
then
npm run build-all
Note: After NPM install, it is necessary to edit framework code: (this has now been fixed in a newer version of the css framework, but I don't want to change versions and introduce any regression)
node_modules/bulma/sass/components/navbar.sass
On line 236:
+desktop .navbar, .navbar-menu, .navbar-start, .navbar-end
change +desktop to +tablet
On line 200, right before .navbar > .container display: block
change +touch to +mobile
For the search results ajax call, you need to point instance to correct endpoint. Right now it points to stub json file:
js/main.js --> var loadMore = new LoadMore("#loadMore", "stub/load-results.json");
That should be it.
The npm
dependencies included in package.json
are:
bulma
node-sass
to compile your own Sass filepostcss-cli
andautoprefixer
to add support for older browsersbabel-cli
,babel-preset-env
andbabel-preset-es2015-ie
for compiling ES6 JavaScript fileshtml-includes
for splitting html files into templates
Apart from package.json
, the following files are included:
.babelrc
configuration file for Babel.gitignore
common Git ignored filesindex.html
this HTML5 file_sass/main.scss
a basic SCSS file that imports Bulma and explains how to customize your styles, and compiles tocss/main.css
_javascript/main.js
an ES6 JavaScript that compiles tolib/main.js
Code copyright 2017 Jeremy Thomas. Code released under the MIT license.