From: Vincent Vanwaelscappel Date: Thu, 29 Sep 2022 12:36:22 +0000 (+0200) Subject: wip #5496 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c82428ee007c143c1b289c10bffa0f007fc7ed51;p=eif-extranet.git wip #5496 @0.5 --- diff --git a/inc/scripts.php b/inc/scripts.php index 9382815..5a370e2 100644 --- a/inc/scripts.php +++ b/inc/scripts.php @@ -1,3 +1,5 @@ + + diff --git a/js/modernizr.js b/js/modernizr.js new file mode 100644 index 0000000..c3c7648 --- /dev/null +++ b/js/modernizr.js @@ -0,0 +1,6 @@ +/*! modernizr 3.6.0 (Custom Build) | MIT * + * https://modernizr.com/download/?-cssgrid_cssgridlegacy-addtest-setclasses !*/ +!function(e,n,t){function r(e,n){return typeof e===n}function o(){var e,n,t,o,i,s,l;for(var a in w)if(w.hasOwnProperty(a)){if(e=[],n=w[a],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;td;d++)if(m=e[d],g=N.style[m],l(m,"-")&&(m=u(m)),N.style[m]!==t){if(i||r(o,"undefined"))return s(),"pfx"==n?m:!0;try{N.style[m]=o}catch(v){}if(N.style[m]!=g)return s(),"pfx"==n?m:!0}return s(),!1}function v(e,n,t,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),l=(e+" "+z.join(s+" ")+s).split(" ");return r(n,"string")||r(n,"undefined")?y(l,n,o,i):(l=(e+" "+E.join(s+" ")+s).split(" "),c(l,n,t))}function _(e,n,r){return v(e,t,t,n,r)}var C=[],w=[],S={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){w.push({name:e,fn:n,options:t})},addAsyncTest:function(e){w.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=S,Modernizr=new Modernizr;var x,b=n.documentElement,P="svg"===b.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;x=r(e,"undefined")||r(e.call,"undefined")?function(e,n){return n in e&&r(e.constructor.prototype[n],"undefined")}:function(n,t){return e.call(n,t)}}(),S._l={},S.on=function(e,n){this._l[e]||(this._l[e]=[]),this._l[e].push(n),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},S._trigger=function(e,n){if(this._l[e]){var t=this._l[e];setTimeout(function(){var e,r;for(e=0;e 1) { @@ -131,13 +131,11 @@ function getSpriteIcon(icon, attrs, dimensions) { if (attrs.viewBox == null) { attrs.viewBox = iconSymbol.get(0).attributes.viewBox.value; } - if (dimensions === true) { - var vb = attrs.viewBox.split(' '); - attrs.x = vb[0]; - attrs.y = vb[1]; - attrs.width = vb[2]; - attrs.height = vb[3]; - } + + var vb = attrs.viewBox.split(' '); + attrs.width = vb[2]; + attrs.height = vb[3]; + if (attrs.class == null) { attrs.class = icon; } else { diff --git a/style/inc/common.sass b/style/inc/common.sass new file mode 100644 index 0000000..1a42ce6 --- /dev/null +++ b/style/inc/common.sass @@ -0,0 +1,28 @@ +html, body, main + min-height: 100% + +body + background-color: $background-color + font-family: $font + +.button + border-radius: 6px + display: inline-block + padding: 12px 50px 8px 20px + color: #fff + background-color: $button-color + height: 40px + position: relative + font-weight: bold + line-height: 0.9em + + svg + height: 30px + position: absolute + top: 5px + right: 13px + +svg + .no-msie + width: auto + height: auto \ No newline at end of file diff --git a/style/inc/menu.sass b/style/inc/menu.sass index 44c8066..11d6886 100644 --- a/style/inc/menu.sass +++ b/style/inc/menu.sass @@ -53,7 +53,6 @@ svg width: 40px - height: auto span display: block @@ -108,7 +107,6 @@ svg width: 20px - height: auto transform-origin: 50% 50% transform: scale(-1, 1) diff --git a/style/style.sass b/style/style.sass index 1e09528..e3b8ff5 100644 --- a/style/style.sass +++ b/style/style.sass @@ -1,31 +1,7 @@ @import "inc/variables" @import "inc/reset" @import "inc/mixins" - -html, body, main - min-height: 100% - -body - background-color: $background-color - font-family: $font - -.button - border-radius: 6px - display: inline-block - padding: 12px 50px 8px 20px - color: #fff - background-color: $button-color - height: 40px - position: relative - font-weight: bold - line-height: 0.9em - - svg - height: 30px - position: absolute - top: 5px - right: 13px - +@import "inc/common" main min-width: 1700px @@ -119,8 +95,6 @@ main top: 15px left: 15px height: 70px - width: auto - &.charts article @@ -157,7 +131,6 @@ main svg height: 30px - width: auto &:hover .chart-menu