diff --git a/.eslintrc.js b/.eslintrc.js index 0803ccd..0e0245c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -38,7 +38,7 @@ module.exports = { 'optionalDependencies': ['test/unit/index.js'] }], // allow debugger during development - 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 + 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 'linebreak-style': 0, } } diff --git a/package.json b/package.json index cee60f1..dcbae08 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "bootstrap-vue": "^2.0.0-rc.19", "chosen-js": "^1.8.7", "jquery": "^3.4.0", + "offside-js": "^1.4.0", "popper.js": "^1.15.0", "vue": "^2.5.2", "vue-analytics": "^5.16.4", diff --git a/src/components/BeerList.vue b/src/components/BeerList.vue index 926ec3a..ce48d25 100644 --- a/src/components/BeerList.vue +++ b/src/components/BeerList.vue @@ -1,14 +1,27 @@ @@ -89,6 +103,9 @@ import $ from 'jquery'; import axios from 'axios'; +import 'offside-js/dist/offside.css'; +import offside from 'offside-js'; + import { getVenues, getBeers, getVenueBeers, searchBeers } from '@/services/venues'; import BeerItem from './BeerItem'; @@ -145,6 +162,11 @@ export default { } bubbles(); + offside('#my-menu', { + slidingElementsSelector: '#my-content-container', + buttonsSelector: '#my-button, .another-button', + }); + getVenues().then((response) => { this.venues.push(...response.data.results); }); @@ -356,7 +378,7 @@ strong, b { } .link-solo { - + } .container-fluid { @@ -954,7 +976,7 @@ body .particletext.bubbles > .particle { @keyframes bubbles { 0% { - opacity: 0; + opacity: 0; } 20% { opacity: 0.3; @@ -1000,7 +1022,7 @@ body .particletext.bubbles > .particle { } .search-icon.small { - font-size:3px; + font-size:3px; } /* ALL THE BORDERS */ @@ -1115,7 +1137,7 @@ body .particletext.bubbles > .particle { border-width:2px; border-left:0; height:2.75em; - transition: height .2s ease-out .2s, border-width 0s ease-out .2s, transform .2s ease-out; + transition: height .2s ease-out .2s, border-width 0s ease-out .2s, transform .2s ease-out; } .active .search-icon .mug-sides { @@ -1488,29 +1510,29 @@ This file is generated by `grunt build`, do not edit it by hand. } @media (min-width:880px) { - + .navbar-logo { padding-top:1.25rem; } - + .text-intro { padding-bottom:1.25rem; } - + .search-container { flex:0 0 50%; padding-right:.5rem; } - + .taphouse-select-container { flex:0 0 50%; padding-left:.5rem; } - + .taphouse-select-container:before { background-position: 90% 50%; } - + .beer-info { display:flex; flex-direction: column; @@ -1530,7 +1552,7 @@ This file is generated by `grunt build`, do not edit it by hand. .beer-brewer { padding-right: 2.5rem; - margin-bottom: .25rem; + margin-bottom: .25rem; } } - \ No newline at end of file + diff --git a/yarn.lock b/yarn.lock index 418643a..43e9d52 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4737,6 +4737,11 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" +offside-js@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/offside-js/-/offside-js-1.4.0.tgz#2d2d37b0b7e8ea625df183de42f34be63ff3c3b2" + integrity sha512-1Kap949+bPENx4Jxxw+ww4QqacoxDOhQZsM9PFQDLbl/JxeMKzpZ0FUJ830TstpTHFi4IDp0XDh3fxO6TeFvvw== + on-finished@~2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"