diff --git a/less/main.less b/less/main.less index 21427c0..b79b221 100644 --- a/less/main.less +++ b/less/main.less @@ -16,16 +16,23 @@ .srent{ margin-top: 9px; padding:0; + + &.border{ + margin-top: 8px; + border:1px solid #eaeade; + border-bottom: 0; + } + img{ vertical-align: middle; } } a.disabled{ - background-color: #fff; color: #777; text-decoration: none; cursor: not-allowed; } + } } diff --git a/main.js b/main.js index 7aec2f1..75a29c9 100644 --- a/main.js +++ b/main.js @@ -11,7 +11,8 @@ var contentDeliveryUrl = "https://content-delivery.istex.fr/web-header/" ; -// contentDeliveryUrl = ~window.location.hostname.match(/localhost|127\.0\.0\.1/) && window.location.href || contentDeliveryUrl; + // uncomment for local use +// contentDeliveryUrl = window.location.hostname.match(/localhost|127\.0\.0\.1/) && window.location.href || contentDeliveryUrl; $.ajax({ url: contentDeliveryUrl + "public/css/main.min.css", @@ -33,7 +34,8 @@ .find("[href*='" + window.location.hostname + "']").addClass('disabled').click(preventDefaultEvent).end() ; - window.location.hostname === "www.istex.fr" && $webHeader.find(".logoistex").remove(); + window.location.hostname === "wiki.istex.fr" && $webHeader.find('.logoistex').remove(); + window.location.hostname === "www.istex.fr" && $webHeader.find(".srent").addClass('border'); } }); diff --git a/public/css/main.min.css b/public/css/main.min.css index a63eecf..2c9812a 100644 --- a/public/css/main.min.css +++ b/public/css/main.min.css @@ -1 +1 @@ -.sandbox a,.sandbox abbr,.sandbox acronym,.sandbox address,.sandbox applet,.sandbox article,.sandbox aside,.sandbox audio,.sandbox b,.sandbox big,.sandbox blockquote,.sandbox body,.sandbox canvas,.sandbox caption,.sandbox center,.sandbox cite,.sandbox code,.sandbox dd,.sandbox del,.sandbox details,.sandbox dfn,.sandbox div,.sandbox dl,.sandbox dt,.sandbox em,.sandbox embed,.sandbox fieldset,.sandbox figcaption,.sandbox figure,.sandbox footer,.sandbox form,.sandbox h1,.sandbox h2,.sandbox h3,.sandbox h4,.sandbox h5,.sandbox h6,.sandbox header,.sandbox hgroup,.sandbox html,.sandbox i,.sandbox iframe,.sandbox img,.sandbox ins,.sandbox kbd,.sandbox label,.sandbox legend,.sandbox li,.sandbox mark,.sandbox menu,.sandbox nav,.sandbox object,.sandbox ol,.sandbox output,.sandbox p,.sandbox pre,.sandbox q,.sandbox ruby,.sandbox s,.sandbox samp,.sandbox section,.sandbox small,.sandbox span,.sandbox strike,.sandbox strong,.sandbox sub,.sandbox summary,.sandbox sup,.sandbox table,.sandbox tbody,.sandbox td,.sandbox tfoot,.sandbox th,.sandbox thead,.sandbox time,.sandbox tr,.sandbox tt,.sandbox u,.sandbox ul,.sandbox var,.sandbox video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.sandbox article,.sandbox aside,.sandbox details,.sandbox figcaption,.sandbox figure,.sandbox footer,.sandbox header,.sandbox hgroup,.sandbox menu,.sandbox nav,.sandbox section{display:block}.sandbox body{line-height:1}.sandbox ol,.sandbox ul{list-style:none}.sandbox blockquote,.sandbox q{quotes:none}.sandbox blockquote:after,.sandbox blockquote:before,.sandbox q:after,.sandbox q:before{content:'';content:none}.sandbox table{border-collapse:collapse;border-spacing:0}#istex-web-header #surentete{margin:0 auto;padding:0;font-family:Arial,Helvetica,sans-serif;color:#333;height:40px;width:990px;position:relative;z-index:1000}#istex-web-header #barresrent{border-bottom:1px solid #eaeade}#istex-web-header .bsbb,#istex-web-header .srent li{box-sizing:border-box}#istex-web-header .clear{clear:both}#istex-web-header .logoistex{position:absolute;margin:3px 0 0 0}#istex-web-header .logoanr img,#istex-web-header .logoistex img{float:left}#istex-web-header .srent{margin:0 50px 0 0;padding:10px 0 0 0;list-style-type:none;position:relative;background:0 0;float:right}#istex-web-header .srent img{padding:0 7px 0 20px}#istex-web-header .srent li{float:left;position:relative;display:block;height:30px;line-height:30px;padding-right:10px}#istex-web-header .srent a:link{text-decoration:none;height:30px}#istex-web-header .srent a:active,#istex-web-header .srent a:hover,#istex-web-header .srent a:visited{text-decoration:underline}#istex-web-header .srent a:active,#istex-web-header .srent a:hover,#istex-web-header .srent a:link,#istex-web-header .srent a:visited{color:#000;display:block;text-align:center;font-size:.8em}#istex-web-header .srent li li{background-color:transparent;border-right:1px solid #eaeade;border-bottom:1px solid #eaeade;border-left:1px solid #eaeade;padding-left:10px;color:#fff}#istex-web-header .srent li li,#istex-web-header .srent li li a,#istex-web-header .srent li li a:focus,#istex-web-header .srent li li a:hover{display:block;width:100px}#istex-web-header .srent li li a:active,#istex-web-header .srent li li a:focus,#istex-web-header .srent li li a:hover,#istex-web-header .srent li li a:link,#istex-web-header .srent li li a:visited{text-align:left}#istex-web-header .srent li li a:focus,#istex-web-header .srent li li a:hover{text-align:left;display:block;width:100px;height:30px}#istex-web-header .srent ul{position:absolute;display:none;padding:0;list-style-type:none}#istex-web-header .srent li ul a{float:left}#istex-web-header .srent li:focus ul,#istex-web-header .srent li:hover ul{display:block}#istex-web-header .srent li li img{padding:0 5px 0 3px}#istex-web-header #surentete{border-bottom:1px solid #eaeade}#istex-web-header #surentete .srent,#istex-web-header #surentete .srentss{background-color:#fff}#istex-web-header #surentete .srentss{border:1px solid #eaeade}#istex-web-header #surentete .srentss>li{border:0}#istex-web-header #surentete .srentss>li+li{border-top:1px solid #eaeade}#istex-web-header #surentete .srent{margin-top:9px;padding:0}#istex-web-header #surentete .srent img{vertical-align:middle}#istex-web-header #surentete a.disabled{background-color:#fff;color:#777;text-decoration:none;cursor:not-allowed}#dokuwiki__site{position:relative} \ No newline at end of file +.sandbox a,.sandbox abbr,.sandbox acronym,.sandbox address,.sandbox applet,.sandbox article,.sandbox aside,.sandbox audio,.sandbox b,.sandbox big,.sandbox blockquote,.sandbox body,.sandbox canvas,.sandbox caption,.sandbox center,.sandbox cite,.sandbox code,.sandbox dd,.sandbox del,.sandbox details,.sandbox dfn,.sandbox div,.sandbox dl,.sandbox dt,.sandbox em,.sandbox embed,.sandbox fieldset,.sandbox figcaption,.sandbox figure,.sandbox footer,.sandbox form,.sandbox h1,.sandbox h2,.sandbox h3,.sandbox h4,.sandbox h5,.sandbox h6,.sandbox header,.sandbox hgroup,.sandbox html,.sandbox i,.sandbox iframe,.sandbox img,.sandbox ins,.sandbox kbd,.sandbox label,.sandbox legend,.sandbox li,.sandbox mark,.sandbox menu,.sandbox nav,.sandbox object,.sandbox ol,.sandbox output,.sandbox p,.sandbox pre,.sandbox q,.sandbox ruby,.sandbox s,.sandbox samp,.sandbox section,.sandbox small,.sandbox span,.sandbox strike,.sandbox strong,.sandbox sub,.sandbox summary,.sandbox sup,.sandbox table,.sandbox tbody,.sandbox td,.sandbox tfoot,.sandbox th,.sandbox thead,.sandbox time,.sandbox tr,.sandbox tt,.sandbox u,.sandbox ul,.sandbox var,.sandbox video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.sandbox article,.sandbox aside,.sandbox details,.sandbox figcaption,.sandbox figure,.sandbox footer,.sandbox header,.sandbox hgroup,.sandbox menu,.sandbox nav,.sandbox section{display:block}.sandbox body{line-height:1}.sandbox ol,.sandbox ul{list-style:none}.sandbox blockquote,.sandbox q{quotes:none}.sandbox blockquote:after,.sandbox blockquote:before,.sandbox q:after,.sandbox q:before{content:'';content:none}.sandbox table{border-collapse:collapse;border-spacing:0}#istex-web-header #surentete{margin:0 auto;padding:0;font-family:Arial,Helvetica,sans-serif;color:#333;height:40px;width:990px;position:relative;z-index:1000}#istex-web-header #barresrent{border-bottom:1px solid #eaeade}#istex-web-header .bsbb,#istex-web-header .srent li{box-sizing:border-box}#istex-web-header .clear{clear:both}#istex-web-header .logoistex{position:absolute;margin:3px 0 0 0}#istex-web-header .logoanr img,#istex-web-header .logoistex img{float:left}#istex-web-header .srent{margin:0 50px 0 0;padding:10px 0 0 0;list-style-type:none;position:relative;background:0 0;float:right}#istex-web-header .srent img{padding:0 7px 0 20px}#istex-web-header .srent li{float:left;position:relative;display:block;height:30px;line-height:30px;padding-right:10px}#istex-web-header .srent a:link{text-decoration:none;height:30px}#istex-web-header .srent a:active,#istex-web-header .srent a:hover,#istex-web-header .srent a:visited{text-decoration:underline}#istex-web-header .srent a:active,#istex-web-header .srent a:hover,#istex-web-header .srent a:link,#istex-web-header .srent a:visited{color:#000;display:block;text-align:center;font-size:.8em}#istex-web-header .srent li li{background-color:transparent;border-right:1px solid #eaeade;border-bottom:1px solid #eaeade;border-left:1px solid #eaeade;padding-left:10px;color:#fff}#istex-web-header .srent li li,#istex-web-header .srent li li a,#istex-web-header .srent li li a:focus,#istex-web-header .srent li li a:hover{display:block;width:100px}#istex-web-header .srent li li a:active,#istex-web-header .srent li li a:focus,#istex-web-header .srent li li a:hover,#istex-web-header .srent li li a:link,#istex-web-header .srent li li a:visited{text-align:left}#istex-web-header .srent li li a:focus,#istex-web-header .srent li li a:hover{text-align:left;display:block;width:100px;height:30px}#istex-web-header .srent ul{position:absolute;display:none;padding:0;list-style-type:none}#istex-web-header .srent li ul a{float:left}#istex-web-header .srent li:focus ul,#istex-web-header .srent li:hover ul{display:block}#istex-web-header .srent li li img{padding:0 5px 0 3px}#istex-web-header #surentete{border-bottom:1px solid #eaeade}#istex-web-header #surentete .srent,#istex-web-header #surentete .srentss{background-color:#fff}#istex-web-header #surentete .srentss{border:1px solid #eaeade}#istex-web-header #surentete .srentss>li{border:0}#istex-web-header #surentete .srentss>li+li{border-top:1px solid #eaeade}#istex-web-header #surentete .srent{margin-top:9px;padding:0}#istex-web-header #surentete .srent.border{margin-top:8px;border:1px solid #eaeade;border-bottom:0}#istex-web-header #surentete .srent img{vertical-align:middle}#istex-web-header #surentete a.disabled{color:#777;text-decoration:none;cursor:not-allowed}#dokuwiki__site{position:relative} \ No newline at end of file