mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-14 14:37:25 -05:00
tweaked UI a bit
This commit is contained in:
@@ -22,6 +22,16 @@ var GLASS_TARGETS = [
|
||||
displace: 0,
|
||||
backgroundOpacity: 0.08
|
||||
}
|
||||
},
|
||||
{
|
||||
selector: ".feature-box",
|
||||
options: {
|
||||
distortionScale: -220,
|
||||
displace: 0,
|
||||
backgroundOpacity: 0.12,
|
||||
saturation: 1.3,
|
||||
cornerRadius: 30
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -57,7 +67,7 @@ function initGlassSurface(el, opts) {
|
||||
var rect = el.getBoundingClientRect();
|
||||
var w = Math.round(rect.width) || 160;
|
||||
var h = Math.round(rect.height) || 40;
|
||||
var r = Math.round(h / 2);
|
||||
var r = opts.cornerRadius !== undefined ? opts.cornerRadius : Math.round(h / 2);
|
||||
var edge = Math.min(w, h) * (borderWidth * 0.5);
|
||||
|
||||
var mapSvg = '<svg width="' + w + '" height="' + h + '" viewBox="0 0 ' + w + ' ' + h + '" xmlns="http://www.w3.org/2000/svg">' +
|
||||
|
||||
Reference in New Issue
Block a user