I want to add a style to an adjacent sibling div element which is next to the div with the classes 'top_bar' and 'hide'.
The html code is as shown below,
<body class="active">
    <div id="root">
        <div class="topmost_bar_element">
            <header class="topmost_bar hide"></header>
            <section class="topmost_bar_main">
                <div class="topmost_bar_content">
                    <div class="top_bar hide">
                    <div style="display: flex; height: calc(100% - 28px);"></div>
                </div>
            </section>
        </div>
    </div>
</body>
I have tried adding a style to the adjacent sibling like below,
body.active .top_bar.hide + div {
    height: calc(100% - 0px);
}
But this rule is overridden by the div style height property which is something like below,
    height: calc(100% - 28px);
Without using !important how can I fix this? Thanks.