File: internal_banner.html

package info (click to toggle)
rust-pyo3 0.22.6-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,420 kB
  • sloc: makefile: 58; python: 39; sh: 1
file content (47 lines) | stat: -rw-r--r-- 1,425 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div id='pyo3-internal-banner'>
    <div style="white-space: nowrap;">
        ⚠️ Internal Docs ⚠️ Not Public API 👉
        <a href='https://pyo3.rs/main/doc/pyo3/index.html' style='color:red;text-decoration:underline;'>
            Official Docs Here
        </a>
    </div>
    <style id="pyo3-noscript-style">
        body {
            padding-top: 2em;
        }
    </style>
    <style>
        #pyo3-internal-banner {
            position: fixed;
            display: flex;
            align-items: center;
            justify-content:
                center;
            z-index: 99999;
            color: red;
            left: 0;
            right: 0;
            top: 0;
            height: 2em;
            border: 3px solid red;
            width: 100%;
            overflow-x: hidden;
            background-color: var(--target-background-color);
        }

        @media (max-width: 700px) {
            #pyo3-internal-banner {
                top: 50px;
                margin-bottom: 10px;
            }
        }
    </style>
</div>
<script>
    // when javascript is active, splice the banner into a "sticky" location
    // inside the doc body for best appearance
    banner = document.getElementById("pyo3-internal-banner")
    banner.style.position = "sticky"
    document.getElementsByTagName("main")[0].prepend(banner)
    document.getElementById("pyo3-noscript-style").remove()
</script>