127 Commits

Author SHA1 Message Date
Dominic Lord
c5d34fb0ab Added scoped module deletion
- Ability to search through a DOM element and destroy any modules within it
- Added an init() hook on AbstractModule. Used to execute any code that does not belong in a constructor (which is most of what we do)
2017-03-02 11:55:55 -05:00
Dominic Lord
9e8fbed232 Removing any vars + Improved module ident split 2017-03-02 09:52:12 -05:00
Dominic Lord
5eec3941c3 Added a simply debounce util to avoid using throttle plugins 2017-03-02 09:46:51 -05:00
Dominic Lord
3483e1530b Barba as a service 2017-03-02 09:43:20 -05:00
Dominic Lord
c9c3950f8b Reorganization of globals
- Simplified globals usage in App
- Removed global App
2017-03-02 09:42:37 -05:00
Dominic Lord
e22b938741 Adding scoped module creation 2017-03-02 09:22:46 -05:00
Dominic Lord
cc547e484b Cleanup example modules (todo: add in documentation) 2017-03-02 08:57:46 -05:00
Dominic Lord
c9cedfa727 Cleanup example modules (todo: add in documentation) 2017-03-02 08:53:44 -05:00
Antoine Boulanger
3528615a48 Add context to config, removed from core 2017-02-08 12:08:34 -05:00
Antoine Boulanger
55fe0f372a Consistency in comments, names and structure; simplify some stuff, remove and add things, tweak stuff for how we work with design
Still some work has to be done while testing like for layouts.
2017-02-08 11:43:28 -05:00
Chauncey McAskill
2ac2d523cc Refactored Sass
Merged SCSS from various recent projects and implemented some of the latest features from InuitCSS.

When using the SCSS structure in your own project, modify the ‘settings/config*.scss’ files and leave ‘settings/core.scss’ intact.

Changes:
- Updated Normalize to 5.0.0;
- Migrated imports to ‘main.scss’;
- Split ‘settings.scss’ into smaller parts;
- Revised variable names for settings;
- Added spacing unit variables;
- Replaced ‘objects/grid.scss’ with ‘objects/layout.scss’ (from inuitcss);
- Added ‘objects/crop.scss’ and ‘objects/ratio.scss’ (from inuitcss);
- Added @font-face mixin/function from Bourbon;
- Added various new functions and mixins (widths, font-size, truncation,…);
- Renamed Trumps to Utilities;
- Added vatious new Utilities (print, states, spacing, widths);
- Reorganized Utilities into topics;
2016-12-19 13:43:35 -05:00
Chauncey McAskill
0facd79d7e Revised JS
Changes:
- Added constants for APP_NAME, DATA_API_KEY;
- Added constants for Event and Selector to the Button and Title modules;
- Cleaned up syntax for JS modules;
2016-12-18 15:45:52 -05:00
Chauncey McAskill
6f23c38765 Improved module ident split 2016-12-16 20:48:40 -05:00
Chauncey McAskill
553f76f2ca Cast node data to natural types 2016-12-16 16:12:06 -05:00
Joel Alphonso
1dff1b9451 _ratio.scss tool added to restrain a container to an unitary or fractional proportion 2016-10-27 16:26:17 -04:00
Chauncey McAskill
79219e0659 Updated EditorConfig Recommendations
Applied 4-spaces for everything as per: https://locomotivemtl.teamwork.com/tasks/7113032
2016-09-07 18:30:36 -04:00
Chauncey McAskill
a0f74506d2 Added 'grunt-svg-sprite' plugin
The plugin replaces 'svgmin' and 'svgstore' with an all-in-one and highly flexible solution for managing SVG assets.

Changes:
- Deleted 'assets/images/sprite/', SVG images can live anywhere within the source image directory;
- When compiled to 'www/assets/images/sprite.svg', the plugin generates an HTML file in 'assets/images/sprite.symbol.html' that serves as an index of the spritesheet's contents;
- A separator ("--") is used when traversing a directory structure for the symbol ID (e.g, 'sprite.svg#icons--social--twitter');
2016-08-22 09:33:07 -04:00
dominiclord
bf0c7e148c Adding commonly used scrollTo + cleaning up utils + cleaning up globals 2016-07-19 10:21:09 -04:00
Antoine Boulanger
6878ba4f96 Fix IE JS bug if el attribute is null 2016-07-14 14:23:46 -04:00
Antoine Boulanger
9138e1ee52 Move svg4everybody to NPM 2016-06-30 16:38:27 -04:00
dominiclord
bb757a22f6 Reworking page visibility API + Adding more utils 2016-05-19 13:37:19 -04:00
dominiclord
b2abd51191 Testing addition of pseudo page visibility API 2016-05-18 23:58:08 -04:00
dominiclord
f07a6aba23 Restructuring of scripts for better use of ES6 concepts
- Optimized use of common properties (, , ...)
- Dispatching events in an attempt to de-globalize certain variables used in the past
- Attempt to organize files in a more logical manner
2016-05-18 23:12:36 -04:00
dominiclord
09016521ed Code style cleanup + Testing event dispatching between modules 2016-04-04 21:31:15 -04:00
Antoine Boulanger
061380abf9 Update normalize + jquery 2016-03-22 15:31:37 -04:00
Antoine Boulanger
93c66c196d ; 2016-03-16 12:11:27 -04:00
Antoine Boulanger
9ccc53de8a Move src assets files out of dist folder, clean up grunt and related files, separate functions and mixins scss... 2016-03-11 11:02:59 -05:00