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

52 Commits

Author SHA1 Message Date
Chauncey McAskill
f8a46043a6 Remove babel-polyfill (#178)
All features are suported by modern browsers.

Can be restored if ever needed to support older browsers.
2024-07-04 13:12:18 -04:00
Chauncey McAskill
25823286d5 Remove polyfill.io
See: https://sansec.io/research/polyfill-supply-chain-attack
2024-06-25 18:19:00 -04:00
Lucas Vallenet
e16ba2ca16 Import locomotive scroll CSS / Removed unused styles (scroll, scorllbar) / Update DOM Markup / Update doc 2023-06-12 09:36:14 +02:00
arnvvd
9c478f5f7d grid helper refactoring + prepare JS dynamic import + add app-env function for Sass conditions 2022-10-31 14:25:20 -04:00
Lucas Vallenet
b7c49086c9 Add custom grid helper based on CSS custom properties 2022-10-31 14:20:59 -04:00
arnvvd
98957eb6c4 Merge branch 'master' of github.com:locomotivemtl/locomotive-boilerplate into feature/eager-fonts 2022-10-05 14:38:55 -04:00
Chauncey McAskill
e7f0455ce4 Testing CSS Font Loading API
The code in this commit is not intended for production environments;
it requires further testing.

Added:
- Multiple "Source Sans 3" fonts to test many `FontFace` entries.

Changed:
- Removed quotes from font family name to avoid them being included in `FontFace.family` value.

Notes:
- Replaces hidden `<span>` elements with `FaceFace.load()` and `FaceFace.loaded` to eagerly load fonts.
- Fonts are eagerly using custom `loadFonts()` (see 'app.js').
- Acting upon loaded fonts is done using `whenReady()` (see 'Example.js').
2022-09-27 11:11:31 -04:00
Deven Caron
1050b83326 Add template links 2022-06-06 13:07:57 -04:00
Chauncey McAskill
7e8a21f698 Update README and Boilerplate occurrences
Changed "Configuration" section to instruct developers on what occurrences to rename throughout the package.
2021-09-18 01:16:44 -04:00
Quentin Hocdé
7cc8cee0fd Updates coding styles Scroll.js and app.js 2021-03-05 09:22:43 -05:00
Quentin Hocdé
6ab44c64a9 add indication for svg favicon and darkmode 2020-12-03 16:25:05 -05:00
Deven Caron
59243317a7 Add more polyfills for cross-browser compatibility 2020-10-26 15:23:45 -04:00
Antoine Boulanger
e910afc384 Change async stylesheet method, check stylesheet onload before init app 2020-05-26 15:22:14 -04:00
Antoine Boulanger
cc181ed26c Fix polyfill link, update babel polyfill, add preload to css with inline polyfill, add defer to scripts, move lazy load demo to images.html 2019-10-17 09:08:11 -04:00
Jérémy Minié
61c9c0ac6f Add basic scroll-related lazy loading system w/ examples + Fix scrolling issues by putting header inside o-scroll + Use data-scroll-section 2019-09-25 16:25:14 -04:00
Antoine Boulanger
680d6af675 Add abortcontroller to polyfill.io and remove static file 2019-09-03 14:16:08 -04:00
Antoine Boulanger
3ed1175aaf Change loco-scroll version in package.json and add uppercase to import, add forEach to polyfill 2019-08-08 11:18:18 -04:00
Antoine Boulanger
1f589add29 Create heading, form and button component, remove objects, add form example to page.html, add rem to container, remove pjax scss, add scroll object. 2019-07-24 16:28:56 -04:00
Antoine Boulanger
41c3fe4b49 Remove jQuery and scrollTo util 2019-07-19 16:00:31 -04:00
Antoine Boulanger
d166261d0a Add loco scroll v2, update load module and app, update html, add nomodule polyfills script tags 2019-05-23 10:06:45 -04:00
Antoine Boulanger
88aa667090 Start adding modularjs & modularload, start updating readme, update html files, change jquery cdn, remove IE from babelrc 2019-03-24 17:15:47 -04:00
Antoine Boulanger
581f82b441 Change meta order 2019-02-11 11:42:09 -05:00
Antoine Boulanger
5281c12e96 Add missing favicons and manifests, update html metas 2019-02-11 11:40:43 -05:00
Deven Caron
d372d1867f smoothscroll false by default, scroll module renaming 2018-10-17 12:05:33 -04:00
Deven Caron
4676d277f5 added scroll extends + LocomotiveScroll module + scroll basic style 2018-10-17 10:53:08 -04:00
Deven Caron
580985fe27 Fix export event Transition 2018-05-10 11:12:05 -04:00
Quentin Hocdé
bd33e8cb02 data-transition on link, and BaseTransition as interface 2018-02-01 16:14:35 -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
Antoine Boulanger
000d2f2f13 Update jQuery 2017-06-08 16:47:41 -04:00
Dominic Lord
8b9ee3d0ec Cleanup uid once module destroyed + destroy parent class + added example 2017-04-06 14:04:29 -04:00
Dominic Lord
295d8f282b Merge pull request #56 from locomotivemtl/mcaskill-has-js
Mcaskill has js
2017-03-02 12:36:25 -05:00
Chauncey McAskill
8a93c9d178 Added ‘.has-no-js’ and ‘.has-js’ to <html>
Useful for CSS, e.g.:

```
.has-js .hide-if-js,
.has-no-js .hide-if-no-js {
    display: none;
}
```
2017-03-02 12:35:52 -05:00
Dominic Lord
3483e1530b Barba as a service 2017-03-02 09:43:20 -05:00
Dominic Lord
cc547e484b Cleanup example modules (todo: add in documentation) 2017-03-02 08:57:46 -05: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
Antoine Boulanger
b87637a5c6 Update jQuery to 3.0.0 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
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
dominiclord
5b700842af Updated jQuery CDN 2016-03-11 12:20:33 -05: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
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é
e5d1f0791b ES6 without charcoal BIG UPDATE 2016-01-26 13:36:46 -05:00
dominiclord
4c75102da5 Consolidation of widgets and modules into modules + cleaning up module classes 2015-12-08 13:24:02 -05:00
dominiclord
39d10692b3 Proceeding with ES6 modules (with the help of Browserify)
- Added necessary grunt tasks and npm packages
- Concept of Global functions to be revised
2015-12-08 12:35:32 -05:00
Antoine Boulanger
842efd2e00 Move grunt + other stuff to root + update all tasks paths, change autoprefixer-core for autoprefixer 2015-09-10 14:59:43 -04:00
Antoine Boulanger
503ce1cacb Change favicon links and images & change .html name 2015-04-21 10:16:47 -04:00
dlord
2feb0e772b Restructuring of scripts to mimic Charcoal's autoload concept 2015-04-09 16:45:55 -04:00