diff --git a/javascripts.js.html b/javascripts.js.html index f358dffbe8df1851f0bccbc8e901817c655e4bff..74cb9b7ff6876217bffc00f60c40e2b8a4d0c003 100644 --- a/javascripts.js.html +++ b/javascripts.js.html @@ -219,6 +219,15 @@ function myInitPages() { // Surligner l'evenement en cours var id_anchor = location.hash.substr(1); //Get the word after the hash from the url if (id_anchor) jQuery('#'+id_anchor).addClass('highlight_anchor'); // ajoute la classe highlight_anchor à l'element autour de l'ancre + + // retourtop + jQuery(window).scroll(function () { + if (jQuery(this).scrollTop() > 300) { + jQuery('.retourtop').fadeIn(); + } else { + jQuery('.retourtop').fadeOut(); + } + }); [(#CONFIG{soyezcreateurs/native_tooltips}|=={on}|non) jQuery(function() { jQuery( document ).tooltip({ diff --git a/noisettes/footer/footer.html b/noisettes/footer/footer.html index 3e76fb8c8e8d4f2cb051da1fe71cd54f4e0fc937..b6a769165b5980d5571d383aca84d98483067fc1 100644 --- a/noisettes/footer/footer.html +++ b/noisettes/footer/footer.html @@ -12,8 +12,11 @@ ] <INCLURE{fond=noisettes/footer/#GET{noisettefooter},env}> <//B_TheRub> -</div><!-- id="contenu" --> +</div><!-- id="contenu" --> <INCLURE{fond=noisettes/footer/footer_pied,env}> +<div class="retourtop"> + <a class="retourtop-link triadeA" href="[(#SELF|trim{'/'})]#[(#ENV{titretop}|sinon{<:soyezcreateurs:sommaire|sc_nettoyer_marqueur:>})]" title="<:soyezcreateurs:retourtop:>" aria-label="<:soyezcreateurs:retourtop:>"><svg class="svg-icon"><use xlink:href="#icon-chevron-thin-up"></use></svg><span class="hide"><:soyezcreateurs:retourtop:></span></a> +</div> [<script src="(#PRODUIRE{fond=javascripts.js})" type="text/javascript"></script>] [(#PLUGIN{SIDR}|oui) [<script src="(#CHEMIN{javascript/jquery.sidr.js}|timestamp)" type="text/javascript"></script>] diff --git a/noisettes/footer/footer_modeedito.html b/noisettes/footer/footer_modeedito.html index 49b192ec569cf652d2484d0b128c0cb2e9811723..3983ec1de0d22d7002e775baeb97aae620925dfa 100644 --- a/noisettes/footer/footer_modeedito.html +++ b/noisettes/footer/footer_modeedito.html @@ -1,7 +1,4 @@ - <div class="retourtop"> - <a class="retourtop-link" href="[(#SELF|trim{'/'})]#[(#ENV{titretop}|sinon{<:soyezcreateurs:sommaire|sc_nettoyer_marqueur:>})]" title="<:soyezcreateurs:retourtop:>" aria-label="<:soyezcreateurs:retourtop:>"><svg class="svg-icon"><use xlink:href="#icon-chevron-thin-up"></use></svg><span class="hide"><:soyezcreateurs:retourtop:></span></a> - </div> -</div><!-- id="content" --> + </div><!-- id="content" --> </div><!-- id="wrapper" --> <nav><div id="navigation" class="equilibre stackable"> <h1 class="nocontent offscreen">Menu de la section</h1> diff --git a/stylessoyezcreateurs.css.html b/stylessoyezcreateurs.css.html index f17c9903e2ed2c83fbfdde13aa5e6743cf6dff9f..20fd829c46e40329052f07054c300f74f349f082 100644 --- a/stylessoyezcreateurs.css.html +++ b/stylessoyezcreateurs.css.html @@ -25,7 +25,6 @@ * a:focus-visible { outline: 3px dashed rgba(80,80,80,0.68); outline-offset: 4px; - background: transparent; } .offscreen { position: absolute; @@ -467,41 +466,30 @@ a[href*="mailto"]:hover { cursor:url("data:image/png;base64,iVBORw0KGgoAAAANSUhE a:active { color: #GET{c_active}; } .retourtop { - position: absolute; - top: 100vh; - right: 0; - bottom: 0; - width: 0; - pointer-events: none; -} - -.retourtop-link { - position: fixed; - position: sticky; - pointer-events: all; - top: calc(100vh - 3rem); - display: inline-block; - text-decoration: none; - font-size: 2rem; - line-height: 3rem; - text-align: center; - width: 3rem; - height: 3rem; - translate: -3rem; - border-radius: 50% 0 0 50%; - padding: 0.25rem; - box-shadow: inset 2px 0px 16px 0px rgb(0 0 0 / 14%); - color: #666; - background-color: rgb(255 255 255 / 60%); - transition: transform 80ms ease-in; -} -.retourtop-link:hover, .retourtop-link:focus { - transform: scale(1.1); - background-color: rgb(255 255 255 / 100%); -} -.retourtop-link:focus { - outline: none; - box-shadow: 0 0 0 3px #4e85c0; + display: inline-block; + clear: both; + position: sticky; + float: right; + bottom: 2rem; + right: 2rem; + width: fit-content; + color: #ffffff; + text-align: center; + font-size: 2rem; + font-weight: bold; + text-decoration: none; + border-right: none; + opacity: .8; + filter: alpha(opacity=80); + transition: opacity 500ms ease-out; + z-index: 99999; +} +.retourtop a { + padding: 1rem; + border: 1px solid transparent; +} +.portailcognac .retourtop a[href]:focus { + background-color: [(#GET{c_triadea}|couleur_extreme|=={000000}|?{#000000,#FFFFFF})]!important; } /*************** STRUCTURE - GENERAL */