trowel-covers

The official Trowel Component for covers


Keywords
scss, css, twig, html, javascript, js, trowel, trowel-covers, cover, bower, npm, trowel-component, twig-embed, twig-include
License
MIT
Install
bower install trowel-covers

Documentation

Friends of Trowel

Trowel Covers

npm version Bower version

The official Trowel Component for covers Covers is a Trowel Component, please refer to the Trowel doc for more informations about how works Trowel Components

Getting Started

Download

You can easily install Trowel Covers by using npm, Yarn or Bower

# With bower
$ bower install trowel-covers

# With npm
$ npm install trowel-covers

# With yarn
$ yarn add trowel-covers

You can also download a zip archive right here.

Installation

Scss

The main scss file to include to your main .scss file is located at the ./src/scss/covers.scss. As a Trowel Component, it also requires two dependencies to compile the scss code. Here an scss installation snippet.

// Trowel Dependencies
@import './path/to/dependencies/trowel-core/src/trowel';

// Trowel Components Covers
@import './path/to/dependencies/trowel-covers/src/scss/covers.scss';

CSS

If you don't want to customize the trowel component in scss you can use the css file available at ./dest/css/covers.css. A minified version is available at the same location.

JavaScript

You have several javascript files for different use cases :

  • The browser ready file is available at ./dest/javascript/covers.js (a minified version exists at dest/javascript/covers.min.js)
  • The script written in es2015 and ready to import is available at ./src/javascript/covers.js

Twig template

The twig template is located at the ./src/twig/cover.html.twig.

Usage

to be written

Contributing

If you want to contribute you can checkout the contribution guide over here

License

MIT © Trowel