Search

I've removed the changes made to the search button's layout

 To adjust the menu bar length for mobile devices and maintain the search button's position while removing the changes made earlier, you can apply media queries to target specific screen sizes. Here's a revised version of the CSS code:


```css

/* Default styles */


.header-search {

  position: relative;

  right: 0; /* Reset the right position */

}


.header-search li {

  list-style: none;

}


.header-search a.search {

  background-color: #333333;

  cursor: pointer;

  display: block;

  height: 60px;

  text-align: center;

  position: relative;

  right: 0; /* Reset the right position */

  top: 0;

  width: 60px;

  font-size: 14px;

  border-radius: 0;

}


.header-search a.search:hover {

  background-color: $(main.color);

}


.header-search a.search:before {

  color: #EEEEEE;

  content: '\f002';

  font-family: FontAwesome;

  font-size: inherit;

  text-rendering: auto;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

  line-height: 60px;

}


.header-search a.search:hover:before,

.header-search a.search.active:before {

  color: #fff;

}


.header-search a.search.active {

  background-color: $(main.color);

  border-left: 0;

  border-radius: 0;

}


.header-search a.search.active form,

.header-search a.search form {

  display: none;

  position: absolute;

  right: 60px; /* Adjust position for mobile */

  top: 0;

  z-index: 2;

}


.header-search a.search form input {

  box-shadow: none;

  height: 60px;

  padding: 0 12px;

  width: 160px;

  background-color: #333333;

  color: #EEE;

  font-family: inherit;

  line-height: 60px;

  margin-top: 0;

  border-radius: 0;

  border: 0;

}


/* Media query for mobile devices */

@media screen and (max-width: 767px) {

  .header-search {

    position: relative;

    right: 2inch; /* Adjust position for mobile */

  }

}

```


In this version:


-To adjust the menu bar length for mobile devices and maintain the search button's position while removing the changes made earlier, you can apply media queries to target specific screen sizes. Here's a revised version of the CSS code:


```css

/* Default styles */


.header-search {

  position: relative;

  right: 0; /* Reset the right position */

}


.header-search li {

  list-style: none;

}


.header-search a.search {

  background-color: #333333;

  cursor: pointer;

  display: block;

  height: 60px;

  text-align: center;

  position: relative;

  right: 0; /* Reset the right position */

  top: 0;

  width: 60px;

  font-size: 14px;

  border-radius: 0;

}


.header-search a.search:hover {

  background-color: $(main.color);

}


.header-search a.search:before {

  color: #EEEEEE;

  content: '\f002';

  font-family: FontAwesome;

  font-size: inherit;

  text-rendering: auto;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

  line-height: 60px;

}


.header-search a.search:hover:before,

.header-search a.search.active:before {

  color: #fff;

}


.header-search a.search.active {

  background-color: $(main.color);

  border-left: 0;

  border-radius: 0;

}


.header-search a.search.active form,

.header-search a.search form {

  display: none;

  position: absolute;

  right: 60px; /* Adjust position for mobile */

  top: 0;

  z-index: 2;

}


.header-search a.search form input {

  box-shadow: none;

  height: 60px;

  padding: 0 12px;

  width: 160px;

  background-color: #333333;

  color: #EEE;

  font-family: inherit;

  line-height: 60px;

  margin-top: 0;

  border-radius: 0;

  border: 0;

}


/* Media query for mobile devices */

@media screen and (max-width: 767px) {

  .header-search {

    position: relative;

    right: 2inch; /* Adjust position for mobile */

  }

}

```


In this version:


- I've removed the changes made to the search button's layout and reverted it to its original state.

- Added a media query targeting screen sizes up to 767 pixels (typically used for mobile devices).

- Within the media query, adjusted the position of the `.header-search` container to move it 2 inches to the left for mobile devices, effectively reducing its length. This change is applied only to mobile devices.

  

This way, the search button's position remains unchanged, and the menu bar's length is reduced only for mobile devices. Adjust the screen size in the media query as needed to target the desired range of mobile devices. layout and reverted it to its original state.

- Added a media query targeting screen sizes up to 767 pixels (typically used for mobile devices).

- Within the media query, adjusted the position of the `.header-search` container to move it 2 inches to the left for mobile devices, effectively reducing its length. This change is applied only to mobile devices.

  

This way, the search button's position remains unchanged, and the menu bar's length is reduced only for mobile devices. Adjust the screen size in the media query as needed to target the desired range of mobile devices.