saguaros, thank you! I successfully integrated the search module into the header block. But I didn't publish it yet, because I canβt create the style for the stretch search form. I tried to learn JA Flix template, but can't understand, how does it works π
UPD. I found class .head-search in JA Flix. Could I use this class for JA Eventcamp? Shall I add all this code to my custom.css or just some part?:
.head-search .search,
.head-search .form-search {
background: transparent;
border: none;
padding: 0;
position: relative;
height: 96px;
width: 96px; }
@media (max-width: 767.98px) {
.head-search .search,
.head-search .form-search {
height: 64px;
width: 64px; } }
.head-search .search label,
.head-search .search .btn,
.head-search .form-search label,
.head-search .form-search .btn {
display: none !important; }
.head-search .search .form-control, .head-search .search .inputbox,
.head-search .search .search-query,
.head-search .form-search .form-control,
.head-search .form-search .inputbox,
.head-search .form-search .search-query {
background-image: url("../images/search.png");
background-position: 40px center;
background-repeat: no-repeat;
background-color: transparent;
border: 0;
border-radius: 0;
border-left: 1px solid rgba(255, 255, 255, 0.1);
color: #343a40;
position: absolute;
padding: 0 0 0 96px;
right: 0;
top: 0;
height: 96px;
max-width: none;
z-index: 10;
width: 96px;
-webkit-transition: 500ms all;
-o-transition: 500ms all;
transition: 500ms all; }
@media (max-width: 767.98px) {
.head-search .search .form-control, .head-search .search .inputbox,
.head-search .search .search-query,
.head-search .form-search .form-control,
.head-search .form-search .inputbox,
.head-search .form-search .search-query {
background-position: 25px center;
padding: 0 0 0 64px;
height: 64px;
width: 64px; } }
.head-search .search .form-control:focus, .head-search .search .inputbox:focus,
.head-search .search .search-query:focus,
.head-search .form-search .form-control:focus,
.head-search .form-search .inputbox:focus,
.head-search .form-search .search-query:focus {
background-color: #080808;
color: #fff;
width: 384px;
padding-right: 1.6rem; }
@media (max-width: 767.98px) {
.head-search .search .form-control:focus, .head-search .search .inputbox:focus,
.head-search .search .search-query:focus,
.head-search .form-search .form-control:focus,
.head-search .form-search .inputbox:focus,
.head-search .form-search .search-query:focus {
width: 192px; } }
And I can't understand how to use icons fa-search instead of picture ../images/search.png for collapsed search form? Could you tell me the best solution (css class for search form) for this template?