2lenet/crudit-bundle
Symfony bundle to rapidly build configurable CRUD back offices with SB Admin layout. Provides list views with pagination, sorting, actions, exports and batch ops, plus datasources, filters, menus, workflows, maps, markdown and Twig helpers.
To use Webpack Encore, just add the following lines in your template/base.html.twig
{% extends crudit.template('layout') %}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('app') }}
{% endblock %}
Then, in your assets/js/app.js, you have to add this line :
import '../styles/app.scss';
And in your assets/styles/app.scss, add this :
[@import](https://github.com/import) '../../vendor/2lenet/crudit-bundle/assets/sb-admin/css/app.scss';
All new SCSS files must be imported before the import of Crudit SCSS.
With that, you can now :
customize the colors or other Bootstrap variables (in your assets/styles/_variables.scss for example):
$primary: #C18B8B;
use responsive mixin present and used by CruditBundle:
[@include](https://github.com/include) media('>tablet') {
// Your responsive rules
}
This is the list of all responsive breakpoints used :
| Name | Value |
|---|---|
| mobile | 768px |
| tablet | 992px |
| laptop | 1200px |
How can I help you explore Laravel packages today?