"stylus": "github:acidjazz/stylus#dev",
"stylus-loader": "^3.0.2",
"tailwindcss": "^1.0.4",
+ "tippy.js": "^4.3.5",
"vue": "^2.6.10",
"vue-slide-up-down": "^1.7.2",
"vue-slider-component": "^3.0.40",
"vue-template-compiler": "^2.6.10"
},
- "dependencies": {}
+ "dependencies": {
+
+ }
}
--- /dev/null
+import tippy from 'tippy.js'
+
+tippy('[data-tooltip]', {
+ arrow: true,
+ arrowType: 'sharp',
+ animation: 'shift-away',
+ content: function (el) {
+ return el.getAttribute('data-tooltip');
+ },
+ flipBehavior: ["top", "bottom"],
+ theme: 'custom',
+ placement: 'top',
+
+ popperOptions: {
+ modifiers: {
+ data: {styles: {marginBottom: '50px'}},
+ hide: {enabled: true}
+ }
+ },
+});
--- /dev/null
+.tippy-tooltip
+ max-width: 380px !important
+ text-align: left;
+
+.tippy-tooltip.custom-theme
+ background-color: #6B7287;
+ color: white;
+ padding: 1.1rem
+ font-size: .9em;
+ line-height 1.7em
+
+.tippy-tooltip.custom-theme[x-placement^='top'] .tippy-arrow
+ border-top-color: #6B7287;
+
+.tippy-tooltip.custom-theme[x-placement^='bottom'] .tippy-arrow
+ border-bottom-color: #6B7287;
+
+.tippy-popper
+ margin: 0 1rem
@extends('layouts/app')
+@push('scripts')
+ <script src="{{ mix('/js/product-details.js') }}"></script>
+@endpush
+
@section('content')
<content class="pt-1v">
</template>
</cart-add>
- <span
+ <span data-tooltip="{{__('Ajoutez un ou plusieurs produits à votre sélection, ajustez les quantités et obtenez un devis.')}}"
class="font-display text-lg inline-block align-middle rounded-full border-grey-dark border-2 h-8 w-8 text-center ml-6">?</span>
@endif
});
mix.js('resources/js/app.js', 'public/js')
- .js('resources/js/vendor/**/**/app.js','public/js/vendor.js')
- .js('resources/js/home.js','public/js')
+ .js('resources/js/vendor/**/**/app.js', 'public/js/vendor.js')
+ .js('resources/js/home.js', 'public/js')
+ .js('resources/js/product-details.js','public/js')
.stylus('resources/styles/app.styl', 'public/css', {
use: [
require('rupture')()