Init
This commit is contained in:
BIN
themes/agico-hugo/assets/.DS_Store
vendored
Normal file
BIN
themes/agico-hugo/assets/.DS_Store
vendored
Normal file
Binary file not shown.
33
themes/agico-hugo/assets/js/bootstrap.js
vendored
Normal file
33
themes/agico-hugo/assets/js/bootstrap.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
// bootstrap js components
|
||||
// import Alert from "js/bootstrap/src/alert";
|
||||
// import Button from "js/bootstrap/src/button";
|
||||
// import Carousel from "js/bootstrap/src/carousel";
|
||||
import Collapse from "js/bootstrap/src/collapse";
|
||||
import Dropdown from "js/bootstrap/src/dropdown";
|
||||
import Modal from "js/bootstrap/src/modal";
|
||||
// import Offcanvas from "js/bootstrap/src/offcanvas";
|
||||
// import Popover from "js/bootstrap/src/popover";
|
||||
// import ScrollSpy from "js/bootstrap/src/scrollspy";
|
||||
import Tab from "js/bootstrap/src/tab";
|
||||
// import Toast from "js/bootstrap/src/toast";
|
||||
// import Tooltip from "js/bootstrap/src/tooltip";
|
||||
|
||||
// bootstrap popover and toats
|
||||
// (function () {
|
||||
// "use strict";
|
||||
// let toastElList = [].slice.call(document.querySelectorAll(".toast"));
|
||||
// let toastList = toastElList.map(function (toastEl) {
|
||||
// return new Toast(toastEl);
|
||||
// });
|
||||
|
||||
// toastList.forEach(function (toast) {
|
||||
// toast.show();
|
||||
// });
|
||||
|
||||
// let popoverTriggerList = [].slice.call(
|
||||
// document.querySelectorAll('[data-bs-toggle="popover"]')
|
||||
// );
|
||||
// popoverTriggerList.map(function (popoverTriggerEl) {
|
||||
// return new Popover(popoverTriggerEl);
|
||||
// });
|
||||
// })();
|
||||
241
themes/agico-hugo/assets/js/script.js
Executable file
241
themes/agico-hugo/assets/js/script.js
Executable file
@@ -0,0 +1,241 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
// Element Existence Checker Function
|
||||
function isElementExist(element) {
|
||||
if (element) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Aos js
|
||||
AOS.init({
|
||||
once: true,
|
||||
offset: 50,
|
||||
easing: 'ease',
|
||||
duration: 600
|
||||
});
|
||||
|
||||
// ##################
|
||||
// Video Modal
|
||||
// ##################
|
||||
let videoPlayBtn = document.querySelectorAll(".play-icon");
|
||||
let videoModal = document.querySelector("#videoModal");
|
||||
|
||||
if (isElementExist(videoPlayBtn)) {
|
||||
videoPlayBtn.forEach((btn) => {
|
||||
btn.addEventListener("click", function () {
|
||||
let videoIframe = document.querySelector("#videoModal iframe");
|
||||
let videoLink = btn.getAttribute("video-url");
|
||||
videoIframe.setAttribute("src", videoLink);
|
||||
});
|
||||
});
|
||||
|
||||
if (isElementExist(videoModal)) {
|
||||
videoModal.addEventListener("hidden.bs.modal", function () {
|
||||
let videoIframe = document.querySelector("#videoModal iframe");
|
||||
videoIframe.setAttribute("src", "");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// ##################
|
||||
// counterUp
|
||||
// ##################
|
||||
// You can change this class to specify which elements are going to behave as counters.
|
||||
var elements = document.querySelectorAll(".counter");
|
||||
|
||||
elements.forEach(function (item) {
|
||||
// Add new attributes to the elements with the '.counter' HTML class
|
||||
item.counterAlreadyFired = false;
|
||||
item.counterSpeed = item.getAttribute("data-counter-time") / 45;
|
||||
item.counterTarget = +item.innerText;
|
||||
item.counterCount = 0;
|
||||
item.counterStep = item.counterTarget / item.counterSpeed;
|
||||
|
||||
item.updateCounter = function () {
|
||||
item.counterCount = item.counterCount + item.counterStep;
|
||||
item.innerText = Math.ceil(item.counterCount);
|
||||
|
||||
if (item.counterCount < item.counterTarget) {
|
||||
setTimeout(item.updateCounter, item.counterSpeed);
|
||||
} else {
|
||||
item.innerText = item.counterTarget;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
// Function to determine if an element is visible in the web page
|
||||
var isElementVisible = function isElementVisible(el) {
|
||||
var scroll = window.scrollY || window.pageYOffset;
|
||||
var boundsTop = el.getBoundingClientRect().top + scroll;
|
||||
var viewport = {
|
||||
top: scroll,
|
||||
bottom: scroll + window.innerHeight,
|
||||
};
|
||||
var bounds = {
|
||||
top: boundsTop,
|
||||
bottom: boundsTop + el.clientHeight,
|
||||
};
|
||||
return (
|
||||
(bounds.bottom >= viewport.top && bounds.bottom <= viewport.bottom) ||
|
||||
(bounds.top <= viewport.bottom && bounds.top >= viewport.top)
|
||||
);
|
||||
};
|
||||
|
||||
// Funciton that will get fired uppon scrolling
|
||||
var handleScroll = function handleScroll() {
|
||||
elements.forEach(function (item, id) {
|
||||
if (true === item.counterAlreadyFired) return;
|
||||
if (!isElementVisible(item)) return;
|
||||
item.updateCounter();
|
||||
item.counterAlreadyFired = true;
|
||||
});
|
||||
};
|
||||
|
||||
// Fire the function on scroll
|
||||
window.addEventListener("scroll", handleScroll);
|
||||
})
|
||||
|
||||
// ##################
|
||||
// navfixed
|
||||
// ##################
|
||||
let scrolling = window.scrollY;
|
||||
let naviagtion = document.querySelector(".naviagtion");
|
||||
|
||||
function navFixed() {
|
||||
scrolling = window.scrollY;
|
||||
|
||||
if (scrolling > 10) {
|
||||
naviagtion.classList.add('nav-bg');
|
||||
} else {
|
||||
naviagtion.classList.remove('nav-bg');
|
||||
}
|
||||
};
|
||||
|
||||
navFixed();
|
||||
window.addEventListener("scroll", (e) => {
|
||||
navFixed();
|
||||
})
|
||||
|
||||
// ##################
|
||||
// testimonial
|
||||
// ##################
|
||||
new Swiper(".testimonial-slider", {
|
||||
slidesPerView: 3,
|
||||
loop: true,
|
||||
spaceBetween: 50,
|
||||
grabCursor: true,
|
||||
enteredSlides: true,
|
||||
speed: 900,
|
||||
autoplay: true,
|
||||
breakpoints: {
|
||||
// when window width is >= 0 px
|
||||
0: {
|
||||
slidesPerView: 1,
|
||||
spaceBetween: 40
|
||||
},
|
||||
// when window width is >= 768 px
|
||||
768: {
|
||||
slidesPerView: 2,
|
||||
spaceBetween: 50
|
||||
},
|
||||
// when window width is >= 991 px
|
||||
991: {
|
||||
slidesPerView: 3,
|
||||
spaceBetween: 50
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
// ##################
|
||||
// Mailing
|
||||
// ##################
|
||||
(function () {
|
||||
function ready(fn){ if(document.readyState!=='loading'){fn()} else {document.addEventListener('DOMContentLoaded',fn)} }
|
||||
|
||||
ready(function(){
|
||||
const form = document.getElementById('leadcapture-form');
|
||||
if (!form) return; // veiligheid
|
||||
const okEl = document.getElementById('leadcapture-status');
|
||||
const errEl = document.getElementById('leadcapture-error');
|
||||
const endpoint = "https://crm.start-it.nl/api/v1/LeadCapture/231344ae2852d65f41e98d99da418af8";
|
||||
|
||||
form.addEventListener('submit', async function(e){
|
||||
e.preventDefault();
|
||||
if (okEl) okEl.hidden = true;
|
||||
if (errEl) errEl.hidden = true;
|
||||
|
||||
// Honeypot
|
||||
if (form.company && form.company.value.trim() !== '') return;
|
||||
|
||||
// Kleine validatie
|
||||
const email = (form.emailAddress?.value || '').trim();
|
||||
const last = (form.lastName?.value || '').trim();
|
||||
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email) || !last) {
|
||||
if (errEl) { errEl.hidden = false; errEl.textContent = "Controleer achternaam en e-mail."; }
|
||||
return;
|
||||
}
|
||||
|
||||
const payload = {
|
||||
salutationName: form.salutationName?.value || null,
|
||||
firstName: form.firstName?.value || null,
|
||||
lastName: form.lastName?.value || null,
|
||||
emailAddress: email || null,
|
||||
phoneNumber: form.phoneNumber?.value || null,
|
||||
description: form.description?.value || null
|
||||
};
|
||||
|
||||
const submitBtn = form.querySelector('button[type="submit"]');
|
||||
if (submitBtn) submitBtn.disabled = true;
|
||||
|
||||
try {
|
||||
const res = await fetch(endpoint, {
|
||||
method: 'POST',
|
||||
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(payload),
|
||||
mode: 'cors',
|
||||
credentials: 'omit'
|
||||
});
|
||||
|
||||
if (res.ok) {
|
||||
form.reset();
|
||||
if (okEl) okEl.hidden = false;
|
||||
// // Optioneel: redirect
|
||||
// window.location.href = "/bedankt/";
|
||||
} else {
|
||||
if (errEl) { errEl.hidden = false; errEl.textContent = "Serverfout ("+res.status+")."; }
|
||||
}
|
||||
} catch (e) {
|
||||
if (errEl) { errEl.hidden = false; errEl.textContent = "Netwerk/CORS fout. Zie console."; }
|
||||
console.error('LeadCapture error:', e);
|
||||
} finally {
|
||||
if (submitBtn) submitBtn.disabled = false;
|
||||
}
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const rows = document.querySelectorAll("table tbody tr");
|
||||
const observer = new IntersectionObserver(entries => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
rows.forEach((row, i) => {
|
||||
setTimeout(() => {
|
||||
row.classList.add("show");
|
||||
}, i * 150);
|
||||
});
|
||||
observer.disconnect(); // eenmalig
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.1 });
|
||||
|
||||
if (rows.length) observer.observe(rows[0]);
|
||||
});
|
||||
3495
themes/agico-hugo/assets/plugins/aos/aos.css
Normal file
3495
themes/agico-hugo/assets/plugins/aos/aos.css
Normal file
File diff suppressed because one or more lines are too long
654
themes/agico-hugo/assets/plugins/aos/aos.js
Normal file
654
themes/agico-hugo/assets/plugins/aos/aos.js
Normal file
@@ -0,0 +1,654 @@
|
||||
!(function (e, t) {
|
||||
'object' == typeof exports && 'object' == typeof module
|
||||
? (module.exports = t())
|
||||
: 'function' == typeof define && define.amd
|
||||
? define([], t)
|
||||
: 'object' == typeof exports
|
||||
? (exports.AOS = t())
|
||||
: (e.AOS = t());
|
||||
})(this, function () {
|
||||
return (function (e) {
|
||||
function t(o) {
|
||||
if (n[o]) return n[o].exports;
|
||||
var i = (n[o] = { exports: {}, id: o, loaded: !1 });
|
||||
return e[o].call(i.exports, i, i.exports, t), (i.loaded = !0), i.exports;
|
||||
}
|
||||
var n = {};
|
||||
return (t.m = e), (t.c = n), (t.p = 'dist/'), t(0);
|
||||
})([
|
||||
function (e, t, n) {
|
||||
'use strict';
|
||||
function o(e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
}
|
||||
var i =
|
||||
Object.assign ||
|
||||
function (e) {
|
||||
for (var t = 1; t < arguments.length; t++) {
|
||||
var n = arguments[t];
|
||||
for (var o in n)
|
||||
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
||||
}
|
||||
return e;
|
||||
},
|
||||
r = n(1),
|
||||
a = (o(r), n(6)),
|
||||
u = o(a),
|
||||
c = n(7),
|
||||
f = o(c),
|
||||
s = n(8),
|
||||
d = o(s),
|
||||
l = n(9),
|
||||
p = o(l),
|
||||
m = n(10),
|
||||
b = o(m),
|
||||
v = n(11),
|
||||
y = o(v),
|
||||
g = n(14),
|
||||
h = o(g),
|
||||
w = [],
|
||||
k = !1,
|
||||
x = document.all && !window.atob,
|
||||
j = {
|
||||
offset: 120,
|
||||
delay: 0,
|
||||
easing: 'ease',
|
||||
duration: 400,
|
||||
disable: !1,
|
||||
once: !1,
|
||||
startEvent: 'DOMContentLoaded',
|
||||
throttleDelay: 99,
|
||||
debounceDelay: 50,
|
||||
disableMutationObserver: !1,
|
||||
},
|
||||
O = function () {
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
|
||||
if ((e && (k = !0), k))
|
||||
return (w = (0, y.default)(w, j)), (0, b.default)(w, j.once), w;
|
||||
},
|
||||
_ = function () {
|
||||
(w = (0, h.default)()), O();
|
||||
},
|
||||
S = function () {
|
||||
w.forEach(function (e, t) {
|
||||
e.node.removeAttribute('data-aos'),
|
||||
e.node.removeAttribute('data-aos-easing'),
|
||||
e.node.removeAttribute('data-aos-duration'),
|
||||
e.node.removeAttribute('data-aos-delay');
|
||||
});
|
||||
},
|
||||
z = function (e) {
|
||||
return (
|
||||
e === !0 ||
|
||||
('mobile' === e && p.default.mobile()) ||
|
||||
('phone' === e && p.default.phone()) ||
|
||||
('tablet' === e && p.default.tablet()) ||
|
||||
('function' == typeof e && e() === !0)
|
||||
);
|
||||
},
|
||||
A = function (e) {
|
||||
return (
|
||||
(j = i(j, e)),
|
||||
(w = (0, h.default)()),
|
||||
z(j.disable) || x
|
||||
? S()
|
||||
: (document
|
||||
.querySelector('body')
|
||||
.setAttribute('data-aos-easing', j.easing),
|
||||
document
|
||||
.querySelector('body')
|
||||
.setAttribute('data-aos-duration', j.duration),
|
||||
document
|
||||
.querySelector('body')
|
||||
.setAttribute('data-aos-delay', j.delay),
|
||||
'DOMContentLoaded' === j.startEvent &&
|
||||
['complete', 'interactive'].indexOf(document.readyState) > -1
|
||||
? O(!0)
|
||||
: 'load' === j.startEvent
|
||||
? window.addEventListener(j.startEvent, function () {
|
||||
O(!0);
|
||||
})
|
||||
: document.addEventListener(j.startEvent, function () {
|
||||
O(!0);
|
||||
}),
|
||||
window.addEventListener(
|
||||
'resize',
|
||||
(0, f.default)(O, j.debounceDelay, !0)
|
||||
),
|
||||
window.addEventListener(
|
||||
'orientationchange',
|
||||
(0, f.default)(O, j.debounceDelay, !0)
|
||||
),
|
||||
window.addEventListener(
|
||||
'scroll',
|
||||
(0, u.default)(function () {
|
||||
(0, b.default)(w, j.once);
|
||||
}, j.throttleDelay)
|
||||
),
|
||||
j.disableMutationObserver || (0, d.default)('[data-aos]', _),
|
||||
w)
|
||||
);
|
||||
};
|
||||
e.exports = { init: A, refresh: O, refreshHard: _ };
|
||||
},
|
||||
function (e, t) {},
|
||||
,
|
||||
,
|
||||
,
|
||||
,
|
||||
function (e, t) {
|
||||
(function (t) {
|
||||
'use strict';
|
||||
function n(e, t, n) {
|
||||
function o(t) {
|
||||
var n = b,
|
||||
o = v;
|
||||
return (b = v = void 0), (k = t), (g = e.apply(o, n));
|
||||
}
|
||||
function r(e) {
|
||||
return (k = e), (h = setTimeout(s, t)), _ ? o(e) : g;
|
||||
}
|
||||
function a(e) {
|
||||
var n = e - w,
|
||||
o = e - k,
|
||||
i = t - n;
|
||||
return S ? j(i, y - o) : i;
|
||||
}
|
||||
function c(e) {
|
||||
var n = e - w,
|
||||
o = e - k;
|
||||
return void 0 === w || n >= t || n < 0 || (S && o >= y);
|
||||
}
|
||||
function s() {
|
||||
var e = O();
|
||||
return c(e) ? d(e) : void (h = setTimeout(s, a(e)));
|
||||
}
|
||||
function d(e) {
|
||||
return (h = void 0), z && b ? o(e) : ((b = v = void 0), g);
|
||||
}
|
||||
function l() {
|
||||
void 0 !== h && clearTimeout(h), (k = 0), (b = w = v = h = void 0);
|
||||
}
|
||||
function p() {
|
||||
return void 0 === h ? g : d(O());
|
||||
}
|
||||
function m() {
|
||||
var e = O(),
|
||||
n = c(e);
|
||||
if (((b = arguments), (v = this), (w = e), n)) {
|
||||
if (void 0 === h) return r(w);
|
||||
if (S) return (h = setTimeout(s, t)), o(w);
|
||||
}
|
||||
return void 0 === h && (h = setTimeout(s, t)), g;
|
||||
}
|
||||
var b,
|
||||
v,
|
||||
y,
|
||||
g,
|
||||
h,
|
||||
w,
|
||||
k = 0,
|
||||
_ = !1,
|
||||
S = !1,
|
||||
z = !0;
|
||||
if ('function' != typeof e) throw new TypeError(f);
|
||||
return (
|
||||
(t = u(t) || 0),
|
||||
i(n) &&
|
||||
((_ = !!n.leading),
|
||||
(S = 'maxWait' in n),
|
||||
(y = S ? x(u(n.maxWait) || 0, t) : y),
|
||||
(z = 'trailing' in n ? !!n.trailing : z)),
|
||||
(m.cancel = l),
|
||||
(m.flush = p),
|
||||
m
|
||||
);
|
||||
}
|
||||
function o(e, t, o) {
|
||||
var r = !0,
|
||||
a = !0;
|
||||
if ('function' != typeof e) throw new TypeError(f);
|
||||
return (
|
||||
i(o) &&
|
||||
((r = 'leading' in o ? !!o.leading : r),
|
||||
(a = 'trailing' in o ? !!o.trailing : a)),
|
||||
n(e, t, { leading: r, maxWait: t, trailing: a })
|
||||
);
|
||||
}
|
||||
function i(e) {
|
||||
var t = 'undefined' == typeof e ? 'undefined' : c(e);
|
||||
return !!e && ('object' == t || 'function' == t);
|
||||
}
|
||||
function r(e) {
|
||||
return (
|
||||
!!e && 'object' == ('undefined' == typeof e ? 'undefined' : c(e))
|
||||
);
|
||||
}
|
||||
function a(e) {
|
||||
return (
|
||||
'symbol' == ('undefined' == typeof e ? 'undefined' : c(e)) ||
|
||||
(r(e) && k.call(e) == d)
|
||||
);
|
||||
}
|
||||
function u(e) {
|
||||
if ('number' == typeof e) return e;
|
||||
if (a(e)) return s;
|
||||
if (i(e)) {
|
||||
var t = 'function' == typeof e.valueOf ? e.valueOf() : e;
|
||||
e = i(t) ? t + '' : t;
|
||||
}
|
||||
if ('string' != typeof e) return 0 === e ? e : +e;
|
||||
e = e.replace(l, '');
|
||||
var n = m.test(e);
|
||||
return n || b.test(e) ? v(e.slice(2), n ? 2 : 8) : p.test(e) ? s : +e;
|
||||
}
|
||||
var c =
|
||||
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
|
||||
? function (e) {
|
||||
return typeof e;
|
||||
}
|
||||
: function (e) {
|
||||
return e &&
|
||||
'function' == typeof Symbol &&
|
||||
e.constructor === Symbol &&
|
||||
e !== Symbol.prototype
|
||||
? 'symbol'
|
||||
: typeof e;
|
||||
},
|
||||
f = 'Expected a function',
|
||||
s = NaN,
|
||||
d = '[object Symbol]',
|
||||
l = /^\s+|\s+$/g,
|
||||
p = /^[-+]0x[0-9a-f]+$/i,
|
||||
m = /^0b[01]+$/i,
|
||||
b = /^0o[0-7]+$/i,
|
||||
v = parseInt,
|
||||
y =
|
||||
'object' == ('undefined' == typeof t ? 'undefined' : c(t)) &&
|
||||
t &&
|
||||
t.Object === Object &&
|
||||
t,
|
||||
g =
|
||||
'object' == ('undefined' == typeof self ? 'undefined' : c(self)) &&
|
||||
self &&
|
||||
self.Object === Object &&
|
||||
self,
|
||||
h = y || g || Function('return this')(),
|
||||
w = Object.prototype,
|
||||
k = w.toString,
|
||||
x = Math.max,
|
||||
j = Math.min,
|
||||
O = function () {
|
||||
return h.Date.now();
|
||||
};
|
||||
e.exports = o;
|
||||
}.call(
|
||||
t,
|
||||
(function () {
|
||||
return this;
|
||||
})()
|
||||
));
|
||||
},
|
||||
function (e, t) {
|
||||
(function (t) {
|
||||
'use strict';
|
||||
function n(e, t, n) {
|
||||
function i(t) {
|
||||
var n = b,
|
||||
o = v;
|
||||
return (b = v = void 0), (O = t), (g = e.apply(o, n));
|
||||
}
|
||||
function r(e) {
|
||||
return (O = e), (h = setTimeout(s, t)), _ ? i(e) : g;
|
||||
}
|
||||
function u(e) {
|
||||
var n = e - w,
|
||||
o = e - O,
|
||||
i = t - n;
|
||||
return S ? x(i, y - o) : i;
|
||||
}
|
||||
function f(e) {
|
||||
var n = e - w,
|
||||
o = e - O;
|
||||
return void 0 === w || n >= t || n < 0 || (S && o >= y);
|
||||
}
|
||||
function s() {
|
||||
var e = j();
|
||||
return f(e) ? d(e) : void (h = setTimeout(s, u(e)));
|
||||
}
|
||||
function d(e) {
|
||||
return (h = void 0), z && b ? i(e) : ((b = v = void 0), g);
|
||||
}
|
||||
function l() {
|
||||
void 0 !== h && clearTimeout(h), (O = 0), (b = w = v = h = void 0);
|
||||
}
|
||||
function p() {
|
||||
return void 0 === h ? g : d(j());
|
||||
}
|
||||
function m() {
|
||||
var e = j(),
|
||||
n = f(e);
|
||||
if (((b = arguments), (v = this), (w = e), n)) {
|
||||
if (void 0 === h) return r(w);
|
||||
if (S) return (h = setTimeout(s, t)), i(w);
|
||||
}
|
||||
return void 0 === h && (h = setTimeout(s, t)), g;
|
||||
}
|
||||
var b,
|
||||
v,
|
||||
y,
|
||||
g,
|
||||
h,
|
||||
w,
|
||||
O = 0,
|
||||
_ = !1,
|
||||
S = !1,
|
||||
z = !0;
|
||||
if ('function' != typeof e) throw new TypeError(c);
|
||||
return (
|
||||
(t = a(t) || 0),
|
||||
o(n) &&
|
||||
((_ = !!n.leading),
|
||||
(S = 'maxWait' in n),
|
||||
(y = S ? k(a(n.maxWait) || 0, t) : y),
|
||||
(z = 'trailing' in n ? !!n.trailing : z)),
|
||||
(m.cancel = l),
|
||||
(m.flush = p),
|
||||
m
|
||||
);
|
||||
}
|
||||
function o(e) {
|
||||
var t = 'undefined' == typeof e ? 'undefined' : u(e);
|
||||
return !!e && ('object' == t || 'function' == t);
|
||||
}
|
||||
function i(e) {
|
||||
return (
|
||||
!!e && 'object' == ('undefined' == typeof e ? 'undefined' : u(e))
|
||||
);
|
||||
}
|
||||
function r(e) {
|
||||
return (
|
||||
'symbol' == ('undefined' == typeof e ? 'undefined' : u(e)) ||
|
||||
(i(e) && w.call(e) == s)
|
||||
);
|
||||
}
|
||||
function a(e) {
|
||||
if ('number' == typeof e) return e;
|
||||
if (r(e)) return f;
|
||||
if (o(e)) {
|
||||
var t = 'function' == typeof e.valueOf ? e.valueOf() : e;
|
||||
e = o(t) ? t + '' : t;
|
||||
}
|
||||
if ('string' != typeof e) return 0 === e ? e : +e;
|
||||
e = e.replace(d, '');
|
||||
var n = p.test(e);
|
||||
return n || m.test(e) ? b(e.slice(2), n ? 2 : 8) : l.test(e) ? f : +e;
|
||||
}
|
||||
var u =
|
||||
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
|
||||
? function (e) {
|
||||
return typeof e;
|
||||
}
|
||||
: function (e) {
|
||||
return e &&
|
||||
'function' == typeof Symbol &&
|
||||
e.constructor === Symbol &&
|
||||
e !== Symbol.prototype
|
||||
? 'symbol'
|
||||
: typeof e;
|
||||
},
|
||||
c = 'Expected a function',
|
||||
f = NaN,
|
||||
s = '[object Symbol]',
|
||||
d = /^\s+|\s+$/g,
|
||||
l = /^[-+]0x[0-9a-f]+$/i,
|
||||
p = /^0b[01]+$/i,
|
||||
m = /^0o[0-7]+$/i,
|
||||
b = parseInt,
|
||||
v =
|
||||
'object' == ('undefined' == typeof t ? 'undefined' : u(t)) &&
|
||||
t &&
|
||||
t.Object === Object &&
|
||||
t,
|
||||
y =
|
||||
'object' == ('undefined' == typeof self ? 'undefined' : u(self)) &&
|
||||
self &&
|
||||
self.Object === Object &&
|
||||
self,
|
||||
g = v || y || Function('return this')(),
|
||||
h = Object.prototype,
|
||||
w = h.toString,
|
||||
k = Math.max,
|
||||
x = Math.min,
|
||||
j = function () {
|
||||
return g.Date.now();
|
||||
};
|
||||
e.exports = n;
|
||||
}.call(
|
||||
t,
|
||||
(function () {
|
||||
return this;
|
||||
})()
|
||||
));
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
function n(e, t) {
|
||||
var n = new r(o);
|
||||
(a = t),
|
||||
n.observe(i.documentElement, {
|
||||
childList: !0,
|
||||
subtree: !0,
|
||||
removedNodes: !0,
|
||||
});
|
||||
}
|
||||
function o(e) {
|
||||
e &&
|
||||
e.forEach(function (e) {
|
||||
var t = Array.prototype.slice.call(e.addedNodes),
|
||||
n = Array.prototype.slice.call(e.removedNodes),
|
||||
o = t.concat(n).filter(function (e) {
|
||||
return e.hasAttribute && e.hasAttribute('data-aos');
|
||||
}).length;
|
||||
o && a();
|
||||
});
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = window.document,
|
||||
r =
|
||||
window.MutationObserver ||
|
||||
window.WebKitMutationObserver ||
|
||||
window.MozMutationObserver,
|
||||
a = function () {};
|
||||
t.default = n;
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
function n(e, t) {
|
||||
if (!(e instanceof t))
|
||||
throw new TypeError('Cannot call a class as a function');
|
||||
}
|
||||
function o() {
|
||||
return navigator.userAgent || navigator.vendor || window.opera || '';
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = (function () {
|
||||
function e(e, t) {
|
||||
for (var n = 0; n < t.length; n++) {
|
||||
var o = t[n];
|
||||
(o.enumerable = o.enumerable || !1),
|
||||
(o.configurable = !0),
|
||||
'value' in o && (o.writable = !0),
|
||||
Object.defineProperty(e, o.key, o);
|
||||
}
|
||||
}
|
||||
return function (t, n, o) {
|
||||
return n && e(t.prototype, n), o && e(t, o), t;
|
||||
};
|
||||
})(),
|
||||
r =
|
||||
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,
|
||||
a =
|
||||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
|
||||
u =
|
||||
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,
|
||||
c =
|
||||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
|
||||
f = (function () {
|
||||
function e() {
|
||||
n(this, e);
|
||||
}
|
||||
return (
|
||||
i(e, [
|
||||
{
|
||||
key: 'phone',
|
||||
value: function () {
|
||||
var e = o();
|
||||
return !(!r.test(e) && !a.test(e.substr(0, 4)));
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'mobile',
|
||||
value: function () {
|
||||
var e = o();
|
||||
return !(!u.test(e) && !c.test(e.substr(0, 4)));
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'tablet',
|
||||
value: function () {
|
||||
return this.mobile() && !this.phone();
|
||||
},
|
||||
},
|
||||
]),
|
||||
e
|
||||
);
|
||||
})();
|
||||
t.default = new f();
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var n = function (e, t, n) {
|
||||
var o = e.node.getAttribute('data-aos-once');
|
||||
t > e.position
|
||||
? e.node.classList.add('aos-animate')
|
||||
: 'undefined' != typeof o &&
|
||||
('false' === o || (!n && 'true' !== o)) &&
|
||||
e.node.classList.remove('aos-animate');
|
||||
},
|
||||
o = function (e, t) {
|
||||
var o = window.pageYOffset,
|
||||
i = window.innerHeight;
|
||||
e.forEach(function (e, r) {
|
||||
n(e, i + o, t);
|
||||
});
|
||||
};
|
||||
t.default = o;
|
||||
},
|
||||
function (e, t, n) {
|
||||
'use strict';
|
||||
function o(e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = n(12),
|
||||
r = o(i),
|
||||
a = function (e, t) {
|
||||
return (
|
||||
e.forEach(function (e, n) {
|
||||
e.node.classList.add('aos-init'),
|
||||
(e.position = (0, r.default)(e.node, t.offset));
|
||||
}),
|
||||
e
|
||||
);
|
||||
};
|
||||
t.default = a;
|
||||
},
|
||||
function (e, t, n) {
|
||||
'use strict';
|
||||
function o(e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = n(13),
|
||||
r = o(i),
|
||||
a = function (e, t) {
|
||||
var n = 0,
|
||||
o = 0,
|
||||
i = window.innerHeight,
|
||||
a = {
|
||||
offset: e.getAttribute('data-aos-offset'),
|
||||
anchor: e.getAttribute('data-aos-anchor'),
|
||||
anchorPlacement: e.getAttribute('data-aos-anchor-placement'),
|
||||
};
|
||||
switch (
|
||||
(a.offset && !isNaN(a.offset) && (o = parseInt(a.offset)),
|
||||
a.anchor &&
|
||||
document.querySelectorAll(a.anchor) &&
|
||||
(e = document.querySelectorAll(a.anchor)[0]),
|
||||
(n = (0, r.default)(e).top),
|
||||
a.anchorPlacement)
|
||||
) {
|
||||
case 'top-bottom':
|
||||
break;
|
||||
case 'center-bottom':
|
||||
n += e.offsetHeight / 2;
|
||||
break;
|
||||
case 'bottom-bottom':
|
||||
n += e.offsetHeight;
|
||||
break;
|
||||
case 'top-center':
|
||||
n += i / 2;
|
||||
break;
|
||||
case 'bottom-center':
|
||||
n += i / 2 + e.offsetHeight;
|
||||
break;
|
||||
case 'center-center':
|
||||
n += i / 2 + e.offsetHeight / 2;
|
||||
break;
|
||||
case 'top-top':
|
||||
n += i;
|
||||
break;
|
||||
case 'bottom-top':
|
||||
n += e.offsetHeight + i;
|
||||
break;
|
||||
case 'center-top':
|
||||
n += e.offsetHeight / 2 + i;
|
||||
}
|
||||
return a.anchorPlacement || a.offset || isNaN(t) || (o = t), n + o;
|
||||
};
|
||||
t.default = a;
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var n = function (e) {
|
||||
for (
|
||||
var t = 0, n = 0;
|
||||
e && !isNaN(e.offsetLeft) && !isNaN(e.offsetTop);
|
||||
|
||||
)
|
||||
(t += e.offsetLeft - ('BODY' != e.tagName ? e.scrollLeft : 0)),
|
||||
(n += e.offsetTop - ('BODY' != e.tagName ? e.scrollTop : 0)),
|
||||
(e = e.offsetParent);
|
||||
return { top: n, left: t };
|
||||
};
|
||||
t.default = n;
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var n = function (e) {
|
||||
return (
|
||||
(e = e || document.querySelectorAll('[data-aos]')),
|
||||
Array.prototype.map.call(e, function (e) {
|
||||
return { node: e };
|
||||
})
|
||||
);
|
||||
};
|
||||
t.default = n;
|
||||
},
|
||||
]);
|
||||
});
|
||||
794
themes/agico-hugo/assets/plugins/search/fuse.min.js
vendored
Normal file
794
themes/agico-hugo/assets/plugins/search/fuse.min.js
vendored
Normal file
@@ -0,0 +1,794 @@
|
||||
/*!
|
||||
* Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io)
|
||||
*
|
||||
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
||||
* All Rights Reserved. Apache Software License 2.0
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
!(function (e, t) {
|
||||
'object' == typeof exports && 'object' == typeof module
|
||||
? (module.exports = t())
|
||||
: 'function' == typeof define && define.amd
|
||||
? define('Fuse', [], t)
|
||||
: 'object' == typeof exports
|
||||
? (exports.Fuse = t())
|
||||
: (e.Fuse = t());
|
||||
})(this, function () {
|
||||
return (function (e) {
|
||||
var t = {};
|
||||
function n(r) {
|
||||
if (t[r]) return t[r].exports;
|
||||
var o = (t[r] = { i: r, l: !1, exports: {} });
|
||||
return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
|
||||
}
|
||||
return (
|
||||
(n.m = e),
|
||||
(n.c = t),
|
||||
(n.d = function (e, t, r) {
|
||||
n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r });
|
||||
}),
|
||||
(n.r = function (e) {
|
||||
'undefined' != typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
|
||||
Object.defineProperty(e, '__esModule', { value: !0 });
|
||||
}),
|
||||
(n.t = function (e, t) {
|
||||
if ((1 & t && (e = n(e)), 8 & t)) return e;
|
||||
if (4 & t && 'object' == typeof e && e && e.__esModule) return e;
|
||||
var r = Object.create(null);
|
||||
if (
|
||||
(n.r(r),
|
||||
Object.defineProperty(r, 'default', { enumerable: !0, value: e }),
|
||||
2 & t && 'string' != typeof e)
|
||||
)
|
||||
for (var o in e)
|
||||
n.d(
|
||||
r,
|
||||
o,
|
||||
function (t) {
|
||||
return e[t];
|
||||
}.bind(null, o)
|
||||
);
|
||||
return r;
|
||||
}),
|
||||
(n.n = function (e) {
|
||||
var t =
|
||||
e && e.__esModule
|
||||
? function () {
|
||||
return e.default;
|
||||
}
|
||||
: function () {
|
||||
return e;
|
||||
};
|
||||
return n.d(t, 'a', t), t;
|
||||
}),
|
||||
(n.o = function (e, t) {
|
||||
return Object.prototype.hasOwnProperty.call(e, t);
|
||||
}),
|
||||
(n.p = ''),
|
||||
n((n.s = 1))
|
||||
);
|
||||
})([
|
||||
function (e, t) {
|
||||
e.exports = function (e) {
|
||||
return Array.isArray
|
||||
? Array.isArray(e)
|
||||
: '[object Array]' === Object.prototype.toString.call(e);
|
||||
};
|
||||
},
|
||||
function (e, t, n) {
|
||||
function r(e) {
|
||||
return (r =
|
||||
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
|
||||
? function (e) {
|
||||
return typeof e;
|
||||
}
|
||||
: function (e) {
|
||||
return e &&
|
||||
'function' == typeof Symbol &&
|
||||
e.constructor === Symbol &&
|
||||
e !== Symbol.prototype
|
||||
? 'symbol'
|
||||
: typeof e;
|
||||
})(e);
|
||||
}
|
||||
function o(e, t) {
|
||||
for (var n = 0; n < t.length; n++) {
|
||||
var r = t[n];
|
||||
(r.enumerable = r.enumerable || !1),
|
||||
(r.configurable = !0),
|
||||
'value' in r && (r.writable = !0),
|
||||
Object.defineProperty(e, r.key, r);
|
||||
}
|
||||
}
|
||||
var i = n(2),
|
||||
a = n(8),
|
||||
s = n(0),
|
||||
c = (function () {
|
||||
function e(t, n) {
|
||||
var r = n.location,
|
||||
o = void 0 === r ? 0 : r,
|
||||
i = n.distance,
|
||||
s = void 0 === i ? 100 : i,
|
||||
c = n.threshold,
|
||||
h = void 0 === c ? 0.6 : c,
|
||||
l = n.maxPatternLength,
|
||||
u = void 0 === l ? 32 : l,
|
||||
f = n.caseSensitive,
|
||||
d = void 0 !== f && f,
|
||||
v = n.tokenSeparator,
|
||||
p = void 0 === v ? / +/g : v,
|
||||
g = n.findAllMatches,
|
||||
y = void 0 !== g && g,
|
||||
m = n.minMatchCharLength,
|
||||
k = void 0 === m ? 1 : m,
|
||||
S = n.id,
|
||||
x = void 0 === S ? null : S,
|
||||
b = n.keys,
|
||||
M = void 0 === b ? [] : b,
|
||||
_ = n.shouldSort,
|
||||
L = void 0 === _ || _,
|
||||
w = n.getFn,
|
||||
A = void 0 === w ? a : w,
|
||||
C = n.sortFn,
|
||||
I =
|
||||
void 0 === C
|
||||
? function (e, t) {
|
||||
return e.score - t.score;
|
||||
}
|
||||
: C,
|
||||
O = n.tokenize,
|
||||
j = void 0 !== O && O,
|
||||
P = n.matchAllTokens,
|
||||
F = void 0 !== P && P,
|
||||
T = n.includeMatches,
|
||||
z = void 0 !== T && T,
|
||||
E = n.includeScore,
|
||||
K = void 0 !== E && E,
|
||||
$ = n.verbose,
|
||||
J = void 0 !== $ && $;
|
||||
!(function (e, t) {
|
||||
if (!(e instanceof t))
|
||||
throw new TypeError('Cannot call a class as a function');
|
||||
})(this, e),
|
||||
(this.options = {
|
||||
location: o,
|
||||
distance: s,
|
||||
threshold: h,
|
||||
maxPatternLength: u,
|
||||
isCaseSensitive: d,
|
||||
tokenSeparator: p,
|
||||
findAllMatches: y,
|
||||
minMatchCharLength: k,
|
||||
id: x,
|
||||
keys: M,
|
||||
includeMatches: z,
|
||||
includeScore: K,
|
||||
shouldSort: L,
|
||||
getFn: A,
|
||||
sortFn: I,
|
||||
verbose: J,
|
||||
tokenize: j,
|
||||
matchAllTokens: F,
|
||||
}),
|
||||
this.setCollection(t);
|
||||
}
|
||||
var t, n, c;
|
||||
return (
|
||||
(t = e),
|
||||
(n = [
|
||||
{
|
||||
key: 'setCollection',
|
||||
value: function (e) {
|
||||
return (this.list = e), e;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'search',
|
||||
value: function (e) {
|
||||
var t =
|
||||
arguments.length > 1 && void 0 !== arguments[1]
|
||||
? arguments[1]
|
||||
: { limit: !1 };
|
||||
this._log('---------\nSearch pattern: "'.concat(e, '"'));
|
||||
var n = this._prepareSearchers(e),
|
||||
r = n.tokenSearchers,
|
||||
o = n.fullSearcher,
|
||||
i = this._search(r, o),
|
||||
a = i.weights,
|
||||
s = i.results;
|
||||
return (
|
||||
this._computeScore(a, s),
|
||||
this.options.shouldSort && this._sort(s),
|
||||
t.limit &&
|
||||
'number' == typeof t.limit &&
|
||||
(s = s.slice(0, t.limit)),
|
||||
this._format(s)
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_prepareSearchers',
|
||||
value: function () {
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0]
|
||||
? arguments[0]
|
||||
: '',
|
||||
t = [];
|
||||
if (this.options.tokenize)
|
||||
for (
|
||||
var n = e.split(this.options.tokenSeparator),
|
||||
r = 0,
|
||||
o = n.length;
|
||||
r < o;
|
||||
r += 1
|
||||
)
|
||||
t.push(new i(n[r], this.options));
|
||||
return {
|
||||
tokenSearchers: t,
|
||||
fullSearcher: new i(e, this.options),
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_search',
|
||||
value: function () {
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0]
|
||||
? arguments[0]
|
||||
: [],
|
||||
t = arguments.length > 1 ? arguments[1] : void 0,
|
||||
n = this.list,
|
||||
r = {},
|
||||
o = [];
|
||||
if ('string' == typeof n[0]) {
|
||||
for (var i = 0, a = n.length; i < a; i += 1)
|
||||
this._analyze(
|
||||
{ key: '', value: n[i], record: i, index: i },
|
||||
{
|
||||
resultMap: r,
|
||||
results: o,
|
||||
tokenSearchers: e,
|
||||
fullSearcher: t,
|
||||
}
|
||||
);
|
||||
return { weights: null, results: o };
|
||||
}
|
||||
for (var s = {}, c = 0, h = n.length; c < h; c += 1)
|
||||
for (
|
||||
var l = n[c], u = 0, f = this.options.keys.length;
|
||||
u < f;
|
||||
u += 1
|
||||
) {
|
||||
var d = this.options.keys[u];
|
||||
if ('string' != typeof d) {
|
||||
if (
|
||||
((s[d.name] = { weight: 1 - d.weight || 1 }),
|
||||
d.weight <= 0 || d.weight > 1)
|
||||
)
|
||||
throw new Error('Key weight has to be > 0 and <= 1');
|
||||
d = d.name;
|
||||
} else s[d] = { weight: 1 };
|
||||
this._analyze(
|
||||
{
|
||||
key: d,
|
||||
value: this.options.getFn(l, d),
|
||||
record: l,
|
||||
index: c,
|
||||
},
|
||||
{
|
||||
resultMap: r,
|
||||
results: o,
|
||||
tokenSearchers: e,
|
||||
fullSearcher: t,
|
||||
}
|
||||
);
|
||||
}
|
||||
return { weights: s, results: o };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_analyze',
|
||||
value: function (e, t) {
|
||||
var n = e.key,
|
||||
r = e.arrayIndex,
|
||||
o = void 0 === r ? -1 : r,
|
||||
i = e.value,
|
||||
a = e.record,
|
||||
c = e.index,
|
||||
h = t.tokenSearchers,
|
||||
l = void 0 === h ? [] : h,
|
||||
u = t.fullSearcher,
|
||||
f = void 0 === u ? [] : u,
|
||||
d = t.resultMap,
|
||||
v = void 0 === d ? {} : d,
|
||||
p = t.results,
|
||||
g = void 0 === p ? [] : p;
|
||||
if (null != i) {
|
||||
var y = !1,
|
||||
m = -1,
|
||||
k = 0;
|
||||
if ('string' == typeof i) {
|
||||
this._log('\nKey: '.concat('' === n ? '-' : n));
|
||||
var S = f.search(i);
|
||||
if (
|
||||
(this._log(
|
||||
'Full text: "'.concat(i, '", score: ').concat(S.score)
|
||||
),
|
||||
this.options.tokenize)
|
||||
) {
|
||||
for (
|
||||
var x = i.split(this.options.tokenSeparator),
|
||||
b = [],
|
||||
M = 0;
|
||||
M < l.length;
|
||||
M += 1
|
||||
) {
|
||||
var _ = l[M];
|
||||
this._log('\nPattern: "'.concat(_.pattern, '"'));
|
||||
for (var L = !1, w = 0; w < x.length; w += 1) {
|
||||
var A = x[w],
|
||||
C = _.search(A),
|
||||
I = {};
|
||||
C.isMatch
|
||||
? ((I[A] = C.score),
|
||||
(y = !0),
|
||||
(L = !0),
|
||||
b.push(C.score))
|
||||
: ((I[A] = 1),
|
||||
this.options.matchAllTokens || b.push(1)),
|
||||
this._log(
|
||||
'Token: "'.concat(A, '", score: ').concat(I[A])
|
||||
);
|
||||
}
|
||||
L && (k += 1);
|
||||
}
|
||||
m = b[0];
|
||||
for (var O = b.length, j = 1; j < O; j += 1) m += b[j];
|
||||
(m /= O), this._log('Token score average:', m);
|
||||
}
|
||||
var P = S.score;
|
||||
m > -1 && (P = (P + m) / 2),
|
||||
this._log('Score average:', P);
|
||||
var F =
|
||||
!this.options.tokenize ||
|
||||
!this.options.matchAllTokens ||
|
||||
k >= l.length;
|
||||
if (
|
||||
(this._log('\nCheck Matches: '.concat(F)),
|
||||
(y || S.isMatch) && F)
|
||||
) {
|
||||
var T = v[c];
|
||||
T
|
||||
? T.output.push({
|
||||
key: n,
|
||||
arrayIndex: o,
|
||||
value: i,
|
||||
score: P,
|
||||
matchedIndices: S.matchedIndices,
|
||||
})
|
||||
: ((v[c] = {
|
||||
item: a,
|
||||
output: [
|
||||
{
|
||||
key: n,
|
||||
arrayIndex: o,
|
||||
value: i,
|
||||
score: P,
|
||||
matchedIndices: S.matchedIndices,
|
||||
},
|
||||
],
|
||||
}),
|
||||
g.push(v[c]));
|
||||
}
|
||||
} else if (s(i))
|
||||
for (var z = 0, E = i.length; z < E; z += 1)
|
||||
this._analyze(
|
||||
{
|
||||
key: n,
|
||||
arrayIndex: z,
|
||||
value: i[z],
|
||||
record: a,
|
||||
index: c,
|
||||
},
|
||||
{
|
||||
resultMap: v,
|
||||
results: g,
|
||||
tokenSearchers: l,
|
||||
fullSearcher: f,
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_computeScore',
|
||||
value: function (e, t) {
|
||||
this._log('\n\nComputing score:\n');
|
||||
for (var n = 0, r = t.length; n < r; n += 1) {
|
||||
for (
|
||||
var o = t[n].output, i = o.length, a = 1, s = 1, c = 0;
|
||||
c < i;
|
||||
c += 1
|
||||
) {
|
||||
var h = e ? e[o[c].key].weight : 1,
|
||||
l = (1 === h ? o[c].score : o[c].score || 0.001) * h;
|
||||
1 !== h
|
||||
? (s = Math.min(s, l))
|
||||
: ((o[c].nScore = l), (a *= l));
|
||||
}
|
||||
(t[n].score = 1 === s ? a : s), this._log(t[n]);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_sort',
|
||||
value: function (e) {
|
||||
this._log('\n\nSorting....'), e.sort(this.options.sortFn);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_format',
|
||||
value: function (e) {
|
||||
var t = [];
|
||||
if (this.options.verbose) {
|
||||
var n = [];
|
||||
this._log(
|
||||
'\n\nOutput:\n\n',
|
||||
JSON.stringify(e, function (e, t) {
|
||||
if ('object' === r(t) && null !== t) {
|
||||
if (-1 !== n.indexOf(t)) return;
|
||||
n.push(t);
|
||||
}
|
||||
return t;
|
||||
})
|
||||
),
|
||||
(n = null);
|
||||
}
|
||||
var o = [];
|
||||
this.options.includeMatches &&
|
||||
o.push(function (e, t) {
|
||||
var n = e.output;
|
||||
t.matches = [];
|
||||
for (var r = 0, o = n.length; r < o; r += 1) {
|
||||
var i = n[r];
|
||||
if (0 !== i.matchedIndices.length) {
|
||||
var a = { indices: i.matchedIndices, value: i.value };
|
||||
i.key && (a.key = i.key),
|
||||
i.hasOwnProperty('arrayIndex') &&
|
||||
i.arrayIndex > -1 &&
|
||||
(a.arrayIndex = i.arrayIndex),
|
||||
t.matches.push(a);
|
||||
}
|
||||
}
|
||||
}),
|
||||
this.options.includeScore &&
|
||||
o.push(function (e, t) {
|
||||
t.score = e.score;
|
||||
});
|
||||
for (var i = 0, a = e.length; i < a; i += 1) {
|
||||
var s = e[i];
|
||||
if (
|
||||
(this.options.id &&
|
||||
(s.item = this.options.getFn(
|
||||
s.item,
|
||||
this.options.id
|
||||
)[0]),
|
||||
o.length)
|
||||
) {
|
||||
for (
|
||||
var c = { item: s.item }, h = 0, l = o.length;
|
||||
h < l;
|
||||
h += 1
|
||||
)
|
||||
o[h](s, c);
|
||||
t.push(c);
|
||||
} else t.push(s.item);
|
||||
}
|
||||
return t;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_log',
|
||||
value: function () {
|
||||
var e;
|
||||
this.options.verbose && (e = console).log.apply(e, arguments);
|
||||
},
|
||||
},
|
||||
]) && o(t.prototype, n),
|
||||
c && o(t, c),
|
||||
e
|
||||
);
|
||||
})();
|
||||
e.exports = c;
|
||||
},
|
||||
function (e, t, n) {
|
||||
function r(e, t) {
|
||||
for (var n = 0; n < t.length; n++) {
|
||||
var r = t[n];
|
||||
(r.enumerable = r.enumerable || !1),
|
||||
(r.configurable = !0),
|
||||
'value' in r && (r.writable = !0),
|
||||
Object.defineProperty(e, r.key, r);
|
||||
}
|
||||
}
|
||||
var o = n(3),
|
||||
i = n(4),
|
||||
a = n(7),
|
||||
s = (function () {
|
||||
function e(t, n) {
|
||||
var r = n.location,
|
||||
o = void 0 === r ? 0 : r,
|
||||
i = n.distance,
|
||||
s = void 0 === i ? 100 : i,
|
||||
c = n.threshold,
|
||||
h = void 0 === c ? 0.6 : c,
|
||||
l = n.maxPatternLength,
|
||||
u = void 0 === l ? 32 : l,
|
||||
f = n.isCaseSensitive,
|
||||
d = void 0 !== f && f,
|
||||
v = n.tokenSeparator,
|
||||
p = void 0 === v ? / +/g : v,
|
||||
g = n.findAllMatches,
|
||||
y = void 0 !== g && g,
|
||||
m = n.minMatchCharLength,
|
||||
k = void 0 === m ? 1 : m;
|
||||
!(function (e, t) {
|
||||
if (!(e instanceof t))
|
||||
throw new TypeError('Cannot call a class as a function');
|
||||
})(this, e),
|
||||
(this.options = {
|
||||
location: o,
|
||||
distance: s,
|
||||
threshold: h,
|
||||
maxPatternLength: u,
|
||||
isCaseSensitive: d,
|
||||
tokenSeparator: p,
|
||||
findAllMatches: y,
|
||||
minMatchCharLength: k,
|
||||
}),
|
||||
(this.pattern = this.options.isCaseSensitive
|
||||
? t
|
||||
: t.toLowerCase()),
|
||||
this.pattern.length <= u &&
|
||||
(this.patternAlphabet = a(this.pattern));
|
||||
}
|
||||
var t, n, s;
|
||||
return (
|
||||
(t = e),
|
||||
(n = [
|
||||
{
|
||||
key: 'search',
|
||||
value: function (e) {
|
||||
if (
|
||||
(this.options.isCaseSensitive || (e = e.toLowerCase()),
|
||||
this.pattern === e)
|
||||
)
|
||||
return {
|
||||
isMatch: !0,
|
||||
score: 0,
|
||||
matchedIndices: [[0, e.length - 1]],
|
||||
};
|
||||
var t = this.options,
|
||||
n = t.maxPatternLength,
|
||||
r = t.tokenSeparator;
|
||||
if (this.pattern.length > n) return o(e, this.pattern, r);
|
||||
var a = this.options,
|
||||
s = a.location,
|
||||
c = a.distance,
|
||||
h = a.threshold,
|
||||
l = a.findAllMatches,
|
||||
u = a.minMatchCharLength;
|
||||
return i(e, this.pattern, this.patternAlphabet, {
|
||||
location: s,
|
||||
distance: c,
|
||||
threshold: h,
|
||||
findAllMatches: l,
|
||||
minMatchCharLength: u,
|
||||
});
|
||||
},
|
||||
},
|
||||
]) && r(t.prototype, n),
|
||||
s && r(t, s),
|
||||
e
|
||||
);
|
||||
})();
|
||||
e.exports = s;
|
||||
},
|
||||
function (e, t) {
|
||||
var n = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;
|
||||
e.exports = function (e, t) {
|
||||
var r =
|
||||
arguments.length > 2 && void 0 !== arguments[2]
|
||||
? arguments[2]
|
||||
: / +/g,
|
||||
o = new RegExp(t.replace(n, '\\$&').replace(r, '|')),
|
||||
i = e.match(o),
|
||||
a = !!i,
|
||||
s = [];
|
||||
if (a)
|
||||
for (var c = 0, h = i.length; c < h; c += 1) {
|
||||
var l = i[c];
|
||||
s.push([e.indexOf(l), l.length - 1]);
|
||||
}
|
||||
return { score: a ? 0.5 : 1, isMatch: a, matchedIndices: s };
|
||||
};
|
||||
},
|
||||
function (e, t, n) {
|
||||
var r = n(5),
|
||||
o = n(6);
|
||||
e.exports = function (e, t, n, i) {
|
||||
for (
|
||||
var a = i.location,
|
||||
s = void 0 === a ? 0 : a,
|
||||
c = i.distance,
|
||||
h = void 0 === c ? 100 : c,
|
||||
l = i.threshold,
|
||||
u = void 0 === l ? 0.6 : l,
|
||||
f = i.findAllMatches,
|
||||
d = void 0 !== f && f,
|
||||
v = i.minMatchCharLength,
|
||||
p = void 0 === v ? 1 : v,
|
||||
g = s,
|
||||
y = e.length,
|
||||
m = u,
|
||||
k = e.indexOf(t, g),
|
||||
S = t.length,
|
||||
x = [],
|
||||
b = 0;
|
||||
b < y;
|
||||
b += 1
|
||||
)
|
||||
x[b] = 0;
|
||||
if (-1 !== k) {
|
||||
var M = r(t, {
|
||||
errors: 0,
|
||||
currentLocation: k,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
});
|
||||
if (((m = Math.min(M, m)), -1 !== (k = e.lastIndexOf(t, g + S)))) {
|
||||
var _ = r(t, {
|
||||
errors: 0,
|
||||
currentLocation: k,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
});
|
||||
m = Math.min(_, m);
|
||||
}
|
||||
}
|
||||
k = -1;
|
||||
for (
|
||||
var L = [], w = 1, A = S + y, C = 1 << (S <= 31 ? S - 1 : 30), I = 0;
|
||||
I < S;
|
||||
I += 1
|
||||
) {
|
||||
for (var O = 0, j = A; O < j; ) {
|
||||
r(t, {
|
||||
errors: I,
|
||||
currentLocation: g + j,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
}) <= m
|
||||
? (O = j)
|
||||
: (A = j),
|
||||
(j = Math.floor((A - O) / 2 + O));
|
||||
}
|
||||
A = j;
|
||||
var P = Math.max(1, g - j + 1),
|
||||
F = d ? y : Math.min(g + j, y) + S,
|
||||
T = Array(F + 2);
|
||||
T[F + 1] = (1 << I) - 1;
|
||||
for (var z = F; z >= P; z -= 1) {
|
||||
var E = z - 1,
|
||||
K = n[e.charAt(E)];
|
||||
if (
|
||||
(K && (x[E] = 1),
|
||||
(T[z] = ((T[z + 1] << 1) | 1) & K),
|
||||
0 !== I && (T[z] |= ((L[z + 1] | L[z]) << 1) | 1 | L[z + 1]),
|
||||
T[z] & C &&
|
||||
(w = r(t, {
|
||||
errors: I,
|
||||
currentLocation: E,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
})) <= m)
|
||||
) {
|
||||
if (((m = w), (k = E) <= g)) break;
|
||||
P = Math.max(1, 2 * g - k);
|
||||
}
|
||||
}
|
||||
if (
|
||||
r(t, {
|
||||
errors: I + 1,
|
||||
currentLocation: g,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
}) > m
|
||||
)
|
||||
break;
|
||||
L = T;
|
||||
}
|
||||
return {
|
||||
isMatch: k >= 0,
|
||||
score: 0 === w ? 0.001 : w,
|
||||
matchedIndices: o(x, p),
|
||||
};
|
||||
};
|
||||
},
|
||||
function (e, t) {
|
||||
e.exports = function (e, t) {
|
||||
var n = t.errors,
|
||||
r = void 0 === n ? 0 : n,
|
||||
o = t.currentLocation,
|
||||
i = void 0 === o ? 0 : o,
|
||||
a = t.expectedLocation,
|
||||
s = void 0 === a ? 0 : a,
|
||||
c = t.distance,
|
||||
h = void 0 === c ? 100 : c,
|
||||
l = r / e.length,
|
||||
u = Math.abs(s - i);
|
||||
return h ? l + u / h : u ? 1 : l;
|
||||
};
|
||||
},
|
||||
function (e, t) {
|
||||
e.exports = function () {
|
||||
for (
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0]
|
||||
? arguments[0]
|
||||
: [],
|
||||
t =
|
||||
arguments.length > 1 && void 0 !== arguments[1]
|
||||
? arguments[1]
|
||||
: 1,
|
||||
n = [],
|
||||
r = -1,
|
||||
o = -1,
|
||||
i = 0,
|
||||
a = e.length;
|
||||
i < a;
|
||||
i += 1
|
||||
) {
|
||||
var s = e[i];
|
||||
s && -1 === r
|
||||
? (r = i)
|
||||
: s ||
|
||||
-1 === r ||
|
||||
((o = i - 1) - r + 1 >= t && n.push([r, o]), (r = -1));
|
||||
}
|
||||
return e[i - 1] && i - r >= t && n.push([r, i - 1]), n;
|
||||
};
|
||||
},
|
||||
function (e, t) {
|
||||
e.exports = function (e) {
|
||||
for (var t = {}, n = e.length, r = 0; r < n; r += 1) t[e.charAt(r)] = 0;
|
||||
for (var o = 0; o < n; o += 1) t[e.charAt(o)] |= 1 << (n - o - 1);
|
||||
return t;
|
||||
};
|
||||
},
|
||||
function (e, t, n) {
|
||||
var r = n(0);
|
||||
e.exports = function (e, t) {
|
||||
return (function e(t, n, o) {
|
||||
if (n) {
|
||||
var i = n.indexOf('.'),
|
||||
a = n,
|
||||
s = null;
|
||||
-1 !== i && ((a = n.slice(0, i)), (s = n.slice(i + 1)));
|
||||
var c = t[a];
|
||||
if (null != c)
|
||||
if (s || ('string' != typeof c && 'number' != typeof c))
|
||||
if (r(c))
|
||||
for (var h = 0, l = c.length; h < l; h += 1) e(c[h], s, o);
|
||||
else s && e(c, s, o);
|
||||
else o.push(c.toString());
|
||||
} else o.push(t);
|
||||
return o;
|
||||
})(e, t, []);
|
||||
};
|
||||
},
|
||||
]);
|
||||
});
|
||||
136
themes/agico-hugo/assets/plugins/search/search.js
Normal file
136
themes/agico-hugo/assets/plugins/search/search.js
Normal file
@@ -0,0 +1,136 @@
|
||||
summaryInclude = 100;
|
||||
var fuseOptions = {
|
||||
isCaseSensitive: false,
|
||||
includeScore: false,
|
||||
shouldSort: true,
|
||||
includeMatches: true,
|
||||
findAllMatches: false,
|
||||
minMatchCharLength: 3,
|
||||
location: 0,
|
||||
threshold: 0.5,
|
||||
distance: 50,
|
||||
useExtendedSearch: false,
|
||||
ignoreLocation: false,
|
||||
ignoreFieldNorm: false,
|
||||
keys: [{
|
||||
name: "title",
|
||||
weight: 0.8
|
||||
},
|
||||
{
|
||||
name: "tags",
|
||||
weight: 0.5
|
||||
},
|
||||
{
|
||||
name: "categories",
|
||||
weight: 0.5
|
||||
},
|
||||
{
|
||||
name: "contents",
|
||||
weight: 0.3
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
var searchQuery = param("s");
|
||||
if (searchQuery) {
|
||||
document.querySelector("#search-query").value = searchQuery
|
||||
executeSearch(searchQuery);
|
||||
}
|
||||
|
||||
function executeSearch(searchQuery) {
|
||||
fetch(indexURL)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
var pages = data;
|
||||
var fuse = new Fuse(pages, fuseOptions);
|
||||
var result = fuse.search(searchQuery);
|
||||
if (result.length > 0) {
|
||||
populateResults(result);
|
||||
} else {
|
||||
document.querySelector('#search-results').innerHTML = '<div class=\"text-center\"><img class=\"img-fluid mb-5\" src=\"https://user-images.githubusercontent.com/37659754/64060567-7cece400-cbf0-11e9-9cf9-abac3543ec1f.png" width=\"300\"><h3>No Search Found</h3></div>'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function populateResults(result) {
|
||||
result.forEach((value, key) => {
|
||||
var contents = value.item.contents;
|
||||
var snippet = "";
|
||||
var snippetHighlights = [];
|
||||
const matchValue = value.matches
|
||||
|
||||
matchValue.forEach((mvalue, matchKey) => {
|
||||
if (mvalue.key === "tags" || mvalue.key === "categories") {
|
||||
snippetHighlights.push(mvalue.value);
|
||||
} else if (mvalue.key == "contents") {
|
||||
start = mvalue.indices[0][0] - summaryInclude > 0 ? mvalue.indices[0][0] - summaryInclude : 0;
|
||||
end = mvalue.indices[0][1] + summaryInclude < contents.length ? mvalue.indices[0][1] + summaryInclude : contents.length;
|
||||
snippet += contents.substring(start, end);
|
||||
snippetHighlights.push(mvalue.value.substring(mvalue.indices[0][0], mvalue.indices[0][1] - mvalue.indices[0][0] + 1));
|
||||
}
|
||||
});
|
||||
|
||||
if (snippet.length < 1) {
|
||||
snippet += contents.substring(0, summaryInclude * 2);
|
||||
}
|
||||
//pull template from hugo templarte definition
|
||||
var templateDefinition = document.querySelector('#search-result-template').innerHTML;
|
||||
//replace values
|
||||
var output = render(templateDefinition, {
|
||||
key: key,
|
||||
title: value.item.title,
|
||||
image: value.item.image,
|
||||
date: value.item.date,
|
||||
link: value.item.permalink,
|
||||
tags: value.item.tags,
|
||||
categories: value.item.categories,
|
||||
snippet: snippet
|
||||
});
|
||||
// $('#search-results').append(output);
|
||||
const searchResults = document.querySelector('#search-results');
|
||||
searchResults.insertAdjacentHTML('beforeend', output);
|
||||
});
|
||||
}
|
||||
|
||||
function param(name) {
|
||||
return decodeURIComponent((location.search.split(name + '=')[1] || '').split('&')[0]).replace(/\+/g, ' ');
|
||||
}
|
||||
|
||||
function render(templateString, data) {
|
||||
var conditionalMatches, conditionalPattern, copy;
|
||||
conditionalPattern = /\$\{\s*isset ([a-zA-Z]*) \s*\}(.*)\$\{\s*end\s*}/g;
|
||||
//since loop below depends on re.lastInxdex, we use a copy to capture any manipulations whilst inside the loop
|
||||
copy = templateString;
|
||||
while ((conditionalMatches = conditionalPattern.exec(templateString)) !== null) {
|
||||
if (data[conditionalMatches[1]]) {
|
||||
//valid key, remove conditionals, leave contents.
|
||||
copy = copy.replace(conditionalMatches[0], conditionalMatches[2]);
|
||||
} else {
|
||||
//not valid, remove entire section
|
||||
copy = copy.replace(conditionalMatches[0], '');
|
||||
}
|
||||
}
|
||||
templateString = copy;
|
||||
//now any conditionals removed we can do simple substitution
|
||||
var key, find, re;
|
||||
for (key in data) {
|
||||
find = '\\$\\{\\s*' + key + '\\s*\\}';
|
||||
re = new RegExp(find, 'g');
|
||||
templateString = templateString.replace(re, data[key]);
|
||||
}
|
||||
return templateString;
|
||||
}
|
||||
|
||||
|
||||
// // Search Form Open
|
||||
// document.querySelector('#searchOpen').addEventListener('click', function () {
|
||||
// document.querySelector('.search-wrapper').classList.add('open')
|
||||
// setTimeout(function () {
|
||||
// document.querySelector('.search-box').focus();
|
||||
// }, 400);
|
||||
// });
|
||||
|
||||
// // Search Form close
|
||||
// document.querySelector('#searchClose').addEventListener('click', function () {
|
||||
// document.querySelector('.search-wrapper').classList.remove('open');
|
||||
// });
|
||||
624
themes/agico-hugo/assets/plugins/swiper/swiper.css
Normal file
624
themes/agico-hugo/assets/plugins/swiper/swiper.css
Normal file
@@ -0,0 +1,624 @@
|
||||
/**
|
||||
* Swiper 8.0.7
|
||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
||||
* https://swiperjs.com
|
||||
*
|
||||
* Copyright 2014-2022 Vladimir Kharlampidi
|
||||
*
|
||||
* Released under the MIT License
|
||||
*
|
||||
* Released on: March 4, 2022
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: 'swiper-icons';
|
||||
src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
:root {
|
||||
--swiper-theme-color: #007aff;
|
||||
}
|
||||
.swiper {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
/* Fix of Webkit flickering */
|
||||
z-index: 1;
|
||||
}
|
||||
.swiper-vertical > .swiper-wrapper {
|
||||
flex-direction: column;
|
||||
}
|
||||
.swiper-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
transition-property: transform;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
.swiper-android .swiper-slide,
|
||||
.swiper-wrapper {
|
||||
transform: translate3d(0px, 0, 0);
|
||||
}
|
||||
.swiper-pointer-events {
|
||||
touch-action: pan-y;
|
||||
}
|
||||
.swiper-pointer-events.swiper-vertical {
|
||||
touch-action: pan-x;
|
||||
}
|
||||
.swiper-slide {
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
transition-property: transform;
|
||||
}
|
||||
.swiper-slide-invisible-blank {
|
||||
visibility: hidden;
|
||||
}
|
||||
/* Auto Height */
|
||||
.swiper-autoheight,
|
||||
.swiper-autoheight .swiper-slide {
|
||||
height: auto;
|
||||
}
|
||||
.swiper-autoheight .swiper-wrapper {
|
||||
align-items: flex-start;
|
||||
transition-property: transform, height;
|
||||
}
|
||||
.swiper-backface-hidden .swiper-slide {
|
||||
transform: translateZ(0);
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
/* 3D Effects */
|
||||
.swiper-3d,
|
||||
.swiper-3d.swiper-css-mode .swiper-wrapper {
|
||||
perspective: 1200px;
|
||||
}
|
||||
.swiper-3d .swiper-wrapper,
|
||||
.swiper-3d .swiper-slide,
|
||||
.swiper-3d .swiper-slide-shadow,
|
||||
.swiper-3d .swiper-slide-shadow-left,
|
||||
.swiper-3d .swiper-slide-shadow-right,
|
||||
.swiper-3d .swiper-slide-shadow-top,
|
||||
.swiper-3d .swiper-slide-shadow-bottom,
|
||||
.swiper-3d .swiper-cube-shadow {
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow,
|
||||
.swiper-3d .swiper-slide-shadow-left,
|
||||
.swiper-3d .swiper-slide-shadow-right,
|
||||
.swiper-3d .swiper-slide-shadow-top,
|
||||
.swiper-3d .swiper-slide-shadow-bottom {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 10;
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow {
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-left {
|
||||
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-right {
|
||||
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-top {
|
||||
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-bottom {
|
||||
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
/* CSS Mode */
|
||||
.swiper-css-mode > .swiper-wrapper {
|
||||
overflow: auto;
|
||||
scrollbar-width: none;
|
||||
/* For Firefox */
|
||||
-ms-overflow-style: none;
|
||||
/* For Internet Explorer and Edge */
|
||||
}
|
||||
.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.swiper-css-mode > .swiper-wrapper > .swiper-slide {
|
||||
scroll-snap-align: start start;
|
||||
}
|
||||
.swiper-horizontal.swiper-css-mode > .swiper-wrapper {
|
||||
scroll-snap-type: x mandatory;
|
||||
}
|
||||
.swiper-vertical.swiper-css-mode > .swiper-wrapper {
|
||||
scroll-snap-type: y mandatory;
|
||||
}
|
||||
.swiper-centered > .swiper-wrapper::before {
|
||||
content: '';
|
||||
flex-shrink: 0;
|
||||
order: 9999;
|
||||
}
|
||||
.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
|
||||
margin-inline-start: var(--swiper-centered-offset-before);
|
||||
}
|
||||
.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
|
||||
height: 100%;
|
||||
min-height: 1px;
|
||||
width: var(--swiper-centered-offset-after);
|
||||
}
|
||||
.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
|
||||
margin-block-start: var(--swiper-centered-offset-before);
|
||||
}
|
||||
.swiper-centered.swiper-vertical > .swiper-wrapper::before {
|
||||
width: 100%;
|
||||
min-width: 1px;
|
||||
height: var(--swiper-centered-offset-after);
|
||||
}
|
||||
.swiper-centered > .swiper-wrapper > .swiper-slide {
|
||||
scroll-snap-align: center center;
|
||||
}
|
||||
.swiper-virtual .swiper-slide {
|
||||
-webkit-backface-visibility: hidden;
|
||||
transform: translateZ(0);
|
||||
}
|
||||
.swiper-virtual.swiper-css-mode .swiper-wrapper::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after {
|
||||
height: 1px;
|
||||
width: var(--swiper-virtual-size);
|
||||
}
|
||||
.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after {
|
||||
width: 1px;
|
||||
height: var(--swiper-virtual-size);
|
||||
}
|
||||
:root {
|
||||
--swiper-navigation-size: 44px;
|
||||
/*
|
||||
--swiper-navigation-color: var(--swiper-theme-color);
|
||||
*/
|
||||
}
|
||||
.swiper-button-prev,
|
||||
.swiper-button-next {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: calc(var(--swiper-navigation-size) / 44 * 27);
|
||||
height: var(--swiper-navigation-size);
|
||||
margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
|
||||
z-index: 10;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--swiper-navigation-color, var(--swiper-theme-color));
|
||||
}
|
||||
.swiper-button-prev.swiper-button-disabled,
|
||||
.swiper-button-next.swiper-button-disabled {
|
||||
opacity: 0.35;
|
||||
cursor: auto;
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-button-prev:after,
|
||||
.swiper-button-next:after {
|
||||
font-family: swiper-icons;
|
||||
font-size: var(--swiper-navigation-size);
|
||||
text-transform: none !important;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
font-variant: initial;
|
||||
line-height: 1;
|
||||
}
|
||||
.swiper-button-prev,
|
||||
.swiper-rtl .swiper-button-next {
|
||||
left: 10px;
|
||||
right: auto;
|
||||
}
|
||||
.swiper-button-prev:after,
|
||||
.swiper-rtl .swiper-button-next:after {
|
||||
content: 'prev';
|
||||
}
|
||||
.swiper-button-next,
|
||||
.swiper-rtl .swiper-button-prev {
|
||||
right: 10px;
|
||||
left: auto;
|
||||
}
|
||||
.swiper-button-next:after,
|
||||
.swiper-rtl .swiper-button-prev:after {
|
||||
content: 'next';
|
||||
}
|
||||
.swiper-button-lock {
|
||||
display: none;
|
||||
}
|
||||
:root {
|
||||
/*
|
||||
--swiper-pagination-color: var(--swiper-theme-color);
|
||||
--swiper-pagination-bullet-size: 8px;
|
||||
--swiper-pagination-bullet-width: 8px;
|
||||
--swiper-pagination-bullet-height: 8px;
|
||||
--swiper-pagination-bullet-inactive-color: #000;
|
||||
--swiper-pagination-bullet-inactive-opacity: 0.2;
|
||||
--swiper-pagination-bullet-opacity: 1;
|
||||
--swiper-pagination-bullet-horizontal-gap: 4px;
|
||||
--swiper-pagination-bullet-vertical-gap: 6px;
|
||||
*/
|
||||
}
|
||||
.swiper-pagination {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
transition: 300ms opacity;
|
||||
transform: translate3d(0, 0, 0);
|
||||
z-index: 10;
|
||||
}
|
||||
.swiper-pagination.swiper-pagination-hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
/* Common Styles */
|
||||
.swiper-pagination-fraction,
|
||||
.swiper-pagination-custom,
|
||||
.swiper-horizontal > .swiper-pagination-bullets,
|
||||
.swiper-pagination-bullets.swiper-pagination-horizontal {
|
||||
bottom: 10px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
/* Bullets */
|
||||
.swiper-pagination-bullets-dynamic {
|
||||
overflow: hidden;
|
||||
font-size: 0;
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transform: scale(0.33);
|
||||
position: relative;
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
|
||||
transform: scale(1);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
|
||||
transform: scale(1);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
|
||||
transform: scale(0.66);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
|
||||
transform: scale(0.33);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
|
||||
transform: scale(0.66);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
|
||||
transform: scale(0.33);
|
||||
}
|
||||
.swiper-pagination-bullet {
|
||||
width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
|
||||
height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
background: var(--swiper-pagination-bullet-inactive-color, #000);
|
||||
opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
|
||||
}
|
||||
button.swiper-pagination-bullet {
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
.swiper-pagination-clickable .swiper-pagination-bullet {
|
||||
cursor: pointer;
|
||||
}
|
||||
.swiper-pagination-bullet:only-child {
|
||||
display: none !important;
|
||||
}
|
||||
.swiper-pagination-bullet-active {
|
||||
opacity: var(--swiper-pagination-bullet-opacity, 1);
|
||||
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets {
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translate3d(0px, -50%, 0);
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets .swiper-pagination-bullet,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet {
|
||||
margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
|
||||
display: block;
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 8px;
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
display: inline-block;
|
||||
transition: 200ms transform, 200ms top;
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
|
||||
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
|
||||
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
|
||||
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
|
||||
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transition: 200ms transform, 200ms left;
|
||||
}
|
||||
.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transition: 200ms transform, 200ms right;
|
||||
}
|
||||
/* Progress */
|
||||
.swiper-pagination-progressbar {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
position: absolute;
|
||||
}
|
||||
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
|
||||
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: scale(0);
|
||||
transform-origin: left top;
|
||||
}
|
||||
.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
|
||||
transform-origin: right top;
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-progressbar,
|
||||
.swiper-pagination-progressbar.swiper-pagination-horizontal,
|
||||
.swiper-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
|
||||
.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-progressbar,
|
||||
.swiper-pagination-progressbar.swiper-pagination-vertical,
|
||||
.swiper-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
|
||||
.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-pagination-lock {
|
||||
display: none;
|
||||
}
|
||||
/* Scrollbar */
|
||||
.swiper-scrollbar {
|
||||
border-radius: 10px;
|
||||
position: relative;
|
||||
-ms-touch-action: none;
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.swiper-horizontal > .swiper-scrollbar {
|
||||
position: absolute;
|
||||
left: 1%;
|
||||
bottom: 3px;
|
||||
z-index: 50;
|
||||
height: 5px;
|
||||
width: 98%;
|
||||
}
|
||||
.swiper-vertical > .swiper-scrollbar {
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 1%;
|
||||
z-index: 50;
|
||||
width: 5px;
|
||||
height: 98%;
|
||||
}
|
||||
.swiper-scrollbar-drag {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-scrollbar-cursor-drag {
|
||||
cursor: move;
|
||||
}
|
||||
.swiper-scrollbar-lock {
|
||||
display: none;
|
||||
}
|
||||
.swiper-zoom-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.swiper-zoom-container > img,
|
||||
.swiper-zoom-container > svg,
|
||||
.swiper-zoom-container > canvas {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
.swiper-slide-zoomed {
|
||||
cursor: move;
|
||||
}
|
||||
/* Preloader */
|
||||
:root {
|
||||
/*
|
||||
--swiper-preloader-color: var(--swiper-theme-color);
|
||||
*/
|
||||
}
|
||||
.swiper-lazy-preloader {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -21px;
|
||||
margin-top: -21px;
|
||||
z-index: 10;
|
||||
transform-origin: 50%;
|
||||
box-sizing: border-box;
|
||||
border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
|
||||
border-radius: 50%;
|
||||
border-top-color: transparent;
|
||||
}
|
||||
.swiper-slide-visible .swiper-lazy-preloader {
|
||||
animation: swiper-preloader-spin 1s infinite linear;
|
||||
}
|
||||
.swiper-lazy-preloader-white {
|
||||
--swiper-preloader-color: #fff;
|
||||
}
|
||||
.swiper-lazy-preloader-black {
|
||||
--swiper-preloader-color: #000;
|
||||
}
|
||||
@keyframes swiper-preloader-spin {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* a11y */
|
||||
.swiper .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000;
|
||||
}
|
||||
.swiper-free-mode > .swiper-wrapper {
|
||||
transition-timing-function: ease-out;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.swiper-grid > .swiper-wrapper {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.swiper-grid-column > .swiper-wrapper {
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
}
|
||||
.swiper-fade.swiper-free-mode .swiper-slide {
|
||||
transition-timing-function: ease-out;
|
||||
}
|
||||
.swiper-fade .swiper-slide {
|
||||
pointer-events: none;
|
||||
transition-property: opacity;
|
||||
}
|
||||
.swiper-fade .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-fade .swiper-slide-active,
|
||||
.swiper-fade .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-cube {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-cube .swiper-slide {
|
||||
pointer-events: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
z-index: 1;
|
||||
visibility: hidden;
|
||||
transform-origin: 0 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.swiper-cube .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-cube.swiper-rtl .swiper-slide {
|
||||
transform-origin: 100% 0;
|
||||
}
|
||||
.swiper-cube .swiper-slide-active,
|
||||
.swiper-cube .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-cube .swiper-slide-active,
|
||||
.swiper-cube .swiper-slide-next,
|
||||
.swiper-cube .swiper-slide-prev,
|
||||
.swiper-cube .swiper-slide-next + .swiper-slide {
|
||||
pointer-events: auto;
|
||||
visibility: visible;
|
||||
}
|
||||
.swiper-cube .swiper-slide-shadow-top,
|
||||
.swiper-cube .swiper-slide-shadow-bottom,
|
||||
.swiper-cube .swiper-slide-shadow-left,
|
||||
.swiper-cube .swiper-slide-shadow-right {
|
||||
z-index: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
.swiper-cube .swiper-cube-shadow {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0.6;
|
||||
z-index: 0;
|
||||
}
|
||||
.swiper-cube .swiper-cube-shadow:before {
|
||||
content: '';
|
||||
background: #000;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
filter: blur(50px);
|
||||
}
|
||||
.swiper-flip {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-flip .swiper-slide {
|
||||
pointer-events: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
.swiper-flip .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-flip .swiper-slide-active,
|
||||
.swiper-flip .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-flip .swiper-slide-shadow-top,
|
||||
.swiper-flip .swiper-slide-shadow-bottom,
|
||||
.swiper-flip .swiper-slide-shadow-left,
|
||||
.swiper-flip .swiper-slide-shadow-right {
|
||||
z-index: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
.swiper-creative .swiper-slide {
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
transition-property: transform, opacity, height;
|
||||
}
|
||||
.swiper-cards {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-cards .swiper-slide {
|
||||
transform-origin: center bottom;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
14
themes/agico-hugo/assets/plugins/swiper/swiper.min.js
vendored
Normal file
14
themes/agico-hugo/assets/plugins/swiper/swiper.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
735
themes/agico-hugo/assets/plugins/webfont/webfont-loader-2.js
Normal file
735
themes/agico-hugo/assets/plugins/webfont/webfont-loader-2.js
Normal file
@@ -0,0 +1,735 @@
|
||||
/* Web Font Loader v1.6.28 - (c) Adobe Systems, Google. License: Apache 2.0 */
|
||||
(function () {
|
||||
function aa(a, b, c) {
|
||||
return a.call.apply(a.bind, arguments)
|
||||
}
|
||||
|
||||
function ba(a, b, c) {
|
||||
if (!a) throw Error();
|
||||
if (2 < arguments.length) {
|
||||
var d = Array.prototype.slice.call(arguments, 2);
|
||||
return function () {
|
||||
var c = Array.prototype.slice.call(arguments);
|
||||
Array.prototype.unshift.apply(c, d);
|
||||
return a.apply(b, c)
|
||||
}
|
||||
}
|
||||
return function () {
|
||||
return a.apply(b, arguments)
|
||||
}
|
||||
}
|
||||
|
||||
function p(a, b, c) {
|
||||
p = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? aa : ba;
|
||||
return p.apply(null, arguments)
|
||||
}
|
||||
var q = Date.now || function () {
|
||||
return +new Date
|
||||
};
|
||||
|
||||
function ca(a, b) {
|
||||
this.a = a;
|
||||
this.s = b || a;
|
||||
this.c = this.s.document
|
||||
}
|
||||
var da = !!window.FontFace;
|
||||
|
||||
function t(a, b, c, d) {
|
||||
b = a.c.createElement(b);
|
||||
if (c)
|
||||
for (var e in c) c.hasOwnProperty(e) && ("style" == e ? b.style.cssText = c[e] : b.setAttribute(e, c[e]));
|
||||
d && b.appendChild(a.c.createTextNode(d));
|
||||
return b
|
||||
}
|
||||
|
||||
function u(a, b, c) {
|
||||
a = a.c.getElementsByTagName(b)[0];
|
||||
a || (a = document.documentElement);
|
||||
a.insertBefore(c, a.lastChild)
|
||||
}
|
||||
|
||||
function v(a) {
|
||||
a.parentNode && a.parentNode.removeChild(a)
|
||||
}
|
||||
|
||||
function w(a, b, c) {
|
||||
b = b || [];
|
||||
c = c || [];
|
||||
for (var d = a.className.split(/\s+/), e = 0; e < b.length; e += 1) {
|
||||
for (var f = !1, g = 0; g < d.length; g += 1)
|
||||
if (b[e] === d[g]) {
|
||||
f = !0;
|
||||
break
|
||||
} f || d.push(b[e])
|
||||
}
|
||||
b = [];
|
||||
for (e = 0; e < d.length; e += 1) {
|
||||
f = !1;
|
||||
for (g = 0; g < c.length; g += 1)
|
||||
if (d[e] === c[g]) {
|
||||
f = !0;
|
||||
break
|
||||
} f || b.push(d[e])
|
||||
}
|
||||
a.className = b.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "")
|
||||
}
|
||||
|
||||
function y(a, b) {
|
||||
for (var c = a.className.split(/\s+/), d = 0, e = c.length; d < e; d++)
|
||||
if (c[d] == b) return !0;
|
||||
return !1
|
||||
}
|
||||
|
||||
function ea(a) {
|
||||
return a.s.location.hostname || a.a.location.hostname
|
||||
}
|
||||
|
||||
function z(a, b, c) {
|
||||
function d() {
|
||||
m && e && f && (m(g), m = null)
|
||||
}
|
||||
b = t(a, "link", {
|
||||
rel: "stylesheet",
|
||||
href: b,
|
||||
media: "all"
|
||||
});
|
||||
var e = !1,
|
||||
f = !0,
|
||||
g = null,
|
||||
m = c || null;
|
||||
da ? (b.onload = function () {
|
||||
e = !0;
|
||||
d()
|
||||
}, b.onerror = function () {
|
||||
e = !0;
|
||||
g = Error("Stylesheet failed to load");
|
||||
d()
|
||||
}) : setTimeout(function () {
|
||||
e = !0;
|
||||
d()
|
||||
}, 0);
|
||||
u(a, "head", b)
|
||||
}
|
||||
|
||||
function A(a, b, c, d) {
|
||||
var e = a.c.getElementsByTagName("head")[0];
|
||||
if (e) {
|
||||
var f = t(a, "script", {
|
||||
src: b
|
||||
}),
|
||||
g = !1;
|
||||
f.onload = f.onreadystatechange = function () {
|
||||
g || this.readyState && "loaded" != this.readyState && "complete" != this.readyState || (g = !0, c && c(null), f.onload = f.onreadystatechange = null, "HEAD" == f.parentNode.tagName && e.removeChild(f))
|
||||
};
|
||||
e.appendChild(f);
|
||||
setTimeout(function () {
|
||||
g || (g = !0, c && c(Error("Script load timeout")))
|
||||
}, d || 5E3);
|
||||
return f
|
||||
}
|
||||
return null
|
||||
};
|
||||
|
||||
function B() {
|
||||
this.a = 0;
|
||||
this.c = null
|
||||
}
|
||||
|
||||
function C(a) {
|
||||
a.a++;
|
||||
return function () {
|
||||
a.a--;
|
||||
D(a)
|
||||
}
|
||||
}
|
||||
|
||||
function E(a, b) {
|
||||
a.c = b;
|
||||
D(a)
|
||||
}
|
||||
|
||||
function D(a) {
|
||||
0 == a.a && a.c && (a.c(), a.c = null)
|
||||
};
|
||||
|
||||
function F(a) {
|
||||
this.a = a || "-"
|
||||
}
|
||||
F.prototype.c = function (a) {
|
||||
for (var b = [], c = 0; c < arguments.length; c++) b.push(arguments[c].replace(/[\W_]+/g, "").toLowerCase());
|
||||
return b.join(this.a)
|
||||
};
|
||||
|
||||
function G(a, b) {
|
||||
this.c = a;
|
||||
this.f = 4;
|
||||
this.a = "n";
|
||||
var c = (b || "n4").match(/^([nio])([1-9])$/i);
|
||||
c && (this.a = c[1], this.f = parseInt(c[2], 10))
|
||||
}
|
||||
|
||||
function fa(a) {
|
||||
return H(a) + " " + (a.f + "00") + " 300px " + I(a.c)
|
||||
}
|
||||
|
||||
function I(a) {
|
||||
var b = [];
|
||||
a = a.split(/,\s*/);
|
||||
for (var c = 0; c < a.length; c++) {
|
||||
var d = a[c].replace(/['"]/g, ""); - 1 != d.indexOf(" ") || /^\d/.test(d) ? b.push("'" + d + "'") : b.push(d)
|
||||
}
|
||||
return b.join(",")
|
||||
}
|
||||
|
||||
function J(a) {
|
||||
return a.a + a.f
|
||||
}
|
||||
|
||||
function H(a) {
|
||||
var b = "normal";
|
||||
"o" === a.a ? b = "oblique" : "i" === a.a && (b = "italic");
|
||||
return b
|
||||
}
|
||||
|
||||
function ga(a) {
|
||||
var b = 4,
|
||||
c = "n",
|
||||
d = null;
|
||||
a && ((d = a.match(/(normal|oblique|italic)/i)) && d[1] && (c = d[1].substr(0, 1).toLowerCase()), (d = a.match(/([1-9]00|normal|bold)/i)) && d[1] && (/bold/i.test(d[1]) ? b = 7 : /[1-9]00/.test(d[1]) && (b = parseInt(d[1].substr(0, 1), 10))));
|
||||
return c + b
|
||||
};
|
||||
|
||||
function ha(a, b) {
|
||||
this.c = a;
|
||||
this.f = a.s.document.documentElement;
|
||||
this.h = b;
|
||||
this.a = new F("-");
|
||||
this.j = !1 !== b.events;
|
||||
this.g = !1 !== b.classes
|
||||
}
|
||||
|
||||
function ia(a) {
|
||||
a.g && w(a.f, [a.a.c("wf", "loading")]);
|
||||
K(a, "loading")
|
||||
}
|
||||
|
||||
function L(a) {
|
||||
if (a.g) {
|
||||
var b = y(a.f, a.a.c("wf", "active")),
|
||||
c = [],
|
||||
d = [a.a.c("wf", "loading")];
|
||||
b || c.push(a.a.c("wf", "inactive"));
|
||||
w(a.f, c, d)
|
||||
}
|
||||
K(a, "inactive")
|
||||
}
|
||||
|
||||
function K(a, b, c) {
|
||||
if (a.j && a.h[b])
|
||||
if (c) a.h[b](c.c, J(c));
|
||||
else a.h[b]()
|
||||
};
|
||||
|
||||
function ja() {
|
||||
this.c = {}
|
||||
}
|
||||
|
||||
function ka(a, b, c) {
|
||||
var d = [],
|
||||
e;
|
||||
for (e in b)
|
||||
if (b.hasOwnProperty(e)) {
|
||||
var f = a.c[e];
|
||||
f && d.push(f(b[e], c))
|
||||
} return d
|
||||
};
|
||||
|
||||
function M(a, b) {
|
||||
this.c = a;
|
||||
this.f = b;
|
||||
this.a = t(this.c, "span", {
|
||||
"aria-hidden": "true"
|
||||
}, this.f)
|
||||
}
|
||||
|
||||
function N(a) {
|
||||
u(a.c, "body", a.a)
|
||||
}
|
||||
|
||||
function O(a) {
|
||||
return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + I(a.c) + ";" + ("font-style:" + H(a) + ";font-weight:" + (a.f + "00") + ";")
|
||||
};
|
||||
|
||||
function P(a, b, c, d, e, f) {
|
||||
this.g = a;
|
||||
this.j = b;
|
||||
this.a = d;
|
||||
this.c = c;
|
||||
this.f = e || 3E3;
|
||||
this.h = f || void 0
|
||||
}
|
||||
P.prototype.start = function () {
|
||||
var a = this.c.s.document,
|
||||
b = this,
|
||||
c = q(),
|
||||
d = new Promise(function (d, e) {
|
||||
function f() {
|
||||
q() - c >= b.f ? e() : a.fonts.load(fa(b.a), b.h).then(function (a) {
|
||||
1 <= a.length ? d() : setTimeout(f, 25)
|
||||
}, function () {
|
||||
e()
|
||||
})
|
||||
}
|
||||
f()
|
||||
}),
|
||||
e = null,
|
||||
f = new Promise(function (a, d) {
|
||||
e = setTimeout(d, b.f)
|
||||
});
|
||||
Promise.race([f, d]).then(function () {
|
||||
e && (clearTimeout(e), e = null);
|
||||
b.g(b.a)
|
||||
}, function () {
|
||||
b.j(b.a)
|
||||
})
|
||||
};
|
||||
|
||||
function Q(a, b, c, d, e, f, g) {
|
||||
this.v = a;
|
||||
this.B = b;
|
||||
this.c = c;
|
||||
this.a = d;
|
||||
this.o = g || "BESbswy";
|
||||
this.f = {};
|
||||
this.w = e || 3E3;
|
||||
this.u = f || null;
|
||||
this.m = this.j = this.h = this.g = null;
|
||||
this.g = new M(this.c, this.o);
|
||||
this.h = new M(this.c, this.o);
|
||||
this.j = new M(this.c, this.o);
|
||||
this.m = new M(this.c, this.o);
|
||||
a = new G(this.a.c + ",serif", J(this.a));
|
||||
a = O(a);
|
||||
this.g.a.style.cssText = a;
|
||||
a = new G(this.a.c + ",sans-serif", J(this.a));
|
||||
a = O(a);
|
||||
this.h.a.style.cssText = a;
|
||||
a = new G("serif", J(this.a));
|
||||
a = O(a);
|
||||
this.j.a.style.cssText = a;
|
||||
a = new G("sans-serif", J(this.a));
|
||||
a =
|
||||
O(a);
|
||||
this.m.a.style.cssText = a;
|
||||
N(this.g);
|
||||
N(this.h);
|
||||
N(this.j);
|
||||
N(this.m)
|
||||
}
|
||||
var R = {
|
||||
D: "serif",
|
||||
C: "sans-serif"
|
||||
},
|
||||
S = null;
|
||||
|
||||
function T() {
|
||||
if (null === S) {
|
||||
var a = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgentData);
|
||||
S = !!a && (536 > parseInt(a[1], 10) || 536 === parseInt(a[1], 10) && 11 >= parseInt(a[2], 10))
|
||||
}
|
||||
return S
|
||||
}
|
||||
Q.prototype.start = function () {
|
||||
this.f.serif = this.j.a.offsetWidth;
|
||||
this.f["sans-serif"] = this.m.a.offsetWidth;
|
||||
this.A = q();
|
||||
U(this)
|
||||
};
|
||||
|
||||
function la(a, b, c) {
|
||||
for (var d in R)
|
||||
if (R.hasOwnProperty(d) && b === a.f[R[d]] && c === a.f[R[d]]) return !0;
|
||||
return !1
|
||||
}
|
||||
|
||||
function U(a) {
|
||||
var b = a.g.a.offsetWidth,
|
||||
c = a.h.a.offsetWidth,
|
||||
d;
|
||||
(d = b === a.f.serif && c === a.f["sans-serif"]) || (d = T() && la(a, b, c));
|
||||
d ? q() - a.A >= a.w ? T() && la(a, b, c) && (null === a.u || a.u.hasOwnProperty(a.a.c)) ? V(a, a.v) : V(a, a.B) : ma(a) : V(a, a.v)
|
||||
}
|
||||
|
||||
function ma(a) {
|
||||
setTimeout(p(function () {
|
||||
U(this)
|
||||
}, a), 50)
|
||||
}
|
||||
|
||||
function V(a, b) {
|
||||
setTimeout(p(function () {
|
||||
v(this.g.a);
|
||||
v(this.h.a);
|
||||
v(this.j.a);
|
||||
v(this.m.a);
|
||||
b(this.a)
|
||||
}, a), 0)
|
||||
};
|
||||
|
||||
function W(a, b, c) {
|
||||
this.c = a;
|
||||
this.a = b;
|
||||
this.f = 0;
|
||||
this.m = this.j = !1;
|
||||
this.o = c
|
||||
}
|
||||
var X = null;
|
||||
W.prototype.g = function (a) {
|
||||
var b = this.a;
|
||||
b.g && w(b.f, [b.a.c("wf", a.c, J(a).toString(), "active")], [b.a.c("wf", a.c, J(a).toString(), "loading"), b.a.c("wf", a.c, J(a).toString(), "inactive")]);
|
||||
K(b, "fontactive", a);
|
||||
this.m = !0;
|
||||
na(this)
|
||||
};
|
||||
W.prototype.h = function (a) {
|
||||
var b = this.a;
|
||||
if (b.g) {
|
||||
var c = y(b.f, b.a.c("wf", a.c, J(a).toString(), "active")),
|
||||
d = [],
|
||||
e = [b.a.c("wf", a.c, J(a).toString(), "loading")];
|
||||
c || d.push(b.a.c("wf", a.c, J(a).toString(), "inactive"));
|
||||
w(b.f, d, e)
|
||||
}
|
||||
K(b, "fontinactive", a);
|
||||
na(this)
|
||||
};
|
||||
|
||||
function na(a) {
|
||||
0 == --a.f && a.j && (a.m ? (a = a.a, a.g && w(a.f, [a.a.c("wf", "active")], [a.a.c("wf", "loading"), a.a.c("wf", "inactive")]), K(a, "active")) : L(a.a))
|
||||
};
|
||||
|
||||
function oa(a) {
|
||||
this.j = a;
|
||||
this.a = new ja;
|
||||
this.h = 0;
|
||||
this.f = this.g = !0
|
||||
}
|
||||
oa.prototype.load = function (a) {
|
||||
this.c = new ca(this.j, a.context || this.j);
|
||||
this.g = !1 !== a.events;
|
||||
this.f = !1 !== a.classes;
|
||||
pa(this, new ha(this.c, a), a)
|
||||
};
|
||||
|
||||
function qa(a, b, c, d, e) {
|
||||
var f = 0 == --a.h;
|
||||
(a.f || a.g) && setTimeout(function () {
|
||||
var a = e || null,
|
||||
m = d || null || {};
|
||||
if (0 === c.length && f) L(b.a);
|
||||
else {
|
||||
b.f += c.length;
|
||||
f && (b.j = f);
|
||||
var h, l = [];
|
||||
for (h = 0; h < c.length; h++) {
|
||||
var k = c[h],
|
||||
n = m[k.c],
|
||||
r = b.a,
|
||||
x = k;
|
||||
r.g && w(r.f, [r.a.c("wf", x.c, J(x).toString(), "loading")]);
|
||||
K(r, "fontloading", x);
|
||||
r = null;
|
||||
if (null === X)
|
||||
if (window.FontFace) {
|
||||
var x = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgentData),
|
||||
xa = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgentData) && /Apple/.exec(window.navigator.vendor);
|
||||
X = x ? 42 < parseInt(x[1], 10) : xa ? !1 : !0
|
||||
} else X = !1;
|
||||
X ? r = new P(p(b.g, b), p(b.h, b), b.c, k, b.o, n) : r = new Q(p(b.g, b), p(b.h, b), b.c, k, b.o, a, n);
|
||||
l.push(r)
|
||||
}
|
||||
for (h = 0; h < l.length; h++) l[h].start()
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
|
||||
function pa(a, b, c) {
|
||||
var d = [],
|
||||
e = c.timeout;
|
||||
ia(b);
|
||||
var d = ka(a.a, c, a.c),
|
||||
f = new W(a.c, b, e);
|
||||
a.h = d.length;
|
||||
b = 0;
|
||||
for (c = d.length; b < c; b++) d[b].load(function (b, d, c) {
|
||||
qa(a, f, b, d, c)
|
||||
})
|
||||
};
|
||||
|
||||
function ra(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
ra.prototype.load = function (a) {
|
||||
function b() {
|
||||
if (f["__mti_fntLst" + d]) {
|
||||
var c = f["__mti_fntLst" + d](),
|
||||
e = [],
|
||||
h;
|
||||
if (c)
|
||||
for (var l = 0; l < c.length; l++) {
|
||||
var k = c[l].fontfamily;
|
||||
void 0 != c[l].fontStyle && void 0 != c[l].fontWeight ? (h = c[l].fontStyle + c[l].fontWeight, e.push(new G(k, h))) : e.push(new G(k))
|
||||
}
|
||||
a(e)
|
||||
} else setTimeout(function () {
|
||||
b()
|
||||
}, 50)
|
||||
}
|
||||
var c = this,
|
||||
d = c.a.projectId,
|
||||
e = c.a.version;
|
||||
if (d) {
|
||||
var f = c.c.s;
|
||||
A(this.c, (c.a.api || "https://fast.fonts.net/jsapi") + "/" + d + ".js" + (e ? "?v=" + e : ""), function (e) {
|
||||
e ? a([]) : (f["__MonotypeConfiguration__" +
|
||||
d] = function () {
|
||||
return c.a
|
||||
}, b())
|
||||
}).id = "__MonotypeAPIScript__" + d
|
||||
} else a([])
|
||||
};
|
||||
|
||||
function sa(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
sa.prototype.load = function (a) {
|
||||
var b, c, d = this.a.urls || [],
|
||||
e = this.a.families || [],
|
||||
f = this.a.testStrings || {},
|
||||
g = new B;
|
||||
b = 0;
|
||||
for (c = d.length; b < c; b++) z(this.c, d[b], C(g));
|
||||
var m = [];
|
||||
b = 0;
|
||||
for (c = e.length; b < c; b++)
|
||||
if (d = e[b].split(":"), d[1])
|
||||
for (var h = d[1].split(","), l = 0; l < h.length; l += 1) m.push(new G(d[0], h[l]));
|
||||
else m.push(new G(d[0]));
|
||||
E(g, function () {
|
||||
a(m, f)
|
||||
})
|
||||
};
|
||||
|
||||
function ta(a, b, c, d, e) {
|
||||
this.o = 2 === e ? 2 : 1;
|
||||
e = ua[this.o - 1];
|
||||
a ? this.c = a : this.c = e[0];
|
||||
this.m = e[1];
|
||||
this.a = [];
|
||||
this.f = [];
|
||||
this.j = b || "";
|
||||
this.g = c || "";
|
||||
this.h = d || ""
|
||||
}
|
||||
var ua = [
|
||||
["https://fonts.googleapis.com/css", "%7C"],
|
||||
["https://fonts.googleapis.com/css2", "&family="]
|
||||
];
|
||||
|
||||
function va(a, b) {
|
||||
for (var c = b.length, d = 0; d < c; d++) {
|
||||
var e = b[d].split(":");
|
||||
3 == e.length && a.f.push(e.pop());
|
||||
var f = "";
|
||||
2 == e.length && "" != e[1] && (f = ":");
|
||||
a.a.push(e.join(f))
|
||||
}
|
||||
}
|
||||
|
||||
function wa(a) {
|
||||
if (0 == a.a.length) throw Error("No fonts to load!");
|
||||
if (-1 != a.c.indexOf("kit=")) return a.c;
|
||||
for (var b = a.a.length, c = [], d = 0; d < b; d++) c.push(a.a[d].replace(/ /g, "+"));
|
||||
b = a.c + "?family=" + c.join(a.m);
|
||||
0 < a.f.length && (b += "&subset=" + a.f.join(","));
|
||||
0 < a.j.length && (b += "&text=" + encodeURIComponent(a.j));
|
||||
0 < a.g.length && (b += "&display=" + encodeURIComponent(a.g));
|
||||
0 < a.h.length && (b += "&effect=" + encodeURIComponent(a.h));
|
||||
return b
|
||||
};
|
||||
|
||||
function ya(a) {
|
||||
this.f = a;
|
||||
this.a = [];
|
||||
this.c = {}
|
||||
}
|
||||
var za = {
|
||||
latin: "BESbswy",
|
||||
"latin-ext": "\u00e7\u00f6\u00fc\u011f\u015f",
|
||||
cyrillic: "\u0439\u044f\u0416",
|
||||
greek: "\u03b1\u03b2\u03a3",
|
||||
khmer: "\u1780\u1781\u1782",
|
||||
Hanuman: "\u1780\u1781\u1782"
|
||||
},
|
||||
Aa = {
|
||||
thin: "1",
|
||||
extralight: "2",
|
||||
"extra-light": "2",
|
||||
ultralight: "2",
|
||||
"ultra-light": "2",
|
||||
light: "3",
|
||||
regular: "4",
|
||||
book: "4",
|
||||
medium: "5",
|
||||
"semi-bold": "6",
|
||||
semibold: "6",
|
||||
"demi-bold": "6",
|
||||
demibold: "6",
|
||||
bold: "7",
|
||||
"extra-bold": "8",
|
||||
extrabold: "8",
|
||||
"ultra-bold": "8",
|
||||
ultrabold: "8",
|
||||
black: "9",
|
||||
heavy: "9",
|
||||
l: "3",
|
||||
r: "4",
|
||||
b: "7"
|
||||
},
|
||||
Ba = {
|
||||
i: "i",
|
||||
italic: "i",
|
||||
n: "n",
|
||||
normal: "n"
|
||||
},
|
||||
Ca = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
|
||||
|
||||
function Da(a) {
|
||||
for (var b = a.f.length, c = 0; c < b; c++) {
|
||||
var d = a.f[c].split(":"),
|
||||
e = d[0].replace(/\+/g, " "),
|
||||
f = ["n4"];
|
||||
if (2 <= d.length) {
|
||||
var g;
|
||||
var m = d[1];
|
||||
g = [];
|
||||
if (m)
|
||||
for (var m = m.split(","), h = m.length, l = 0; l < h; l++) {
|
||||
var k;
|
||||
k = m[l];
|
||||
if (k.match(/^[\w-]+$/)) {
|
||||
var n = Ca.exec(k.toLowerCase());
|
||||
if (null == n) k = "";
|
||||
else {
|
||||
k = n[2];
|
||||
k = null == k || "" == k ? "n" : Ba[k];
|
||||
n = n[1];
|
||||
if (null == n || "" == n) n = "4";
|
||||
else var r = Aa[n],
|
||||
n = r ? r : isNaN(n) ? "4" : n.substr(0, 1);
|
||||
k = [k, n].join("")
|
||||
}
|
||||
} else k = "";
|
||||
k && g.push(k)
|
||||
}
|
||||
0 < g.length && (f = g);
|
||||
3 == d.length && (d = d[2], g = [], d = d ? d.split(",") :
|
||||
g, 0 < d.length && (d = za[d[0]]) && (a.c[e] = d))
|
||||
}
|
||||
a.c[e] || (d = za[e]) && (a.c[e] = d);
|
||||
for (d = 0; d < f.length; d += 1) a.a.push(new G(e, f[d]))
|
||||
}
|
||||
};
|
||||
|
||||
function Ea(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
var Fa = {
|
||||
Arimo: !0,
|
||||
Cousine: !0,
|
||||
Tinos: !0
|
||||
};
|
||||
Ea.prototype.load = function (a) {
|
||||
var b = new B,
|
||||
c = this.c,
|
||||
d = new ta(this.a.api, this.a.text, this.a.display, this.a.effect, this.a.version),
|
||||
e = this.a.families;
|
||||
va(d, e);
|
||||
var f = new ya(e);
|
||||
Da(f);
|
||||
z(c, wa(d), C(b));
|
||||
E(b, function () {
|
||||
a(f.a, f.c, Fa)
|
||||
})
|
||||
};
|
||||
|
||||
function Ga(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
Ga.prototype.load = function (a) {
|
||||
var b = this.a.id,
|
||||
c = this.c.s;
|
||||
b ? A(this.c, (this.a.api || "https://use.typekit.net") + "/" + b + ".js", function (b) {
|
||||
if (b) a([]);
|
||||
else if (c.Typekit && c.Typekit.config && c.Typekit.config.fn) {
|
||||
b = c.Typekit.config.fn;
|
||||
for (var e = [], f = 0; f < b.length; f += 2)
|
||||
for (var g = b[f], m = b[f + 1], h = 0; h < m.length; h++) e.push(new G(g, m[h]));
|
||||
try {
|
||||
c.Typekit.load({
|
||||
events: !1,
|
||||
classes: !1,
|
||||
async: !0
|
||||
})
|
||||
} catch (l) {}
|
||||
a(e)
|
||||
}
|
||||
}, 2E3) : a([])
|
||||
};
|
||||
|
||||
function Ha(a, b) {
|
||||
this.c = a;
|
||||
this.f = b;
|
||||
this.a = []
|
||||
}
|
||||
Ha.prototype.load = function (a) {
|
||||
var b = this.f.id,
|
||||
c = this.c.s,
|
||||
d = this;
|
||||
b ? (c.__webfontfontdeckmodule__ || (c.__webfontfontdeckmodule__ = {}), c.__webfontfontdeckmodule__[b] = function (b, c) {
|
||||
for (var g = 0, m = c.fonts.length; g < m; ++g) {
|
||||
var h = c.fonts[g];
|
||||
d.a.push(new G(h.name, ga("font-weight:" + h.weight + ";font-style:" + h.style)))
|
||||
}
|
||||
a(d.a)
|
||||
}, A(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + ea(this.c) + "/" + b + ".js", function (b) {
|
||||
b && a([])
|
||||
})) : a([])
|
||||
};
|
||||
var Y = new oa(window);
|
||||
Y.a.c.custom = function (a, b) {
|
||||
return new sa(b, a)
|
||||
};
|
||||
Y.a.c.fontdeck = function (a, b) {
|
||||
return new Ha(b, a)
|
||||
};
|
||||
Y.a.c.monotype = function (a, b) {
|
||||
return new ra(b, a)
|
||||
};
|
||||
Y.a.c.typekit = function (a, b) {
|
||||
return new Ga(b, a)
|
||||
};
|
||||
Y.a.c.google = function (a, b) {
|
||||
return new Ea(b, a)
|
||||
};
|
||||
var Z = {
|
||||
load: p(Y.load, Y)
|
||||
};
|
||||
"function" === typeof define && define.amd ? define(function () {
|
||||
return Z
|
||||
}) : "undefined" !== typeof module && module.exports ? module.exports = Z : (window.WebFont = Z, window.WebFontConfig && Y.load(window.WebFontConfig));
|
||||
}());
|
||||
175
themes/agico-hugo/assets/scss/_buttons.scss
Executable file
175
themes/agico-hugo/assets/scss/_buttons.scss
Executable file
@@ -0,0 +1,175 @@
|
||||
.btn {
|
||||
font-size: 16px;
|
||||
//font-family: $font-primary;
|
||||
/* text-transform: capitalize; */
|
||||
padding: 14px 45px;
|
||||
border-radius: 45px;
|
||||
font-weight: 500;
|
||||
border: 2px solid;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
transition: .3s ease;
|
||||
overflow: hidden;
|
||||
text-decoration: none !important;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
outline: 0;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
&:active {
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
img,
|
||||
svg,
|
||||
i {
|
||||
margin-right: 10px;
|
||||
font-size: 20px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
padding: 20px 40px;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
border: 0;
|
||||
color: $white;
|
||||
background-color: transparent !important;
|
||||
|
||||
&:not(&[type="submit"]) {
|
||||
border: 2px solid $color-secondary !important;
|
||||
|
||||
&:hover {
|
||||
border: 2px solid $color-secondary !important;
|
||||
color: $color-primary !important;
|
||||
|
||||
&:after {
|
||||
left: 102%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 102%;
|
||||
height: 100%;
|
||||
background: $btn-gradient-primary;
|
||||
z-index: -1;
|
||||
transition: ease 0.3s;
|
||||
}
|
||||
|
||||
&.btn-dark {
|
||||
&:hover {
|
||||
color: $color-secondary !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-outline-primary {
|
||||
color: $color-secondary;
|
||||
border: 2px solid white !important;
|
||||
|
||||
&:hover {
|
||||
color: $white !important;
|
||||
background: none !important;
|
||||
border: 2px solid $color-secondary;
|
||||
|
||||
i {
|
||||
color: $white !important;
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -102%;
|
||||
width: 102%;
|
||||
height: 100%;
|
||||
background: $btn-gradient-primary;
|
||||
z-index: -1;
|
||||
transition: ease 0.3s;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-white {
|
||||
background: $white !important;
|
||||
color: $color-primary !important;
|
||||
border: 1px solid $white !important;
|
||||
|
||||
&:hover {
|
||||
color: $white !important;
|
||||
|
||||
i {
|
||||
color: $white !important;
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -102%;
|
||||
width: 102%;
|
||||
height: 100%;
|
||||
background: $color-primary !important;
|
||||
z-index: -1;
|
||||
transition: ease 0.3s;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-outline-white {
|
||||
color: $white !important;
|
||||
border: 1px solid $white !important;
|
||||
|
||||
&:hover {
|
||||
color: $color-primary !important;
|
||||
background: none !important;
|
||||
border: 2px solid $color-secondary;
|
||||
|
||||
i {
|
||||
color: $color-primary !important;
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -102%;
|
||||
width: 102%;
|
||||
height: 100%;
|
||||
background: $white;
|
||||
z-index: -1;
|
||||
transition: ease 0.3s;
|
||||
}
|
||||
}
|
||||
869
themes/agico-hugo/assets/scss/_common.scss
Executable file
869
themes/agico-hugo/assets/scss/_common.scss
Executable file
@@ -0,0 +1,869 @@
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Openklap-animatie */
|
||||
.product-sections {
|
||||
overflow: hidden;
|
||||
max-height: 0;
|
||||
opacity: 0;
|
||||
transition: max-height 0.45s ease, opacity 0.3s ease;
|
||||
}
|
||||
.product-sections.open {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.ml-auto {
|
||||
margin-left: auto !important;
|
||||
}
|
||||
|
||||
|
||||
:root {
|
||||
--bs-border-color: #{$border-color} !important;
|
||||
}
|
||||
|
||||
a,
|
||||
a:hover,
|
||||
a:focus {
|
||||
text-decoration: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
a,
|
||||
button,
|
||||
select {
|
||||
cursor: pointer;
|
||||
transition: 0.3s ease;
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.fas {
|
||||
font-size: 24px;
|
||||
color: $color-primary !important;
|
||||
|
||||
}
|
||||
|
||||
a.text-color,
|
||||
a.text-dark,
|
||||
a.text-light,
|
||||
a {
|
||||
&:hover {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
section {
|
||||
overflow: hidden;
|
||||
|
||||
&.subscription {
|
||||
overflow: inherit;
|
||||
}
|
||||
}
|
||||
.modal-content {
|
||||
.modal-close {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
color: white;
|
||||
font-size: 16px;
|
||||
border-radius: 8px;
|
||||
background: $bg-secondary;
|
||||
top: -45px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: none;
|
||||
outline: none;
|
||||
|
||||
svg {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
&:hover svg {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
iframe {
|
||||
width: 900px;
|
||||
margin: auto;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
// color
|
||||
.text-color {
|
||||
color: $text-color;
|
||||
}
|
||||
.text-light {
|
||||
color: $text-light !important;
|
||||
}
|
||||
.text-dark {
|
||||
color: $text-dark !important;
|
||||
}
|
||||
.text-secondary {
|
||||
color: $color-secondary !important;
|
||||
}
|
||||
.bg-gradient-primary {
|
||||
background: $bg-gradient-primary;
|
||||
}
|
||||
.bg-gradient-secondary {
|
||||
background: $bg-gradient-secondary;
|
||||
}
|
||||
.btn-primary-gradient {
|
||||
background: $btn-gradient-primary;
|
||||
}
|
||||
.bg-gradient-purple {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgb(98, 90, 255) 20%,
|
||||
rgb(176, 37, 239) 100%
|
||||
);
|
||||
}
|
||||
.border-gray {
|
||||
border-color: rgb(137, 96, 212) !important;
|
||||
}
|
||||
.bg-gray {
|
||||
background: $gray;
|
||||
}
|
||||
.bg-gray-light {
|
||||
background: #f5f6f7;
|
||||
}
|
||||
.bg-secondary {
|
||||
background: $bg-secondary !important;
|
||||
}
|
||||
.badge-light {
|
||||
background: #edeff2;
|
||||
}
|
||||
.border-color {
|
||||
border-color: $border-color !important;
|
||||
}
|
||||
.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// shadow
|
||||
.shadow {
|
||||
box-shadow: 0px 15px 15px 0px rgba(32, 116, 149, 0.3);
|
||||
}
|
||||
|
||||
// box-shadow
|
||||
.shadow-sm {
|
||||
box-shadow: 0px 5px 15px 0px rgba(51, 77, 128, 0.12) !important;
|
||||
}
|
||||
.zindex-1 {
|
||||
z-index: 1;
|
||||
}
|
||||
.screen-reader-text {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
-webkit-clip-path: inset(50%);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute !important;
|
||||
width: 1px;
|
||||
word-wrap: normal !important;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
/* overlay */
|
||||
.overlay {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background: $black;
|
||||
content: "";
|
||||
opacity: 0.7;
|
||||
border-radius: inherit;
|
||||
}
|
||||
}
|
||||
.overlay-gradient {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background-image: $bg-gradient-primary;
|
||||
content: "";
|
||||
opacity: 0.7;
|
||||
border-radius: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
/* preloader */
|
||||
.preloader {
|
||||
background-color: #0e1e2f !important;
|
||||
z-index: 99999 !important;
|
||||
img {
|
||||
max-width: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
// background img
|
||||
.bg-cover {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center bottom;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
// border-radius
|
||||
.rounded-xl {
|
||||
border-radius: 45px;
|
||||
}
|
||||
.rounded-lg {
|
||||
border-radius: 20px;
|
||||
}
|
||||
.rounded-sm {
|
||||
border-radius: 15px;
|
||||
}
|
||||
.rounded-xs {
|
||||
border-radius: 10px;
|
||||
}
|
||||
.rounded-top-xs {
|
||||
border-top-right-radius: 10px;
|
||||
border-top-left-radius: 10px;
|
||||
}
|
||||
.rounded-top-sm {
|
||||
border-top-right-radius: 15px;
|
||||
border-top-left-radius: 15px;
|
||||
}
|
||||
.rounded-top-lg {
|
||||
border-top-right-radius: 20px;
|
||||
border-top-left-radius: 20px;
|
||||
}
|
||||
|
||||
// font-weight
|
||||
.font-weight-medium {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
// transition
|
||||
.transition {
|
||||
transition: ease 0.3s;
|
||||
}
|
||||
|
||||
// section
|
||||
.section {
|
||||
padding-top: 110px;
|
||||
padding-bottom: 110px;
|
||||
|
||||
@include desktop {
|
||||
padding-top: 100px;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
&-lg {
|
||||
padding-top: 250px;
|
||||
padding-bottom: 250px;
|
||||
|
||||
&-bottom {
|
||||
padding-bottom: 150px;
|
||||
|
||||
@include desktop {
|
||||
padding-bottom: 150px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-sm {
|
||||
padding-top: 70px;
|
||||
padding-bottom: 70px;
|
||||
}
|
||||
|
||||
&-title {
|
||||
margin-bottom: 38px;
|
||||
}
|
||||
}
|
||||
.subtitle {
|
||||
/* text-transform: capitalize; */
|
||||
font-size: 18px;
|
||||
color: $text-color;
|
||||
//font-family: $font-primary;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.sticky-top {
|
||||
top: 100px;
|
||||
}
|
||||
|
||||
// pulse animtion
|
||||
.video-container {
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
.pulse-box {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
/* pulse in SVG */
|
||||
svg.pulse-svg {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
svg.pulse-svg .first-circle {
|
||||
fill: $white;
|
||||
transform: scale(0.1);
|
||||
transform-origin: center center;
|
||||
animation: pulse-me 3s linear infinite;
|
||||
}
|
||||
|
||||
svg.pulse-svg .second-circle {
|
||||
fill: $white;
|
||||
transform: scale(0.1);
|
||||
transform-origin: center center;
|
||||
animation: pulse-me 3s linear infinite;
|
||||
animation-delay: 1s;
|
||||
}
|
||||
|
||||
svg.pulse-svg .third-circle {
|
||||
fill: $white;
|
||||
transform: scale(0.1);
|
||||
transform-origin: center center;
|
||||
animation: pulse-me 3s linear infinite;
|
||||
animation-delay: 2s;
|
||||
}
|
||||
|
||||
/* pulse in CSS */
|
||||
.pulse-css {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 15px;
|
||||
background: $white;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pulse-css:before,
|
||||
.pulse-css:after {
|
||||
content: "";
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 15px;
|
||||
background-color: $white;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
transform: scale(0.5);
|
||||
transform-origin: center center;
|
||||
animation: pulse-me 3s linear infinite;
|
||||
}
|
||||
|
||||
.pulse-css:after {
|
||||
animation-delay: 2s;
|
||||
}
|
||||
|
||||
@keyframes pulse-me {
|
||||
0% {
|
||||
transform: scale(0.5);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
70% {
|
||||
opacity: 0.09;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(3);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// pulse animtion
|
||||
|
||||
/* social icon */
|
||||
.social-icons {
|
||||
li {
|
||||
a {
|
||||
i {
|
||||
width: 46px !important;
|
||||
padding: 13px;
|
||||
height: 46px;
|
||||
line-height: 46px;
|
||||
color: $white;
|
||||
text-align: center;
|
||||
border: 2px solid $border-color;
|
||||
display: block;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@extend .transition;
|
||||
|
||||
&:hover {
|
||||
background-color: $color-primary;
|
||||
border: 2px solid $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* / social icon */
|
||||
|
||||
/* list style */
|
||||
.list-styled {
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
list-style-type: none;
|
||||
|
||||
svg {
|
||||
margin-right: 8px;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&::before {
|
||||
color: $color-primary !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.text-light {
|
||||
&::before {
|
||||
color: $text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.list-hover-underline {
|
||||
li {
|
||||
a {
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.list-bordered {
|
||||
li {
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* /list style */
|
||||
|
||||
/* page title */
|
||||
.page-title {
|
||||
& > div {
|
||||
background: $color-primary;
|
||||
opacity: 0.95;
|
||||
|
||||
& > div {
|
||||
padding: 220px 0 100px;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
p {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.breadcrumb-item + .breadcrumb-item::before {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* /page title */
|
||||
|
||||
/* form style */
|
||||
input[type="search"]::-webkit-search-decoration,
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-results-button,
|
||||
input[type="search"]::-webkit-search-results-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
.form-control {
|
||||
border: 0;
|
||||
height: 60px;
|
||||
padding: 0 25px;
|
||||
border-radius: 50px;
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
textarea.form-control {
|
||||
border-radius: 20px;
|
||||
height: 150px;
|
||||
padding: 25px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
/* /form style */
|
||||
.badge {
|
||||
margin-bottom: 20px;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
padding: 5px 10px;
|
||||
|
||||
&.added {
|
||||
background: #3778ff;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.fixed {
|
||||
background: #f54773;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.changed {
|
||||
background: #3aaa55;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.depricated {
|
||||
background: #343434;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.removed {
|
||||
background: #3bbfe4;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.security {
|
||||
background: #f53535;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&.unreleased {
|
||||
background: #a037ff;
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
* {
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
color: $color-primary;
|
||||
}
|
||||
|
||||
ol {
|
||||
padding-left: 20px;
|
||||
|
||||
li {
|
||||
margin-bottom: 6px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
|
||||
li {
|
||||
margin-bottom: 6px;
|
||||
list-style-type: none;
|
||||
margin-left:30px;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 0;
|
||||
margin-bottom: 20px;
|
||||
|
||||
li {
|
||||
padding-left: 20px;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
border-radius: 50%;
|
||||
background: $color-primary;
|
||||
left: 3px;
|
||||
top: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 50px 0;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 1rem;
|
||||
border: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
table td,
|
||||
table th {
|
||||
padding: 0.75rem;
|
||||
vertical-align: top;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
tr:not(:last-child) {
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
thead {
|
||||
background: $gray;
|
||||
margin-bottom: 0;
|
||||
|
||||
tr {
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
background: #fff;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
font-size: 20px !important;
|
||||
color: $text-color;
|
||||
padding: 20px 40px;
|
||||
border-left: 2px solid $color-primary;
|
||||
margin: 40px 0;
|
||||
font-weight: 600;
|
||||
|
||||
p {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
padding: 9.5px;
|
||||
margin: 10px 0px 10px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
code {
|
||||
margin-bottom: 0 !important;
|
||||
font-size: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.accordion {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.accordion-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
font-size: 1.1rem;
|
||||
width: 100%;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.accordion-icon {
|
||||
width: 0.78em;
|
||||
height: 0.78em;
|
||||
transform: rotate(-90deg);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.accordion-content {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.accordion.active .accordion-icon {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
.accordion.active .accordion-content {
|
||||
max-height: max-content;
|
||||
}
|
||||
|
||||
.pricing-table {
|
||||
|
||||
border-radius:24px;
|
||||
/* border:4px solid white;*/
|
||||
|
||||
p {
|
||||
margin:0;
|
||||
}
|
||||
|
||||
small {
|
||||
font-style: italic;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
td.active {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
tbody {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
tbody td,
|
||||
tbody th {
|
||||
border: 1px solid #efefef;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
td span {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
thead td,
|
||||
thead th {
|
||||
border-bottom-width: 1px;
|
||||
background: $color-primary;
|
||||
border-color: $color-primary;
|
||||
padding:20px;
|
||||
}
|
||||
|
||||
thead td:first-child,
|
||||
thead th:first-child,
|
||||
tr td:first-child {
|
||||
border-top-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-top-left-radius: 32px;
|
||||
}
|
||||
|
||||
thead td:last-child,
|
||||
thead th:last-child,
|
||||
tr td:last-child {
|
||||
border-top-color: transparent;
|
||||
border-right-color: transparent;
|
||||
border-top-right-radius: 32px;
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
tr {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 10px 20px;
|
||||
width: initial;
|
||||
}
|
||||
|
||||
td {
|
||||
border: none;
|
||||
border-bottom: 1px solid #eee;
|
||||
position: relative;
|
||||
padding-left: 50%;
|
||||
}
|
||||
|
||||
td:before {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 20px;
|
||||
width: 45%;
|
||||
padding-right: 10px;
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
content: attr(data-label);
|
||||
}
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
td {
|
||||
padding-left: 40%;
|
||||
}
|
||||
|
||||
td:before {
|
||||
width: 39%;
|
||||
}
|
||||
.pricing-table td { padding-left: 45%; } /* iets compacter op hele kleine schermen */
|
||||
.pricing-table td:before { width: 42%; }
|
||||
}
|
||||
}
|
||||
|
||||
.content img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.px-6 {
|
||||
padding-left: ($spacer * 4) !important;
|
||||
padding-right: ($spacer * 4) !important;
|
||||
}
|
||||
|
||||
.img-product {
|
||||
max-height:80px;
|
||||
object-fit: contain;
|
||||
object-position: left;
|
||||
}
|
||||
|
||||
.g-8 {
|
||||
--bs-gutter-x: 3rem;
|
||||
}
|
||||
|
||||
sup, .footnote-ref {
|
||||
font-size: 0.8em;
|
||||
//vertical-align: super;
|
||||
}
|
||||
.footnote-ref::before {
|
||||
content: "[";
|
||||
}
|
||||
.footnote-ref::after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.footnotes ol li,
|
||||
.footnotes ol li p {
|
||||
font-size: 0.85em;
|
||||
line-height: 0.9em;
|
||||
}
|
||||
|
||||
.cookie-box {
|
||||
color: $text-dark;
|
||||
}
|
||||
|
||||
.fa-xs {
|
||||
font-size: 1em;
|
||||
padding-right:4px;
|
||||
}
|
||||
34
themes/agico-hugo/assets/scss/_mixins.scss
Executable file
34
themes/agico-hugo/assets/scss/_mixins.scss
Executable file
@@ -0,0 +1,34 @@
|
||||
@mixin mobile-xs{
|
||||
@media(max-width:400px){
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin mobile{
|
||||
@media(max-width:575px){
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin tablet{
|
||||
@media(max-width:767px){
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin desktop{
|
||||
@media(max-width:991px){
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin desktop-lg{
|
||||
@media(max-width:1200px){
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@mixin desktop-xl{
|
||||
@media(max-width:1650px){
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin size($size){
|
||||
width: $size; height: $size;
|
||||
}
|
||||
162
themes/agico-hugo/assets/scss/_typography.scss
Executable file
162
themes/agico-hugo/assets/scss/_typography.scss
Executable file
@@ -0,0 +1,162 @@
|
||||
/* 400 normal */
|
||||
@font-face {
|
||||
font-family: "Work Sans";
|
||||
src: url("/fonts/WorkSans-Regular.woff2") format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* 400 italic */
|
||||
@font-face {
|
||||
font-family: "Work Sans";
|
||||
src: url("/fonts/WorkSans-Italic.woff2") format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* 600 (Semibold) */
|
||||
@font-face {
|
||||
font-family: "Work Sans";
|
||||
src: url("/fonts/WorkSans-SemiBold.woff2") format("woff2");
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* 800 (ExtraBold) */
|
||||
@font-face {
|
||||
font-family: "Work Sans";
|
||||
src: url("/fonts/WorkSans-ExtraBold.woff2") format("woff2");
|
||||
font-weight: 800;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-primary: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
line-height: 1.6;
|
||||
//font-family: $font_secondary;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 16px;
|
||||
color: $text-color;
|
||||
font-family: var(--font-primary);
|
||||
font-synthesis: weight style;
|
||||
}
|
||||
|
||||
p,
|
||||
.paragraph {
|
||||
font-weight: 400;
|
||||
color: $text-color;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
transition: 0.3s;
|
||||
//font-family: $font_secondary;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: $text-dark;
|
||||
//font-family: $font-primary;
|
||||
/* text-transform: capitalize; */
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
h6 {
|
||||
/* padding-top:10px; */
|
||||
}
|
||||
|
||||
h1,
|
||||
.h1 {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
// List in descending order to prevent extra sort function
|
||||
$type-levels: 6, 5, 4, 3, 2;
|
||||
|
||||
@each $level in $type-levels {
|
||||
$font-size: $font-size * $font-scale;
|
||||
|
||||
// Output heading styles
|
||||
h#{$level},
|
||||
.h#{$level} {
|
||||
font-size: $font-size;
|
||||
line-height: calc(2px + 2ex + 2px);
|
||||
margin-bottom: 0.65em;
|
||||
|
||||
// responsive for h1, h2, h3, h4
|
||||
&:not(h5, .h5, h6, .h6) {
|
||||
@include desktop {
|
||||
font-size: calc(#{$font-size} * 0.9);
|
||||
margin-bottom: 0.55em;
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
font-size: calc(#{$font-size} * 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
// responsive for h5, h6
|
||||
@include desktop {
|
||||
font-size: calc(#{$font-size} * 0.95);
|
||||
margin-bottom: 0.55em;
|
||||
}
|
||||
|
||||
@include tablet {
|
||||
font-size: calc(#{$font-size} * 0.9);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.text-white a,
|
||||
.text-white a:hover,
|
||||
.text-white a:focus {
|
||||
color: $white;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2px solid #ccc;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: all 0.15s ease-in-out;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:hover,
|
||||
input[type="checkbox"]:focus {
|
||||
border-color: #207495;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked {
|
||||
background-color: #207495;
|
||||
border-color: #207495;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 4px;
|
||||
width: 8px;
|
||||
height: 12px;
|
||||
border: solid #fff;
|
||||
border-width: 0 2px 2px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
47
themes/agico-hugo/assets/scss/style.scss
Executable file
47
themes/agico-hugo/assets/scss/style.scss
Executable file
@@ -0,0 +1,47 @@
|
||||
// Color Variables
|
||||
{{ with site.Params.variables }}
|
||||
$color-primary: {{.color_primary}};
|
||||
$color-secondary: {{.color_secondary}};
|
||||
$bg-secondary: {{.bg_secondary}};
|
||||
|
||||
$text-dark: {{.text_dark}};
|
||||
$text-light: {{.text_light}};
|
||||
$text-color: {{.text_color}};
|
||||
$border-color: {{.border_color}};
|
||||
$border-light: {{.border_light}};
|
||||
|
||||
$bg-gradient-primary: {{.bg_gradient_primary}};
|
||||
$bg-gradient-secondary: {{.bg_gradient_secondary}};
|
||||
$btn-gradient-primary: {{.btn_gradient_primary}};
|
||||
|
||||
$black: {{.black}};
|
||||
$white: {{.white}};
|
||||
$gray: {{.gray}};
|
||||
|
||||
// Font Variables
|
||||
$font-size: {{.font_size | default "16px"}};
|
||||
$font-scale: {{.font_scale | default "1.25"}};
|
||||
$font-primary: '{{ replaceRE ":[ital,]*wght@[0-9,;]+" "" .font_primary }}', {{.font_primary_type}};
|
||||
$font-secondary: '{{ replaceRE ":[ital,]*wght@[0-9,;]+" "" .font_secondary }}', {{.font_secondary_type}};
|
||||
$font-icon: '{{.font_icon}}';
|
||||
{{ end }}
|
||||
|
||||
@import 'templates/bootstrap';
|
||||
@import 'mixins';
|
||||
@import 'typography';
|
||||
@import 'buttons';
|
||||
@import 'common';
|
||||
@import 'templates/navigation';
|
||||
@import 'templates/banner';
|
||||
@import 'templates/homepage';
|
||||
@import 'templates/card';
|
||||
@import 'templates/team';
|
||||
@import 'templates/blog';
|
||||
@import 'templates/footer';
|
||||
@import 'preloader';
|
||||
@import 'accordion';
|
||||
@import 'notice';
|
||||
|
||||
{{ if site.Params.image_gallery }}
|
||||
@import 'gallery';
|
||||
{{ end }}
|
||||
62
themes/agico-hugo/assets/scss/templates/_banner.scss
Executable file
62
themes/agico-hugo/assets/scss/templates/_banner.scss
Executable file
@@ -0,0 +1,62 @@
|
||||
// banner css start
|
||||
section.hero-area {
|
||||
padding: 200px 0 175px;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
background-position: bottom center !important;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
@include mobile-xs {
|
||||
padding: 190px 0 100px;
|
||||
}
|
||||
|
||||
@include desktop-xl {
|
||||
padding: 190px 0 155px;
|
||||
}
|
||||
|
||||
p {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
h1 {
|
||||
line-height: 68px;
|
||||
z-index: 1;
|
||||
font-size: 50px;
|
||||
|
||||
@include mobile-xs {
|
||||
font-size: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.watermark {
|
||||
position: absolute;
|
||||
opacity: 0.07;
|
||||
top: 20px;
|
||||
left: 0;
|
||||
font-size: 200px;
|
||||
font-weight: 600;
|
||||
z-index: -1;
|
||||
color: inherit;
|
||||
|
||||
@include mobile {
|
||||
top: 0;
|
||||
font-size: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
.watermark-sm {
|
||||
position: absolute;
|
||||
opacity: 0.07;
|
||||
top: -40px;
|
||||
left: 0;
|
||||
font-size: 110px;
|
||||
font-weight: 600;
|
||||
color: inherit;
|
||||
|
||||
@include mobile {
|
||||
top: 0;
|
||||
font-size: 100px;
|
||||
}
|
||||
}
|
||||
97
themes/agico-hugo/assets/scss/templates/_blog.scss
Executable file
97
themes/agico-hugo/assets/scss/templates/_blog.scss
Executable file
@@ -0,0 +1,97 @@
|
||||
/* sidebar */
|
||||
.widget {
|
||||
padding: 40px 30px 0;
|
||||
ul {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
li {
|
||||
a {
|
||||
padding: 12px 15px;
|
||||
display: block;
|
||||
border-radius: 40px;
|
||||
|
||||
&:hover {
|
||||
background: $btn-gradient-primary;
|
||||
color: $white !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* sidebar */
|
||||
|
||||
.pagination .page-item .page-link {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: $color-primary;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-weight: 600;
|
||||
transition: .3s ease;
|
||||
height: 50px;
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
margin: 10px;
|
||||
width: 50px;
|
||||
line-height: 33px;
|
||||
box-shadow: 0px 5px 15px 0px rgba(51, 77, 128, 0.12)
|
||||
}
|
||||
|
||||
.pagination .page-item.active .page-link {
|
||||
background: $btn-gradient-primary;
|
||||
color: $white;
|
||||
box-shadow: 0px 15px 15px 0px rgba(8, 18, 109, 0.1)
|
||||
}
|
||||
|
||||
.pagination .page-item .page-link:hover {
|
||||
box-shadow: 0px 15px 15px 0px rgba(8, 18, 109, 0.1)
|
||||
}
|
||||
|
||||
/* blog single */
|
||||
|
||||
blockquote {
|
||||
box-shadow: inset 0px 7px 0px 0px rgba(255, 255, 255, 0.596);
|
||||
padding: 34px 40px 37px 40px;
|
||||
background-image: $bg-gradient-secondary;
|
||||
border-radius: 10px;
|
||||
margin: 40px 0;
|
||||
|
||||
p {
|
||||
position: relative;
|
||||
font-style: italic;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
h6 {
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
.article {
|
||||
display: flex;
|
||||
|
||||
img {
|
||||
height: 75px;
|
||||
width: 75px;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
form {
|
||||
textarea {
|
||||
height: 180px;
|
||||
}
|
||||
}
|
||||
|
||||
/* /blog single */
|
||||
53
themes/agico-hugo/assets/scss/templates/_bootstrap.scss
Normal file
53
themes/agico-hugo/assets/scss/templates/_bootstrap.scss
Normal file
@@ -0,0 +1,53 @@
|
||||
// Bootstrap 5.3.0
|
||||
|
||||
@import "../bootstrap/mixins/banner";
|
||||
@include bsBanner("");
|
||||
|
||||
// scss-docs-start import-stack
|
||||
// Configuration
|
||||
@import "../bootstrap/functions";
|
||||
@import "../bootstrap/variables";
|
||||
@import "../bootstrap/variables-dark";
|
||||
@import "../bootstrap/maps";
|
||||
@import "../bootstrap/mixins";
|
||||
@import "../bootstrap/utilities";
|
||||
|
||||
// Layout & components
|
||||
@import "../bootstrap/root";
|
||||
@import "../bootstrap/reboot";
|
||||
@import "../bootstrap/type";
|
||||
@import "../bootstrap/images";
|
||||
@import "../bootstrap/containers";
|
||||
@import "../bootstrap/grid";
|
||||
@import "../bootstrap/tables";
|
||||
@import "../bootstrap/forms";
|
||||
@import "../bootstrap/buttons";
|
||||
@import "../bootstrap/transitions";
|
||||
@import "../bootstrap/dropdown";
|
||||
// @import "../bootstrap/button-group";
|
||||
@import "../bootstrap/nav";
|
||||
@import "../bootstrap/navbar";
|
||||
@import "../bootstrap/card";
|
||||
@import "../bootstrap/accordion";
|
||||
@import "../bootstrap/breadcrumb";
|
||||
@import "../bootstrap/pagination";
|
||||
// @import "../bootstrap/badge";
|
||||
// @import "../bootstrap/alert";
|
||||
// @import "../bootstrap/progress";
|
||||
// @import "../bootstrap/list-group";
|
||||
// @import "../bootstrap/close";
|
||||
// @import "../bootstrap/toasts";
|
||||
@import "../bootstrap/modal";
|
||||
// @import "../bootstrap/tooltip";
|
||||
// @import "../bootstrap/popover";
|
||||
// @import "../bootstrap/carousel";
|
||||
// @import "../bootstrap/spinners";
|
||||
// @import "../bootstrap/offcanvas";
|
||||
// @import "../bootstrap/placeholders";
|
||||
|
||||
// Helpers
|
||||
@import "../bootstrap/helpers";
|
||||
|
||||
// Utilities
|
||||
@import "../bootstrap/utilities/api";
|
||||
// scss-docs-end import-stack
|
||||
226
themes/agico-hugo/assets/scss/templates/_card.scss
Executable file
226
themes/agico-hugo/assets/scss/templates/_card.scss
Executable file
@@ -0,0 +1,226 @@
|
||||
.card{
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.card-img-sm {
|
||||
max-width: 60px;
|
||||
max-height: 60px;
|
||||
}
|
||||
|
||||
.card-date {
|
||||
padding-left: 40px;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 1px;
|
||||
width: 30px;
|
||||
background: $text-color;
|
||||
left: 0;
|
||||
top: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.card-active{
|
||||
background: $bg-gradient-primary;
|
||||
*{
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
.hover-bg-primary {
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
@extend .transition;
|
||||
background: $bg-gradient-primary;
|
||||
z-index: -1;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.btn {
|
||||
transition: .3s ease;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: transparent;
|
||||
&:before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
* {
|
||||
color: $white !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-border-bottom {
|
||||
&:hover {
|
||||
&:after {
|
||||
width: 94%;
|
||||
border-radius: 0 0 20px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 170px;
|
||||
height: 4px;
|
||||
left: 50%;
|
||||
bottom: 0;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 45px;
|
||||
background: $bg-gradient-secondary;
|
||||
@extend .transition;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-quote {
|
||||
border: 4px solid #e5e6e8;
|
||||
height: 40px;
|
||||
padding: 8px;
|
||||
border-radius: 10px;
|
||||
font-size: 20px;
|
||||
color: $color-primary;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.icon-lg {
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
.icon-bg-circle {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
top: -20px;
|
||||
left: 15px;
|
||||
border-radius: 50%;
|
||||
background: inherit;
|
||||
opacity: .1;
|
||||
z-index: -1;
|
||||
}
|
||||
&::before{
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-square {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -55px;
|
||||
left: 73%;
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
transform: rotate(50deg) scale(0.8) skew(-1deg, -15deg) translateX(16px) translateY(97px);
|
||||
background: #f5f6f7;
|
||||
z-index: -1;
|
||||
@extend .rounded-sm;
|
||||
}
|
||||
|
||||
&::before {
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-primary {
|
||||
color: #207495;
|
||||
}
|
||||
|
||||
.icon-yellow{
|
||||
color: #f6a622;
|
||||
}
|
||||
|
||||
.icon-purple{
|
||||
color: #7952f5;
|
||||
}
|
||||
|
||||
.icon-cyan{
|
||||
color: #02d0a1;
|
||||
}
|
||||
|
||||
.icon-red {
|
||||
color: #ff4949;
|
||||
}
|
||||
|
||||
.icon-orange{
|
||||
color: #ff7c17;
|
||||
}
|
||||
|
||||
.icon-green{
|
||||
color: #66cc33;
|
||||
}
|
||||
|
||||
.icon-blue{
|
||||
color: #3682ff;
|
||||
}
|
||||
|
||||
.icon-bg-primary{
|
||||
&::after{
|
||||
background: #207495;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-yellow{
|
||||
&::after{
|
||||
background: #f6a622;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-purple{
|
||||
&::after{
|
||||
background: #7952f5;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-cyan{
|
||||
&::after{
|
||||
background: #02d0a1;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-red{
|
||||
&::after{
|
||||
background: #ff4949;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-green{
|
||||
&::after{
|
||||
background: #66cc33;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-orange{
|
||||
&::after{
|
||||
background: #ff7c17;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-bg-blue{
|
||||
&::after{
|
||||
background: #3682ff;
|
||||
}
|
||||
}
|
||||
95
themes/agico-hugo/assets/scss/templates/_footer.scss
Executable file
95
themes/agico-hugo/assets/scss/templates/_footer.scss
Executable file
@@ -0,0 +1,95 @@
|
||||
footer {
|
||||
&>div:first-child {
|
||||
/* border-bottom: 1px solid $border-light; */
|
||||
|
||||
}
|
||||
}
|
||||
.copyright {
|
||||
a {
|
||||
color: $text-light;
|
||||
|
||||
&:hover {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* subscription */
|
||||
.subscription {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
|
||||
@include desktop {
|
||||
background: $bg-gradient-secondary;
|
||||
position: static;
|
||||
}
|
||||
|
||||
&.bg-white {
|
||||
background: none !important;
|
||||
|
||||
.subscription-wrapper {
|
||||
&::before {
|
||||
background: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
background: $white;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
border: 1px solid #ebebeb !important;
|
||||
}
|
||||
}
|
||||
|
||||
&-wrapper {
|
||||
position: relative;
|
||||
top: -40px;
|
||||
|
||||
@include desktop {
|
||||
top: 0;
|
||||
padding: 50px 0;
|
||||
}
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
border-radius: 24px;
|
||||
border: 4px solid white;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
left: 0;
|
||||
background: $bg-gradient-secondary;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
@extend .shadow;
|
||||
|
||||
@include desktop {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.form-control {
|
||||
height: 60px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 45px;
|
||||
|
||||
&:focus {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: $gray;
|
||||
}
|
||||
|
||||
&.text-white {
|
||||
|
||||
&::placeholder {
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
74
themes/agico-hugo/assets/scss/templates/_homepage.scss
Executable file
74
themes/agico-hugo/assets/scss/templates/_homepage.scss
Executable file
@@ -0,0 +1,74 @@
|
||||
// video css start
|
||||
.video-thumb {
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
// testimonial css start
|
||||
.swiper {
|
||||
padding: 0px 20px;
|
||||
|
||||
@include mobile-xs {
|
||||
padding: 0px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.bg-shape-triangles {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
// testimonial css end
|
||||
|
||||
// pricing css end
|
||||
|
||||
|
||||
.floating-video {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.play-icon {
|
||||
font-size: 18px;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
text-align: center;
|
||||
line-height: 90px;
|
||||
background: $white;
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
|
||||
.fa-play {
|
||||
z-index: 1;
|
||||
margin-left: 5px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pulse-svg {
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-center {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
214
themes/agico-hugo/assets/scss/templates/_navigation.scss
Executable file
214
themes/agico-hugo/assets/scss/templates/_navigation.scss
Executable file
@@ -0,0 +1,214 @@
|
||||
.navigation {
|
||||
transition: none;
|
||||
|
||||
background: $bg-gradient-secondary;
|
||||
|
||||
@include desktop {
|
||||
background: $bg-gradient-secondary;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
&.nav-bg {
|
||||
background: $bg-gradient-secondary;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
&.navigation-white {
|
||||
&.nav-bg {
|
||||
background: $white;
|
||||
box-shadow: 0px 10px 20px 0px rgba(0, 141, 236, 0.1);
|
||||
|
||||
.btn {
|
||||
color: $color-primary !important;
|
||||
|
||||
&:hover {
|
||||
color: $white !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
background: $white;
|
||||
|
||||
.btn {
|
||||
color: $color-primary !important;
|
||||
|
||||
&:hover {
|
||||
color: $white !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
&-menu {
|
||||
background: $white;
|
||||
}
|
||||
|
||||
&-item {
|
||||
color: $text-dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar {
|
||||
.navbar-toggler {
|
||||
&[aria-expanded="true"] {
|
||||
.fa-times {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.fa-bars {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fa-times,
|
||||
.fa-bars {
|
||||
color: $white !important;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.fa-times {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
|
||||
.nav-link {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
padding: 20px 22px;
|
||||
//font-family: $font-primary;
|
||||
transition: all ease 0.3s;
|
||||
|
||||
@include desktop-lg {
|
||||
padding: 20px 15px;
|
||||
}
|
||||
|
||||
@include desktop {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $white;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $white !important;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
&:hover {
|
||||
.dropdown-menu {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scaleX(1);
|
||||
}
|
||||
}
|
||||
|
||||
&-menu {
|
||||
border: 0;
|
||||
top: 50px;
|
||||
opacity: 0;
|
||||
left: -20px;
|
||||
padding: 15px;
|
||||
display: block;
|
||||
border-radius: 0;
|
||||
visibility: hidden;
|
||||
border-radius: 10px;
|
||||
transition: .3s ease;
|
||||
margin: 0px;
|
||||
transform: scale(.8);
|
||||
background: $bg-gradient-secondary;
|
||||
box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.12);
|
||||
border: 1px solid white;
|
||||
|
||||
@include desktop {
|
||||
display: none;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: scale(1);
|
||||
transform-origin: unset;
|
||||
}
|
||||
|
||||
&.show {
|
||||
visibility: hidden;
|
||||
|
||||
@include desktop {
|
||||
visibility: visible;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item {
|
||||
position: relative;
|
||||
color: $white;
|
||||
transition: .2s ease;
|
||||
//font-family: $font-primary;
|
||||
|
||||
@include desktop {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $white !important;
|
||||
text-decoration: underline;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#langDropdown {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: $white;
|
||||
font-size: 16px;
|
||||
border-radius: 50px;
|
||||
appearance: none;
|
||||
padding: 12px;
|
||||
width: auto !important;
|
||||
min-width: 0 !important;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
option {
|
||||
color: black;
|
||||
min-width: 0;
|
||||
}
|
||||
&:hover {
|
||||
color:$white !important;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-menu-lang {
|
||||
min-width: 0 !important;
|
||||
width: auto;
|
||||
white-space: nowrap;
|
||||
padding: 4px;
|
||||
background: $white !important;
|
||||
appearance: none;
|
||||
--bs-dropdown-min-width: 0;
|
||||
--bs-dropdown-link-active-bg: #79ACBF; /* background of selected item */
|
||||
--bs-dropdown-link-active-color: #fff; /* text color of selected item */
|
||||
}
|
||||
|
||||
.navbar .dropdown > .dropdown-menu.dropdown-menu-lang {
|
||||
width: max-content !important;
|
||||
min-width: 0 !important;
|
||||
}
|
||||
73
themes/agico-hugo/assets/scss/templates/_team.scss
Executable file
73
themes/agico-hugo/assets/scss/templates/_team.scss
Executable file
@@ -0,0 +1,73 @@
|
||||
.team-member {
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
.team-member-content {
|
||||
&::before {
|
||||
height: 100%;
|
||||
transition: .3s ease;
|
||||
}
|
||||
}
|
||||
|
||||
.team-member-name,
|
||||
.team-member-designation {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
transition-delay: .1s;
|
||||
}
|
||||
|
||||
.team-member-social {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
bottom: 0;
|
||||
transition-delay: .4s;
|
||||
}
|
||||
}
|
||||
|
||||
&-content {
|
||||
position: absolute;
|
||||
height: 32%;
|
||||
width: 80%;
|
||||
left: 10%;
|
||||
bottom: 10%;
|
||||
z-index: 1;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 0;
|
||||
width: 100%;
|
||||
transition: .5s ease;
|
||||
background: $bg-gradient-primary;
|
||||
bottom: 0;
|
||||
border-radius: 10px;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
&-name {
|
||||
transform: translateY(100px);
|
||||
opacity: 0;
|
||||
transition: .4s ease;
|
||||
transition-delay: .0s;
|
||||
}
|
||||
|
||||
&-designation {
|
||||
transform: translateY(100px);
|
||||
opacity: 0;
|
||||
transition: .4s ease;
|
||||
transition-delay: .0s;
|
||||
}
|
||||
|
||||
&-social {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: -10%;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: .3s ease;
|
||||
transition-delay: .0s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user