Difference between revisions of "Template:RefTool"

From Hgames Wiki
Jump to: navigation, search
Line 1: Line 1:
<style>
+
<sup class="plainlinks nourlexpansion citation" {{#ifeq:{{{noid}}}|noid||id="ref_{{{1}}}"}} style="position: relative; display: inline-block; cursor: help;"><span class="hover-trigger" style="border-bottom: 1px dotted #999;">{{#if:{{{2|}}}|[[#endnote_{{{1}}}|{{{2}}}]]|[{{fullurl:{{FULLPAGENAME}}}}#endnote_{{anchorencode:{{{1|}}}}}]}}</span><span class="custom-tooltip" style="display: none; position: absolute; z-index: 9999; bottom: 140%; left: 50%; transform: translateX(-50%); width: 260px; background: #ffffff; color: #111111; font-family: sans-serif; font-size: 13px; font-weight: normal; font-style: normal; line-height: 1.4; text-align: left; border: 1px solid #bbbbbb; border-radius: 5px; padding: 8px 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); font-style: normal;">{{{3|}}}</span></sup>
.local-ref {
 
    position: relative;
 
    display: inline-block;
 
    cursor: help;
 
}
 
.local-ref-text {
 
    visibility: hidden;
 
    width: 260px;
 
    background-color: #ffffff;
 
    color: #111111;
 
    font-family: sans-serif; /* Гротеск */
 
    font-size: 13px;
 
    line-height: 1.4;
 
    font-weight: normal;
 
    font-style: normal;
 
    text-align: left;
 
    border: 1px solid #bbbbbb;
 
    border-radius: 5px;
 
    padding: 8px 12px;
 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
 
    position: absolute;
 
    z-index: 9999;
 
    bottom: 135%;
 
    left: 50%;
 
    margin-left: -130px;
 
    opacity: 0;
 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
 
    transform: translateY(4px);
 
    pointer-events: none;
 
}
 
.local-ref-text::after {
 
    content: "";
 
    position: absolute;
 
    top: 100%;
 
    left: 50%;
 
    margin-left: -6px;
 
    border-width: 6px;
 
    border-style: solid;
 
    border-color: #ffffff transparent transparent transparent;
 
}
 
.local-ref:hover .local-ref-text {
 
    visibility: visible;
 
    opacity: 1;
 
    transform: translateY(0);
 
}
 
</style><sup class="plainlinks nourlexpansion citation local-ref" {{#ifeq:{{{noid}}}|noid||id="ref_{{{1}}}"}}>{{#if:{{{2|}}}|[[#endnote_{{{1}}}|{{{2}}}]]|[{{fullurl:{{FULLPAGENAME}}}}#endnote_{{anchorencode:{{{1|}}}}}]}}<span class="local-ref-text">{{{3|}}}</span></sup><noinclude>
 
{{documentation}}
 
</noinclude>
 

Revision as of 18:50, 20 July 2026

[1]