| HTML |
|---|
<style> /* Basic modal backdrop */ #wipo-modal { position: fixed; top: 0; left: 0; width: 100%; height:100%; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 9999; } /* Visible when targeted */ #wipo-modal:target { display: flex; } /* Modal content */ .wipo-modal-content { background: #ffffff; padding: 0; border-radius: 8px; max-width: 90%; max-height: 90%; box-shadow: 0 4px 20px rgba(0,0,0,0.4); position: relative; } /* Image styling */ .wipo-modal-content img { display: block; width: 100%; height: auto; border-radius: 8px; } /* Close button */ .wipo-close { position: absolute; top: 10px; right: 15px; font-size: 22px; text-decoration: none; color: #ffffff; background: rgba(0,0,0,0.5); padding: 4px 10px; border-radius: 6px; font-weight: bold; } .wipo-close:hover { background: rgba(0,0,0,0.8); } /* For dark mode */ @media (prefers-color-scheme: dark) { .wipo-modal-content { background: #0b1220; } } </style> <!-- Clickable link that opens the modal --> <p>A <a href="#wipo-modal" style="color:#005b9e; font-weight:600; cursor:pointer;">Web contact Form</a> is available by clicking on the "contact us" link at the top right corner of any WIPO DAS webpage (<a href="https://www3.wipo.int/contact/en/area.jsp?area=das">WIPO DAS Support contact form</a>.)</p> </p> <!-- Modal (hidden until :target is triggered) --> <div id="wipo-modal"> <div class="wipo-modal-content"> <a href="#" class="wipo-close">✕</a> <img src="https://confluence.wipo.int/confluence/download/attachments/1640667157/image-2025-11-10_9-52-53.png?api=v2" alt="Contact Us screenshot"> </div> </div> |
| HTML |
<style> /* ---------- Modal base ---------- */ #wipo-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .18s ease-out; z-index: 9999; } #wipo-modal:target { opacity: 1; pointer-events: auto; } /* Backdrop is an anchor so clicking it navigates to '#' (closing modal) */ #wipo-modal .wipo-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); content: ""; display: block; } /* Modal content */ #wipo-modal .wipo-modal-content { position: relative; background: #ffffff; border-radius: 10px; max-width: 90vw; max-height: 90vh; box-shadow: 0 10px 30px rgba(0,0,0,0.4); overflow: hidden; transform: translateY(10px) scale(0.98); transition: transform .18s ease-out; } #wipo-modal:target .wipo-modal-content { transform: translateY(0) scale(1); } /* Image fills modal */ #wipo-modal .wipo-modal-content img { display:block; width:100%; height:auto; } /* Close button */ #wipo-modal .wipo-close { position:absolute; top:10px; right:12px; font-size:22px; text-decoration:none; font-weight:700; color:#fff; background:rgba(0,0,0,0.55); padding:3px 10px; border-radius:8px; } #wipo-modal .wipo-close:hover { background: rgba(0,0,0,0.8); } /* ---------- Hover preview over the words ---------- */ .wipo-hover { position: relative; display:inline-block; } .wipo-hover .wipo-hovercard { position: absolute; top: 1.6em; left: 0; display: none; background: #ffffff; border:1px solid #cbd5e1; border-radius:8px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); padding: 6px; z-index: 50; max-width: 520px; /* adjust preview size */ } .wipo-hover .wipo-hovercard img { display:block; width:100%; height:auto; border-radius:6px; } .wipo-hover:hover .wipo-hovercard { display:block; animation: wipoFade .15s ease-out; } /* Small pointer arrow */ .wipo-hover .wipo-hovercard::before { content: ""; position:absolute; top:-6px; left:14px; border-width: 6px; border-style: solid; border-color: transparent transparent #ffffff transparent; } /* Animation */ @keyframes wipoFade { from { opacity:0; transform: translateY(4px) scale(0.995); } to { opacity:1; transform: translateY(0) scale(1); } } /* Dark mode */ @media (prefers-color-scheme: dark) { #wipo-modal .wipo-modal-content { background:#0b1220; } .wipo-hover .wipo-hovercard { background:#0b1220; border-color:#334155; } .wipo-hover .wipo-hovercard::before { border-color: transparent transparent #0b1220 transparent; } } </style> <p> Web Form contact: <!-- HOVERClickable PREVIEWlink +that CLICKopens TOthe OPENmodal MODAL --> <p>A <span class="wipo-hover"> <a href="#wipo-modal" style="color:#005b9e; font-weight:600; cursor:pointer;">contact>Web contact us<Form</a> <span class="wipo-hovercard" aria-hidden="true"> <img src="https://confluence.wipo.int/confluence/download/attachments/1640667157/image-2025-11-10_9-52-53.png?api=v2" alt=""> </span> </span> <a href="#wipo-modal" style="color:#005b9e; font-weight:600; cursor:pointer;">Web contact Form</a> is available by clicking on the "contact us" link at the top right corner of any WIPO DAS webpage (<a href="https://www3.wipo.int/contact/en/area.jsp?area=das">WIPO DAS Support contact form</a>.)</p> </p> <!-- MODAL (opens on click, closes on backdrop or ✕) --> <div id="wipo-modal" role="dialog" aria-modal="true" aria-label="Contact Us preview"> <!-- Backdrop is an anchor so clicking closes (goes to '#') --> <a class="wipo-backdrop" href="#" aria-label="Close dialog"></a> <div class="wipo-modal-content"> <a href="#" class="wipo-close" aria-label="Close">✕</a> <img src="https://confluence.wipo.int/confluence/download/attachments/1640667157/image-2025-11-10_9-52-53.png?api=v2" alt="Contact Us screenshot"> </div> </div> |
...