'DOMContentLoaded', () => {
let nav = document.getElementById("mobile-nav");
window.mmenu = new MmenuLight(nav, {title: "Menu"});
- window.menu_breakpoint = 1023; // Note: this should match the menu CSS breakpoint in setup.styl!
+ window.menu_breakpoint = 1479; // Note: this should match the menu CSS breakpoint in setup.styl!
mmenu.enable(`(max-width: ${menu_breakpoint}px)`);
mmenu.offcanvas();
// Breakpoints in Rupture (https://github.com/jescalan/rupture)
$breakpoint-columns = 768px // NOTE: this should align with the 'sm' screen value in tailwind.config.js
-$breakpoint-menu = 1024px // This needs to match the MMenu activation setting in menu.js
+$breakpoint-menu = 1480px // This needs to match the MMenu activation setting in menu.js
rupture.scale = 0 400px 768px 1024px
rupture.scale-names = 'small' 'medium' 'large'
rupture.anti-overlap = -1px // Results in +below(1000px) being max-width: 999px and +above(1000px) being min-width: 1000px
// }
});
-// mix.stylus('resources/styles/michsci.styl', 'public/css', {
-// use: [
-// require('rupture')()
-// ]
-// },
-// [ // postCssPlugins
-// tailwindcss('tailwind-michsci.config.js'),
-// require('lost'),
-// ]
-// );
+mix.stylus('resources/styles/michsci.styl', 'public/css', {
+ use: [
+ require('rupture')()
+ ]
+ },
+ [ // postCssPlugins
+ tailwindcss('tailwind-michsci.config.js'),
+ require('lost'),
+ ]
+);
//=== PurgeCSS to remove unused selectors
mix.purgeCss({