Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
tippy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeyouell committed Nov 7, 2018
1 parent 1609137 commit 086607e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -14,6 +14,7 @@
"expose-loader": "^0.7.5",
"laravel-mix": "^2.1.11",
"laravel-mix-purgecss": "^2.0.0",
"tailwindcss": "^0.6.6"
"tailwindcss": "^0.6.6",
"tippy.js": "^3.1.1"
}
}
2 changes: 1 addition & 1 deletion src/assetbundles/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assetbundles/dist/styles.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/assetbundles/src/styles.scss
Expand Up @@ -4,6 +4,8 @@

@tailwind utilities;

@import '../../../node_modules/tippy.js/dist/tippy.css';

/* Overrides */

#main-container #main #header {
Expand Down
2 changes: 2 additions & 0 deletions src/assetbundles/src/vendor.js
@@ -1,3 +1,5 @@
import tippy from 'tippy.js';

// Display dropdown menu on button click
$('.qm-dropdown-button').on('click', function() {
$(this).parent().find('.qm-dropdown-menu').toggle();
Expand Down
2 changes: 1 addition & 1 deletion webpack.mix.js
Expand Up @@ -20,5 +20,5 @@ mix.js('src/assetbundles/src/vendor.js', 'src/assetbundles/dist/bundle.js')
],
extractor: TailwindExtractor,
extensions: ['html', 'twig', 'js', 'css', 'scss'],
whitelistPatterns: [],
whitelistPatterns: [/tippy-/],
});

0 comments on commit 086607e

Please sign in to comment.