From: Vincent Vanwaelscappel Date: Mon, 26 Sep 2022 14:50:58 +0000 (+0200) Subject: wip #5480 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3d42eeb11265c87bb65ec928f58251618e9f78e5;p=eif-extranet.git wip #5480 @1 --- diff --git a/.gitignore b/.gitignore index fd0c285..3f0e803 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .idea style/*.css -style/*.map \ No newline at end of file +style/*.map +style/inc/*.css +style/inc/*.map \ No newline at end of file diff --git a/inc/foot.php b/inc/foot.php new file mode 100644 index 0000000..3e2a4e0 --- /dev/null +++ b/inc/foot.php @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/inc/head.html b/inc/head.html deleted file mode 100644 index b951d33..0000000 --- a/inc/head.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Title - - - - - \ No newline at end of file diff --git a/inc/head.php b/inc/head.php new file mode 100644 index 0000000..0d29366 --- /dev/null +++ b/inc/head.php @@ -0,0 +1,13 @@ + + + + + EIF - Unibail Rodamco Westfield + + + + + + + + \ No newline at end of file diff --git a/inc/menu.html b/inc/menu.html deleted file mode 100644 index 602c175..0000000 --- a/inc/menu.html +++ /dev/null @@ -1,65 +0,0 @@ -
-
-
-
-
-
- -
-
- Powered by EIF -
-
- -
\ No newline at end of file diff --git a/inc/menu.php b/inc/menu.php new file mode 100644 index 0000000..a72ddc4 --- /dev/null +++ b/inc/menu.php @@ -0,0 +1,65 @@ + \ No newline at end of file diff --git a/inc/scripts.html b/inc/scripts.html deleted file mode 100644 index 0d05e42..0000000 --- a/inc/scripts.html +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/inc/scripts.php b/inc/scripts.php new file mode 100644 index 0000000..9dd37bc --- /dev/null +++ b/inc/scripts.php @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/js/script.js b/js/script.js index cb2a96a..c6dba1f 100644 --- a/js/script.js +++ b/js/script.js @@ -1,2 +1,42 @@ // Utilisation de tippy pour afficher les tooltips. -tippy('[title]'); \ No newline at end of file +tippy('[title]'); + +// +function getSpriteIcon(icon, attrs, dimensions) { + var a = []; + var iconSymbol = $('svg symbol[id="' + icon + '"]'); + if (iconSymbol.length > 1) { + $('svg symbol[id="' + icon + '"]:not(:last)').remove(); + iconSymbol = $('svg symbol[id="' + icon + '"]'); + } + + if (iconSymbol.length == 0) { + return ''; // Bail out because symbol doesn't exist + } + + if (attrs == undefined) { + attrs = {}; + } + 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]; + } + if (attrs.class == null) { + attrs.class = icon; + } else { + attrs.class += ' ' + icon; + } + + attrs.class += ' nav-icon svg-icon'; // Common class for all icons + + $.each(attrs, function (k, v) { + a.push(k + '="' + v + '"'); + }); + return ''; +} \ No newline at end of file diff --git a/style/inc/menu.sass b/style/inc/menu.sass new file mode 100644 index 0000000..429c3f3 --- /dev/null +++ b/style/inc/menu.sass @@ -0,0 +1,10 @@ +header + position: fixed + top: $space + left: $space + + width: 150px + + border-radius: 6px + height: calc(100% - 2*$space) + background-color: $menu-background diff --git a/style/inc/reset.sass b/style/inc/reset.sass new file mode 100644 index 0000000..79d4a7e --- /dev/null +++ b/style/inc/reset.sass @@ -0,0 +1,37 @@ +*, *:before, *:after + box-sizing: border-box + +html, body, div, span, object, iframe, figure, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, em, img, small, strike, strong, sub, sup, tt, b, u, i, ol, ul, li, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td, main, canvas, embed, footer, header, nav, section, video + margin: 0 + padding: 0 + border: 0 + font-size: 100% + font: inherit + vertical-align: baseline + text-rendering: optimizeLegibility + -webkit-font-smoothing: antialiased + text-size-adjust: none + +footer, header, nav, section, main + display: block + +body + line-height: 1 + +ol, ul + list-style: none + +blockquote, q + quotes: none + +blockquote:before, blockquote:after, q:before, q:after + content: '' + content: none + +table + border-collapse: collapse + border-spacing: 0 + +input + -webkit-appearance: none + border-radius: 0 \ No newline at end of file diff --git a/style/inc/variables.sass b/style/inc/variables.sass new file mode 100644 index 0000000..4b5e43c --- /dev/null +++ b/style/inc/variables.sass @@ -0,0 +1,3 @@ +$background-color: #F0EDEB +$menu-background: #363636 +$space: 25px \ No newline at end of file diff --git a/style/style.sass b/style/style.sass index ed0e546..a444167 100644 --- a/style/style.sass +++ b/style/style.sass @@ -1,7 +1,10 @@ -@import "variables" +@import "inc/variables" +@import "inc/reset" html,body min-height: 100% body - background-color: $background-color \ No newline at end of file + background-color: $background-color + +@import "inc/menu" diff --git a/style/variables.sass b/style/variables.sass deleted file mode 100644 index c2832bd..0000000 --- a/style/variables.sass +++ /dev/null @@ -1 +0,0 @@ -$background-color: #F0EDEB \ No newline at end of file diff --git a/tableau-de-bord.php b/tableau-de-bord.php index 318e84a..75bf2ae 100644 --- a/tableau-de-bord.php +++ b/tableau-de-bord.php @@ -1,6 +1,2 @@ - - - - - - \ No newline at end of file + + \ No newline at end of file