Skip to content

Instantly share code, notes, and snippets.

@jesselau76
Last active October 14, 2018 05:30
Show Gist options
  • Save jesselau76/37f20acb672bbd840735de78d2f91b9f to your computer and use it in GitHub Desktop.
Save jesselau76/37f20acb672bbd840735de78d2f91b9f to your computer and use it in GitHub Desktop.
Extra-child theme - place a search bar on primary menu bar center
/*
Theme Name: Extra Child
Template: Extra
*/
/* =Theme customization starts here
------------------------------------------------------- */
@media (min-width: 1025px) {
#main-header .et-top-search {
float:left;
left:400px;
width:38.2%;
padding: 10px;
bottom:90px;
position: relative;
}
#main-header .et-top-search .et-search-field {
background: rgb(229, 229, 229);
width: 90%;
border: 1px solid grey;
color: #000;
}
#main-header .et-top-search .et-search-submit:before {
font-family:ET-Extra!important;
content: '\e63a';
font-size: 12px;
color: #000;
}
#main-header .et-top-search .et-search-submit{
padding: 10px;
position:absolute;
float:right;
background:0;
font-size:inherit;
line-height:normal;
font-family:inherit;
letter-spacing:normal;
background: yellowgreen;
color: white;
border: 1px solid grey;
border-left: none;
cursor: pointer;
}
#main-header .et-top-search .et-search-submit:hover {
background: #aed75b;
}
}
@media only screen and ( max-width: 1024px ) {
#main-header .et-top-search .et-search-field {
background: rgb(229, 229, 229);
width:80%;
padding: 10px;
color: #000;
-webkit-appearance: none;
border: 1px solid grey;
}
#main-header .et-top-search .et-search-submit:before {
font-family:ET-Extra!important;
content: '\e63a';
font-size: 12px;
color: #000;
}
#main-header .et-top-search .et-search-submit{
padding: 10px;
position:absolute;
background:0;
border:none;
font-size:inherit;
line-height:normal;
font-family:inherit;
letter-spacing:normal;
background: yellowgreen;
color: white;
border: 1px solid grey;
border-left: none;
cursor: pointer;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment