From bb3196623bd029ffeb0f19bb10c56c765041f2e2 Mon Sep 17 00:00:00 2001 From: hellekin Date: Sun, 26 Jul 2020 13:06:08 +0200 Subject: Fix missing language switch --- assets/css/home.css | 4 ++-- assets/js/ps-app.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/css/home.css b/assets/css/home.css index 0fd479e..2011f76 100644 --- a/assets/css/home.css +++ b/assets/css/home.css @@ -1,3 +1,3 @@ -html[lang='en'] :lang(fr){display:none !important}html[lang='fr'] :lang(en){display:none !important}:lang(en){quotes:'\201C' '\201D' '\2018' '\2019'}:lang(fr){quotes:'« ' ' »'}h1,h2,h3,h4,h5,h6{font-family:'Cormorant Garamond', serif}body{background:rgba(173,151,56,0.68);color:#f3f0e4;font-family:Abel, 'Open Sans', sans-serif;scroll-behavior:smooth}body :visited{text-decoration:underline}body>header{background-color:#6d4e80;position:fixed;right:5vw;bottom:-2vh;left:5vw;padding:1rem;z-index:999;font-size:1.2rem;color:rgba(255,255,255,0.85);overflow:auto;transform:rotate(-2.7deg) translateY(4.5vh) skewX(-5deg)}body>header :link,body>header :visited,body>header footer :link,body>header footer :visited{color:#dcc985;text-decoration:none}body>header h1{text-align:center;margin:0;font-family:'Cormorant Garamond', serif;font-size:7vh;transform:rotate(1.5deg) translateX(5vh) translateY(-1vh)}body>header h1 img{display:none;vertical-align:-1.6rem;align:absmiddle;border:0}body>header section{display:none;max-width:42rem;margin:0 auto;padding-bottom:7rem}body>header footer{position:fixed;left:0;right:0;font-size:smaller;background-color:#6d4e80;display:none;margin:5rem auto 2rem auto;width:80vw}body>header footer>p{text-align:center;margin:4rem auto 2rem auto}body>header footer>nav{margin:0 auto -3.5rem auto;padding:0;display:none;text-align:center;transform:translateY(-7rem)}body>header footer>nav h4{display:inline}body>header footer>nav ul{display:inline-block;margin:0;padding:0;list-style:none}body>header footer>nav li{display:inline-block;margin:0 0.75rem;width:4rem;height:3rem;border:1px solid;border-bottom:3px solid;border-color:transparent;border-top-right-radius:0.5rem;text-align:center}body>header footer>nav li a{position:relative;display:block;width:100%;height:100%;line-height:3rem;margin:0;padding:0;background:rgba(0,0,0,0.25);border-top-right-radius:0.5rem}body>header footer>nav li:hover{border-color:#dcc985}body>header footer>nav li:hover a{font-weight:bold;background:rgba(0,0,0,0.5)}body>header footer:hover>p>span:first-child{display:inline-block;color:transparent;line-height:0}body>header footer:hover>p>span:first-child:before{content:'Copyleft';display:block;color:#f3f0e4;padding-right:0.45rem}body>header footer:hover>p>span:first-child+span{display:inline-block;transform:rotate(180deg);padding-bottom:-0.1rem}body>header footer:hover>nav{display:block}body>header:hover{top:5vh}body>header:hover h1{font-size:2.6rem;transform:rotate(2.7deg) translate(0, 0) skewX(0)}body>header:hover footer{transform:rotate(2.7deg) translateY(-4.5vh) skewX(5deg)}body>header:hover img{display:inline-block}body>header:hover section,body>header:hover footer{display:block;width:80vw;margin:0 auto;padding-bottom:3rem}body>main{background:url(../img/logo-ps.svg) 40% calc(50% - 5vh)/50vw no-repeat fixed;position:fixed;top:0;right:0;bottom:50%;left:0;padding:1rem;min-height:80vh}body>footer{z-index:999;position:fixed;bottom:0;left:0;right:0;display:none;background-color:#6d4e80;display:none;font-size:1rem}body>footer h4{display:inline-block}body>footer>p{text-align:center;margin:4rem auto 2rem auto}body>footer>nav{display:none;max-width:42rem;margin:0 auto -3.5rem auto;padding:0}body>footer>nav ul{display:inline-block;margin:0;padding:0;list-style:none}body>footer>nav li{display:inline-block;margin:0 0.75rem;width:4rem;height:3rem;border:1px solid;border-bottom:3px solid;border-color:transparent;border-top-right-radius:0.5rem;text-align:center}body>footer>nav li a{position:relative;display:block;width:100%;height:100%;line-height:3rem;margin:0;padding:0;background:rgba(0,0,0,0.25);border-top-right-radius:0.5rem}body>footer>nav li:hover{border-color:#dcc985}body>footer>nav li:hover a{font-weight:bold;background:rgba(0,0,0,0.5)}body>footer:hover>p>span:first-child{display:inline-block;color:transparent;line-height:0}body>footer:hover>p>span:first-child:before{content:'Copyleft';display:block;color:#f3f0e4;padding-right:0.4rem}body>footer:hover>p>span+span{display:inline-block;transform:rotate(180deg);padding-bottom:-0.05rem}body>footer:hover nav{display:block}@media screen and (min-device-width: 1024px){header>footer{position:fixed}body>header::-webkit-scrollbar{background-color:#6d4e80;box-shadow:1px 2px 2px 1px rgba(0,0,0,0.4) inset}body>header::-webkit-scrollbar-button{background-color:black}body>header::-webkit-scrollbar-track{background-color:rgba(0,0,0,0.5)}body>header::-webkit-scrollbar-track-piece{background-color:rgba(255,255,255,0.5)}body>header::-webkit-scrollbar-thumb{background-color:#dcc985;box-shadow:1px 2px 2px 1px rgba(0,0,0,0.4)}body>header::-webkit-scrollbar-corner{background-color:red}body>header:hover{overflow-y:auto}body>header:hover ~ footer{position:fixed;bottom:0;display:block}body>header:hover ~ footer>nav{display:block}.media,.libre{display:block;position:absolute;top:0;bottom:5rem;height:100vh}.media:hover{width:70vw;z-index:500}.media h2,.libre h2{display:none}.media{left:0}.media section{float:left;position:relative;height:100%;width:15vw;top:-5vh;left:0;padding-top:5vh;padding-left:1rem;z-index:400;overflow:hidden}.media section h3{font-size:5rem;color:rgba(0,0,0,0.2)}.media section h4,.media section p{display:none}.media section:hover{box-shadow:0px -2px 4px 2px rgba(0,0,0,0.68) inset;transform:rotate(0deg);width:40vw;z-index:500}.media section:hover h3{color:#000}.media section:hover h4,.media section:hover p{display:block;padding:1rem;color:black}.media #gfx{background:rgba(191,138,112,0.7);transform:rotate(-4deg);margin:0 -5vw 0 -2vw;left:0}.media #gfx h3{transform:rotate(4deg) translateX(1vw);font-size:5rem}.media #gfx svg{position:absolute;top:0;left:0;opacity:0.1}.media #gfx:hover{background:rgba(191,138,112,0.9);transform:rotate(0);margin:0}.media #gfx:hover p,.media #gfx:hover h4{display:none}.media #gfx:hover h3{transform:rotate(0) translateX(0) translateY(-4rem)}.media #gfx:hover svg{opacity:0.9}.media #gfx:hover+#txt{margin-left:-3vw}.media #txt{background:rgba(166,191,112,0.7);transform:rotate(6deg);margin:0 -3vw 0 0;color:transparent}.media #txt h3{transform:rotate(-6deg) translateX(-3vw) translateY(-0.1rem)}.media #txt:hover{background:rgba(166,191,112,0.9);transform:rotate(0);margin:0;color:black;padding:1rem}.media #txt:hover h3{transform:rotate(0) translateX(0) translateY(-4.1rem)}.media section h3 a{position:relative;display:block;top:0;left:0;right:0;bottom:0;text-decoration:none;color:inherit}.media #txt:hover p.tagline{position:absolute;top:6rem;font-family:'Cormorant Garamond';font-style:italic;font-size:1.6rem;padding:1rem 2rem}.media #vdo{left:0;background:rgba(112,166,191,0.5);transform:rotate(-5deg);margin:0 0 0 -2vw;width:10vw}.media #vdo p,.media #vdo h4{display:none}.media #vdo video{position:absolute;top:50%;left:50%;min-width:100%;min-height:100%;width:auto;height:auto;transform:translate(-50%, -50%);z-index:-101;opacity:0.1}.media #vdo:hover video{opacity:1}.media #vdo:hover{background:rgba(112,166,191,0.9);margin:0;transform:rotate(0);width:40vw}.media #vdo h3{transform:rotate(5deg) translateX(-2vw)}.media #vdo:hover h3{transform:rotate(0) translateX(0) translateY(-5rem);color:rgba(109,144,162,0.7);font-size:18vw}.media #vdo:hover h3 a{display:block;height:100%;width:100%}.libre{right:0;width:32vw}.libre>section h3{color:#6d4e80;font-size:7vh;margin:0;padding:0}.libre>section p{color:rgba(0,0,0,0.7);font-size:4.9vh;margin:0}.libre>section h3 a{color:#6d4e80;text-decoration:none}.libre #participation{transform:rotate(-4deg) translateY(6vh)}.libre #engagement{transform:translate(0.5vw, 14vh)}.libre #cooperation{transform:rotate(2deg) translate(0rem, 19.5vh)}}@media screen and (max-device-width: 1023px){body>header>h1{font-size:100rem;margin:5rem auto;width:80%}body>main{background:url(../img/logo-ps.svg) center calc(92% - 50vh)/contain no-repeat fixed}}.sinewave.w0{fill:rgba(240,40,142,0.5)}.sinewave.w1{fill:rgba(140,140,42,0.5)}.sinewave.w2{fill:rgba(240,142,1,0.5)}.sinewave.w3{fill:rgba(0,110,12,0.5)}#lang-switch{border:2px solid rgba(173,151,56,0.68);border-radius:1rem;padding:0 0.5rem;background:inherit;position:absolute;top:0;left:0} +html[lang='en'] :lang(fr){display:none !important}html[lang='fr'] :lang(en){display:none !important}:lang(en){quotes:'\201C' '\201D' '\2018' '\2019'}:lang(fr){quotes:'« ' ' »'}h1,h2,h3,h4,h5,h6{font-family:'Cormorant Garamond', serif}body{background:rgba(173,151,56,0.68);color:#f3f0e4;font-family:Abel, 'Open Sans', sans-serif;scroll-behavior:smooth}body :visited{text-decoration:underline}body>header{background-color:#6d4e80;position:fixed;right:5vw;bottom:-2vh;left:5vw;padding:1rem;z-index:999;font-size:1.2rem;color:rgba(255,255,255,0.85);overflow:auto;transform:rotate(-2.7deg) translateY(4.5vh) skewX(-5deg)}body>header :link,body>header :visited,body>header footer :link,body>header footer :visited{color:#dcc985;text-decoration:none}body>header h1{text-align:center;margin:0;font-family:'Cormorant Garamond', serif;font-size:7vh;transform:rotate(1.5deg) translateX(5vh) translateY(-1vh)}body>header h1 img{display:none;vertical-align:-1.6rem;align:absmiddle;border:0}body>header section{display:none;max-width:42rem;margin:0 auto;padding-bottom:7rem}body>header footer{position:fixed;left:0;right:0;font-size:smaller;background-color:#6d4e80;display:none;margin:5rem auto 2rem auto;width:80vw}body>header footer>p{text-align:center;margin:4rem auto 2rem auto}body>header footer>nav{margin:0 auto -3.5rem auto;padding:0;display:none;text-align:center;transform:translateY(-7rem)}body>header footer>nav h4{display:inline}body>header footer>nav ul{display:inline-block;margin:0;padding:0;list-style:none}body>header footer>nav li{display:inline-block;margin:0 0.75rem;width:4rem;height:3rem;border:1px solid;border-bottom:3px solid;border-color:transparent;border-top-right-radius:0.5rem;text-align:center}body>header footer>nav li a{position:relative;display:block;width:100%;height:100%;line-height:3rem;margin:0;padding:0;background:rgba(0,0,0,0.25);border-top-right-radius:0.5rem}body>header footer>nav li:hover{border-color:#dcc985}body>header footer>nav li:hover a{font-weight:bold;background:rgba(0,0,0,0.5)}body>header footer:hover>p>span:first-child{display:inline-block;color:transparent;line-height:0}body>header footer:hover>p>span:first-child:before{content:'Copyleft';display:block;color:#f3f0e4;padding-right:0.45rem}body>header footer:hover>p>span:first-child+span{display:inline-block;transform:rotate(180deg);padding-bottom:-0.1rem}body>header footer:hover>nav{display:block}body>header:hover{top:5vh}body>header:hover h1{font-size:2.6rem;transform:rotate(2.7deg) translate(0, 0) skewX(0)}body>header:hover footer{transform:rotate(2.7deg) translateY(-4.5vh) skewX(5deg)}body>header:hover img{display:inline-block}body>header:hover section,body>header:hover footer{display:block;width:80vw;margin:0 auto;padding-bottom:3rem}body>main{background:url(../img/logo-ps.svg) 40% calc(50% - 5vh)/50vw no-repeat fixed;position:fixed;top:0;right:0;bottom:50%;left:0;padding:1rem;min-height:80vh}body>footer{z-index:999;position:fixed;bottom:0;left:0;right:0;display:none;background-color:#6d4e80;display:none;font-size:1rem}body>footer h4{display:inline-block}body>footer>p{text-align:center;margin:4rem auto 2rem auto}body>footer>nav{display:none;max-width:42rem;margin:0 auto -3.5rem auto;padding:0}body>footer>nav ul{display:inline-block;margin:0;padding:0;list-style:none}body>footer>nav li{display:inline-block;margin:0 0.75rem;width:4rem;height:3rem;border:1px solid;border-bottom:3px solid;border-color:transparent;border-top-right-radius:0.5rem;text-align:center}body>footer>nav li a{position:relative;display:block;width:100%;height:100%;line-height:3rem;margin:0;padding:0;background:rgba(0,0,0,0.25);border-top-right-radius:0.5rem}body>footer>nav li:hover{border-color:#dcc985}body>footer>nav li:hover a{font-weight:bold;background:rgba(0,0,0,0.5)}body>footer:hover>p>span:first-child{display:inline-block;color:transparent;line-height:0}body>footer:hover>p>span:first-child:before{content:'Copyleft';display:block;color:#f3f0e4;padding-right:0.4rem}body>footer:hover>p>span+span{display:inline-block;transform:rotate(180deg);padding-bottom:-0.05rem}body>footer:hover nav{display:block}@media screen and (min-device-width: 1024px){header>footer{position:fixed}body>header::-webkit-scrollbar{background-color:#6d4e80;box-shadow:1px 2px 2px 1px rgba(0,0,0,0.4) inset}body>header::-webkit-scrollbar-button{background-color:black}body>header::-webkit-scrollbar-track{background-color:rgba(0,0,0,0.5)}body>header::-webkit-scrollbar-track-piece{background-color:rgba(255,255,255,0.5)}body>header::-webkit-scrollbar-thumb{background-color:#dcc985;box-shadow:1px 2px 2px 1px rgba(0,0,0,0.4)}body>header::-webkit-scrollbar-corner{background-color:red}body>header:hover{overflow-y:auto}body>header:hover ~ footer{position:fixed;bottom:0;display:block}body>header:hover ~ footer>nav{display:block}.media,.libre{display:block;position:absolute;top:0;bottom:5rem;height:100vh}.media:hover{width:70vw;z-index:500}.media h2,.libre h2{display:none}.media{left:0}.media section{float:left;position:relative;height:100%;width:15vw;top:-5vh;left:0;padding-top:5vh;padding-left:1rem;z-index:400;overflow:hidden}.media section h3{font-size:5rem;color:rgba(0,0,0,0.2)}.media section h4,.media section p{display:none}.media section:hover{box-shadow:0px -2px 4px 2px rgba(0,0,0,0.68) inset;transform:rotate(0deg);width:40vw;z-index:500}.media section:hover h3{color:#000}.media section:hover h4,.media section:hover p{display:block;padding:1rem;color:black}.media #gfx{background:rgba(191,138,112,0.7);transform:rotate(-4deg);margin:0 -5vw 0 -2vw;left:0}.media #gfx h3{transform:rotate(4deg) translateX(1vw);font-size:5rem}.media #gfx svg{position:absolute;top:0;left:0;opacity:0.1}.media #gfx:hover{background:rgba(191,138,112,0.9);transform:rotate(0);margin:0}.media #gfx:hover p,.media #gfx:hover h4{display:none}.media #gfx:hover h3{transform:rotate(0) translateX(0) translateY(-4rem)}.media #gfx:hover svg{opacity:0.9}.media #gfx:hover+#txt{margin-left:-3vw}.media #txt{background:rgba(166,191,112,0.7);transform:rotate(6deg);margin:0 -3vw 0 0;color:transparent}.media #txt h3{transform:rotate(-6deg) translateX(-3vw) translateY(-0.1rem)}.media #txt:hover{background:rgba(166,191,112,0.9);transform:rotate(0);margin:0;color:black;padding:1rem}.media #txt:hover h3{transform:rotate(0) translateX(0) translateY(-4.1rem)}.media section h3 a{position:relative;display:block;top:0;left:0;right:0;bottom:0;text-decoration:none;color:inherit}.media #txt:hover p.tagline{position:absolute;top:6rem;font-family:'Cormorant Garamond';font-style:italic;font-size:1.6rem;padding:1rem 2rem}.media #vdo{left:0;background:rgba(112,166,191,0.5);transform:rotate(-5deg);margin:0 0 0 -2vw;width:10vw}.media #vdo p,.media #vdo h4{display:none}.media #vdo video{position:absolute;top:50%;left:50%;min-width:100%;min-height:100%;width:auto;height:auto;transform:translate(-50%, -50%);z-index:-101;opacity:0.1}.media #vdo:hover video{opacity:1}.media #vdo:hover{background:rgba(112,166,191,0.9);margin:0;transform:rotate(0);width:40vw}.media #vdo h3{transform:rotate(5deg) translateX(-2vw)}.media #vdo:hover h3{transform:rotate(0) translateX(0) translateY(-5rem);color:rgba(109,144,162,0.7);font-size:18vw}.media #vdo:hover h3 a{display:block;height:100%;width:100%}.libre{right:0;width:32vw}.libre>section h3{color:#6d4e80;font-size:7vh;margin:0;padding:0}.libre>section p{color:rgba(0,0,0,0.7);font-size:4.9vh;margin:0}.libre>section h3 a{color:#6d4e80;text-decoration:none}.libre #participation{transform:rotate(-4deg) translateY(6vh)}.libre #engagement{transform:translate(0.5vw, 14vh)}.libre #cooperation{transform:rotate(2deg) translate(0rem, 19.5vh)}}@media screen and (max-device-width: 1023px){body>header>h1{font-size:100rem;margin:5rem auto;width:80%}body>main{background:url(../img/logo-ps.svg) center calc(92% - 50vh)/contain no-repeat fixed}}.sinewave.w0{fill:rgba(240,40,142,0.5)}.sinewave.w1{fill:rgba(140,140,42,0.5)}.sinewave.w2{fill:rgba(240,142,1,0.5)}.sinewave.w3{fill:rgba(0,110,12,0.5)}#lang-switch{border:2px solid rgba(173,151,56,0.68);border-radius:1rem;padding:0 0.5rem;background:inherit;position:absolute;top:4px;right:4px} -/*# sourceMappingURL=home.css.map */ \ No newline at end of file +/*# sourceMappingURL=home.css.map */ diff --git a/assets/js/ps-app.js b/assets/js/ps-app.js index c599cf2..ec8037f 100644 --- a/assets/js/ps-app.js +++ b/assets/js/ps-app.js @@ -26,7 +26,7 @@ } // EN/FR switch - $('footer') + $('body') .append('') $('#lang-switch').click(function(e) { var lang = $('html').attr('lang') -- cgit v1.2.3