CSS hover popup menu

by slace

HTML

<section class="popup">
    <header>
        <h1>Expand</h1>
    </header>
    
    <div role="main">
        <form action="#" method="POST" class="span12">
            <fieldset>
                <legend>Select a date range</legend>
                <div class="clearfix">
                    <label for="start">Start Date:</label>
                    <div class="input">
                        <input id="start" name="start" data-kendo="date" />
                    </div>
                </div>
                <div class="clearfix">
                    <label for="end">End Date:</label>
                    <div class="input">
                        <input id="end" name="end" data-kendo="date" />
                    </div>
                </div>
                <div class="actions">
                    <button type="submit" class="btn primary">Filter</button>
                </div>
            </fieldset>
        </form>
    </div>
    
</section>

SCSS

body {
    width: 100%;
}

.popup {
    position: absolute;
    top: 0;
    right: 10px;
    width: 200px;
    
    background-color: rgba(255, 0, 170, 0.5);
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;

    padding: 5px 10px 10px;
    
    &:hover {
        background-color: rgba(255, 0, 170, 0.7)    
    }
    
    header {
        position: relative;
        text-align: center;
        
        &:hover + div {
            display: block;
        }
    }

    div[role="main"] {
        display: none;
    
        &:hover {
            display:block;
        }
    }
}