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

739 Commits

Author SHA1 Message Date
Deven Caron
84ce496df7 Tweak images size to match block ratio 2022-10-06 14:00:26 -04:00
Deven Caron
05e631dbca Fixed locomotive-scroll rendering glitch 2022-10-06 13:59:42 -04:00
Chauncey McAskill
f8f0a7779c Implement simple asset versioning task
A task to allow one to define zero or more JSON files and keys to create or update with the current timestamp.

By default, the boilerplate will maintain a './assets.json' file which should be imported by the Web framework and applied to compiled assets.
2022-10-06 11:32:04 -04:00
Arnaud Pinot
8e320f2cd0 Merge pull request #120 from locomotivemtl/feature/es6-updates 2022-10-05 16:56:16 -04:00
Arnaud Pinot
a8314d064f Update assets/scripts/utils/maths.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2022-10-05 16:54:36 -04:00
arnvvd
76614e8126 Merge branch 'master' into feature/es6-updates 2022-10-05 16:43:57 -04:00
arnvvd
bed84ce392 Merge branch 'feature/es6-updates' of github.com:locomotivemtl/locomotive-boilerplate into feature/es6-updates 2022-10-05 16:39:30 -04:00
arnvvd
feb2241164 Add documentation for esbuild process.env 2022-10-05 16:39:25 -04:00
arnvvd
b1f5a00b8c Delete transform utils function 2022-10-05 16:38:55 -04:00
Arnaud Pinot
2b30d9ac5c Update assets/scripts/utils/is.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2022-10-05 16:36:20 -04:00
Arnaud Pinot
9e5704238e Update assets/scripts/utils/tickers.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2022-10-05 16:35:23 -04:00
Arnaud Pinot
1ede84e1b1 Update assets/scripts/utils/tickers.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2022-10-05 16:34:49 -04:00
Arnaud Pinot
3a83a3209b Merge pull request #129 from locomotivemtl/feature/eager-fonts
Add support for the CSS Font Loading API
2022-10-05 14:42:00 -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
arnvvd
6712d2d24d Remove unused constant 2022-10-05 14:27:36 -04:00
Chauncey McAskill
139a6739f6 Update NPM dependencies
Updated:
- autoprefixer v10.4.4 → v10.4.12
- browser-sync v2.27.9 → v2.27.10
- esbuild v0.14.27 → v0.14.54
- kleur v4.1.4 → v4.1.5
- postcss v8.4.12 → v8.4.17
- purgecss v4.1.3 → v4.1.3
2022-10-05 12:54:05 -04:00
Chauncey McAskill
3272521dba Add constant to collect all eager fonts 2022-10-04 16:56:31 -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
bf425521c4 Fix "z()" sass function typo 2022-08-25 14:45:24 -04:00
Chauncey McAskill
4bdaa5d085 Fix typo in styles.js
Resolves #125
2022-08-12 14:03:55 -04:00
Deven Caron
a385f6ed11 Merge pull request #108 from locomotivemtl/feature/grid-css
Add grid CSS layout system
2022-06-07 13:13:31 -04:00
Deven Caron
4079752fe0 Add ul,ol condition grid reset styles 2022-06-07 10:46:44 -04:00
Deven Caron
14d7e09b2b Compile assets 2022-06-06 16:43:51 -04:00
Deven Caron
e70bf33409 Update variable names to kebab-case 2022-06-06 16:43:13 -04:00
Deven Caron
8b0926269a Apply suggestions from code review
Co-authored-by: Chauncey McAskill <chauncey@mcaskill.ca>
2022-06-06 16:30:59 -04:00
Deven Caron
8d1b548ad0 Update PurgeCSS import order 2022-06-06 16:28:07 -04:00
Deven Caron
7ca7486913 Fix $container-width conflict 2022-06-06 14:42:25 -04:00
Jérémy Minié
520b75185f Remove unused $container-width SCSS variable 2022-06-06 13:26:47 -04:00
Jérémy Minié
a056a87855 Fix grid.md code sample closure + Link grid doc in README 2022-06-06 13:26:07 -04:00
Deven Caron
9b99a1958b Manually apply some #108 suggestions 2022-06-06 13:26:07 -04:00
Deven Caron
d6193a41fa Apply suggestions from code review
Co-authored-by: Chauncey McAskill <chauncey@mcaskill.ca>
2022-06-06 13:26:07 -04:00
Deven Caron
4fafcb8e1d Update docs/grid.md
Co-authored-by: Chauncey McAskill <chauncey@mcaskill.ca>
2022-06-06 13:26:07 -04:00
Deven Caron
aadc410e44 Change PurgeCSS task message label
Co-authored-by: Chauncey McAskill <chauncey@mcaskill.ca>
2022-06-06 13:26:07 -04:00
Deven Caron
0439b165cf Apply suggestions from code review
Co-authored-by: Chauncey McAskill <chauncey@mcaskill.ca>
2022-06-06 13:26:07 -04:00
Deven Caron
f98eebc9e1 Add global readme grid reference 2022-06-06 13:26:07 -04:00
Deven Caron
cb80a2ed13 Add missing grid readme instructions 2022-06-06 13:26:07 -04:00
Deven Caron
07c3155c29 Compile styles 2022-06-06 13:15:56 -04:00
Deven Caron
c264cb7905 [WIP] Start grid doc 2022-06-06 13:07:57 -04:00
Deven Caron
1050b83326 Add template links 2022-06-06 13:07:57 -04:00
Deven Caron
d0a075ff24 Add css grid system base styles 2022-06-06 13:07:12 -04:00
Deven Caron
ad4a1c7d47 Add PurgeCSS u-gc* tasks 2022-06-06 13:03:06 -04:00
Chauncey McAskill
de6b3d73a1 Merge pull request #124 from GregoireCiles-fix/scss-build-font-faces
* GregoireCiles-fix/scss-build-font-faces:
  Support for building a single font family
  Fix alignment and mixin in _fonts.scss
2022-06-06 11:37:45 -04:00
Grégoire Ciles
e8af22009c Support for building a single font family
Co-authored-by: Chauncey McAskill <chauncey@mcaskill.ca>
2022-06-06 11:36:37 -04:00
Grégoire Ciles
de1a5904a8 Fix alignment and mixin in _fonts.scss 2022-06-06 11:36:31 -04:00
Lucas Vallenet
f527488464 Delete queryClosestParent function 2022-06-02 17:23:06 +02:00
Lucas Vallenet
cf3f40c956 Update functions comments 2022-06-02 16:45:31 +02:00
Lucas Vallenet
ebb55769f9 Remove isEqual and isNumeric functions 2022-06-02 11:09:32 +02:00
Lucas Vallenet
c8d4e7c154 Build scripts and styles with latest updates 2022-06-01 16:26:47 +02:00
Lucas
bce37afb6e Merge pull request #121 from locomotivemtl/feature/scss-font-fallbacks
Add font fallbacks
2022-06-01 16:21:16 +02:00
Lucas
7a23abff92 Merge branch 'master' into feature/scss-font-fallbacks 2022-06-01 16:21:09 +02:00