JSFiddle - React, Tailwind, and code Playground

by meo

HTML

<section>
<div>
    <a href="#">touch me!</a>
    <div><a href="#">some other link!</a></div>
</div>
<section>

CSS

div {
    position: relative;
    float: left;
    background: pink;
    padding: 20px;
}

div div {
    display:none;
    position: absolute;
    top:100%;
    left: 0;
    right: 0;
    height: 300px;
    background: red;
}

div:hover div{
    display: block;
}

section {
    height: 60px;
    
    background: brown;
}

section:after {
    content: "";
    position: absolute;
    top:0;
    left:0;
    right:0;
    height: 60px;
    background: rgba(255,255,0,.3);
    pointer-events: none;
}

section:focus:after {
    pointer-events: auto;
}