I am editing an AngularJS project and I want to add a background (e.g. Bootstrap Modal) on top of the main DIV when users click on the search input field.

Here is the HTML code:
<div class="main-box">
<div class="search-function" ng-click="showInputForm()">
<img src="../images/my_project/search.png">
</div>
<div class="search-form" ng-if="showForm">
<form ng-submit="textSearch()">
<input type="text" autofocus class="search-input" ng-model="text.value" />
</form>
</div>
</div>
As you can see, a white frame appears when users click on the search icon, and now I want to add a background above the main DIV, except for the white one.
Here is the LESS code:
.search-function {
margin-left: 30%;
}
.search-form {
padding-left: 15%;
padding-right: 15%;
position: relative;
z-index: 0;
.search-input {
color:
background-color:
font-weight: 300;
font-size: 16px;
}
}
How can i achieve this?
source
share