From 00221d01a669e940ce1939caecb87febcf9c3e9c Mon Sep 17 00:00:00 2001 From: Marios Papachristou Date: Mon, 19 Feb 2018 18:57:09 +0200 Subject: [PATCH] tooltip fixed for centering --- public/css/app.css | 5 +- public/js/app.js | 2508 +------------------------------- resources/assets/js/app.js | 6 +- resources/assets/sass/app.scss | 15 +- 4 files changed, 88 insertions(+), 2446 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 00b73e1..96a6841 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -12816,7 +12816,7 @@ a:hover { font-size: 1rem; position: absolute; bottom: 0%; - left: 0%; + left: 50%; background: #222222; padding: 5px 15px; color: white; @@ -12828,6 +12828,7 @@ a:hover { white-space: pre-wrap; text-align: justify; width: 70vw !important; + margin-left: -35vw; } [data-tooltip]:before { @@ -12843,6 +12844,7 @@ a:hover { opacity: 0; left: 50%; bottom: 90%; + margin-left: -10px; } [data-tooltip]:hover:after { @@ -14058,6 +14060,7 @@ article.contact .g-recaptcha.error > div { @media (min-width: 576px) { [data-tooltip]:after { width: 33vw !important; + margin-left: -16.5vw !important; } nav.navbar { diff --git a/public/js/app.js b/public/js/app.js index 253fa3c..e78a6c7 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -71,7 +71,7 @@ var bind = __webpack_require__(4); -var isBuffer = __webpack_require__(20); +var isBuffer = __webpack_require__(19); /*global toString:true*/ @@ -2827,7 +2827,7 @@ Popper.Defaults = Defaults; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__(0); -var normalizeHeaderName = __webpack_require__(23); +var normalizeHeaderName = __webpack_require__(22); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' @@ -2917,7 +2917,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { module.exports = defaults; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(21))) /***/ }), /* 3 */ @@ -2972,12 +2972,12 @@ module.exports = function bind(fn, thisArg) { var utils = __webpack_require__(0); -var settle = __webpack_require__(24); -var buildURL = __webpack_require__(26); -var parseHeaders = __webpack_require__(27); -var isURLSameOrigin = __webpack_require__(28); +var settle = __webpack_require__(23); +var buildURL = __webpack_require__(25); +var parseHeaders = __webpack_require__(26); +var isURLSameOrigin = __webpack_require__(27); var createError = __webpack_require__(6); -var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(29); +var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(28); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { @@ -3074,7 +3074,7 @@ module.exports = function xhrAdapter(config) { // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { - var cookies = __webpack_require__(30); + var cookies = __webpack_require__(29); // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? @@ -3158,7 +3158,7 @@ module.exports = function xhrAdapter(config) { "use strict"; -var enhanceError = __webpack_require__(25); +var enhanceError = __webpack_require__(24); /** * Create an Error with the specified message, config, error code, request and response. @@ -3219,7 +3219,7 @@ module.exports = Cancel; /***/ (function(module, exports, __webpack_require__) { __webpack_require__(10); -module.exports = __webpack_require__(48); +module.exports = __webpack_require__(47); /***/ }), @@ -3232,20 +3232,20 @@ module.exports = __webpack_require__(48); * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ -var tether = __webpack_require__(11); -var popper = __webpack_require__(1); -var tooltip = __webpack_require__(12); +// const tether = require('tether'); +// const popper = require('popper.js'); +// const tooltip = require('tooltip.js'); -__webpack_require__(13); +__webpack_require__(12); -var WOW = __webpack_require__(38); +var WOW = __webpack_require__(37); window.WOW = new WOW.WOW({ live: false }); window.WOW.init(); /* INSTAFEED */ -var Instafeed = __webpack_require__(39); +var Instafeed = __webpack_require__(38); var feed = new Instafeed({ @@ -3276,6 +3276,7 @@ const app = new Vue({ }); */ +__webpack_require__(39); __webpack_require__(40); __webpack_require__(41); __webpack_require__(42); @@ -3283,2387 +3284,14 @@ __webpack_require__(43); __webpack_require__(44); __webpack_require__(45); __webpack_require__(46); -__webpack_require__(47); - -/***/ }), -/* 11 */ -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! tether 1.4.3 */ - -(function(root, factory) { - if (true) { - !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : - __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if (typeof exports === 'object') { - module.exports = factory(require, exports, module); - } else { - root.Tether = factory(); - } -}(this, function(require, exports, module) { - -'use strict'; - -var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } - -var TetherBase = undefined; -if (typeof TetherBase === 'undefined') { - TetherBase = { modules: [] }; -} - -var zeroElement = null; - -// Same as native getBoundingClientRect, except it takes into account parent offsets -// if the element lies within a nested document ( or