1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

149 Commits

Author SHA1 Message Date
Deven Caron
4676d277f5 added scroll extends + LocomotiveScroll module + scroll basic style 2018-10-17 10:53:08 -04:00
Julien Martins Da Costa
2116efb8c2 Remove jshint esnext: http://jshint.com/docs/options/#esnext and use esversion: 6 2018-05-01 09:50:13 -04:00
Quentin Hocdé
33d4c9637d compile prev commit 2018-02-26 14:21:50 -05:00
Quentin Hocdé
42d8fec62d init modules then add css class + exec script inline 2018-02-20 11:20:09 -05:00
Quentin Hocdé
93c50ddc9c remove useless things, update todo 2018-02-06 14:25:30 -05:00
Quentin Hocdé
f00fc2fcd2 Update : manage clickedLink via pjax:send, logs if isDebug, manage events, add schema to explain the order of executions, refactoring after tests in a real project 2018-02-05 15:17:39 -05:00
Quentin Hocdé
27c09301db update todo, and fix innerHTML view delay 2018-02-02 09:34:24 -05:00
Quentin Hocdé
bd33e8cb02 data-transition on link, and BaseTransition as interface 2018-02-01 16:14:35 -05:00
Quentin Hocdé
8b77d8ae40 update todo 2018-02-01 10:07:52 -05:00
Quentin Hocdé
75817d77f4 (WIP) : rewrite TransitionManager, init pjax, manage no-transition class, manage wrapper&container like barba, defaultTransition (interface?), add @todo. 2018-02-01 09:58:18 -05:00
Quentin Hocdé
60bb9cf347 add familly.scss 2017-12-07 11:16:46 -05:00
Julien Martins Da Costa
b9721dda89 Remove the border-radius in Chrome 62+ on macOS 2017-10-31 10:02:59 -04:00
Quentin Hocdé
e0399fa26e compilation 2017-10-16 11:11:52 -04:00
Quentin Hocdé
30063039a3 delete modules before removing the old container 2017-10-11 10:49:40 -04:00
Julien Martins Da Costa
e25a19f53f Fix mixins: font-size, u-accessibly-hidden, u-hidden and u-shown 2017-06-09 10:55:20 -04:00
Antoine Boulanger
000d2f2f13 Update jQuery 2017-06-08 16:47:41 -04:00
Antoine Boulanger
f6595c3172 JS events consts and namespaces 2017-05-30 12:16:13 -04:00
Quentin Hocdé
50dd8042dd Layout, fix $gutter left padding 2017-05-17 11:04:04 -04:00
Julien Martins Da Costa
0baf4ae436 Fix arguments for barba linkClicked event 2017-05-01 15:36:43 -04:00
Chauncey McAskill
06ad6b0cb3 Simplified [data-module] split 2017-05-01 14:52:44 -04:00
Dominic Lord
8b9ee3d0ec Cleanup uid once module destroyed + destroy parent class + added example 2017-04-06 14:04:29 -04:00
Julien Martins Da Costa
af01ff20ee Fix undefined variable in and 2017-03-22 16:14:35 -04:00
Dominic Lord
39f703501e Merge branch 'master' into mcaskill-scss 2017-03-02 12:28:01 -05:00
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
992c851303 Compiled scripts 2017-03-02 09:55:07 -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
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
dominiclord
7190a7dccb Adding Babel transform for <= IE10 ES6 support 2016-07-14 14:41:30 -04:00
Antoine Boulanger
b87637a5c6 Update jQuery to 3.0.0 2016-06-30 16:38:27 -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
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
beneroch
813ca8378e Moved curly braces 2016-03-11 09:47:43 -05:00
beneroch
f118cda66e Antoine était pressé 2016-03-09 13:22:19 -05:00
Antoine Boulanger
fa5d7e2754 Seperate app in functions, init after var, modules extends module, add default destroy function 2016-02-29 11:31:31 -05:00
Antoine Boulanger
8ce1de6d0a Remove templates js, remove modules prefix, add globals module, rename svg sprite, update jquery, add svg4everybody, fix grunt tasks 2016-02-16 14:34:11 -05:00
dominiclord
3506a95ee9 Reworked modules a bit:
- Element containing the module becomes a default parameter
- Different modules can share the same containing element ()
2016-01-28 14:42:59 -05:00
Quentin Hocdé
041157db10 Merge branch 'master' of https://github.com/locomotivemtl/locomotive-boilerplate into es5-to-es6
# Conflicts:
#	Gruntfile.js
#	grunt_tasks/browserSync.js
#	grunt_tasks/jshint.js
#	grunt_tasks/phplint.js
#	grunt_tasks/postcss.js
#	grunt_tasks/svgstore.js
#	grunt_tasks/watch.js
#	www/assets/scripts/dist/app.js
#	www/assets/scripts/src/app.js
#	www/assets/scripts/src/app/globals.js
#	www/assets/scripts/src/templates/Generic.js
#	www/assets/scripts/src/templates/generic.js
#	www/assets/scripts/src/widgets/generic.js
#	www/modules/boilerplate/assets/scripts/src/templates/generic.js
2016-01-26 14:35:00 -05:00
Quentin Hocdé
e5d1f0791b ES6 without charcoal BIG UPDATE 2016-01-26 13:36:46 -05:00
dominiclord
b012a7a991 Charcoal Boilerplate -> Locomotive front-end boilerplate
- Removing Charcoal files and configuration to be backend agnostic (therefore moving the assets)
- Using HTML5 Boilerplate .htaccess to which framework specific rules can be added later on
- Updating README with more information and documentation on the boilerplate
2015-12-07 10:35:27 -05:00