You are here

expand_on_hover.css in Better Search Block 7

Same filename and directory in other branches
  1. 8 css/expand_on_hover.css
i.better_search {
  background: url("images/search-icon.svg") center center no-repeat;
  height: 1em;
  width: 1em;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  display:inline-block;
}

#search-block-form {
  width: 300px;
  vertical-align: middle;
  white-space: nowrap;
  position: relative;
}

.form-item-search-block-form input.form-text {
  width: 50px;
  height: 50px;
  background: #2b303b;
  border: none;
  font-size: 10pt;
  float: left;
  color: #262626;
  padding-left: 50px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  color: #fff;
  -webkit-transition: width .55s ease;
  -moz-transition: width .55s ease;
  -ms-transition: width .55s ease;
  -o-transition: width .55s ease;
  transition: width .55s ease;
}

#search-block-form .icon {
  position: absolute;
  top: 50%;
  margin-left: 17px;
  margin-top: 17px;
  z-index: 1;
  color: #4f5b66;
  left: 0;
}

.form-item-search-block-form input:-webkit-input-placeholder {
  color: #65737e;
}

.form-item-search-block-form input:-moz-placeholder {
  color: #65737e;
}

.form-item-search-block-form input:-ms-input-placeholder {
  color: #65737e;
}

.form-item-search-block-form input.form-text:focus,
.form-item-search-block-form input.form-text:active {
  outline: none;
  width: 300px;
}

.form-item-search-block-form:hover input.form-text {
  width: 300px;
  cursor: pointer;
  cursor: hand;
}

#search-block-form:hover .icon {
  color: #93a2ad;
}

File

css/expand_on_hover.css
View source
  1. i.better_search {
  2. background: url("images/search-icon.svg") center center no-repeat;
  3. height: 1em;
  4. width: 1em;
  5. font-style: normal;
  6. font-weight: normal;
  7. line-height: 1;
  8. -webkit-font-smoothing: antialiased;
  9. display:inline-block;
  10. }
  11. #search-block-form {
  12. width: 300px;
  13. vertical-align: middle;
  14. white-space: nowrap;
  15. position: relative;
  16. }
  17. .form-item-search-block-form input.form-text {
  18. width: 50px;
  19. height: 50px;
  20. background: #2b303b;
  21. border: none;
  22. font-size: 10pt;
  23. float: left;
  24. color: #262626;
  25. padding-left: 50px;
  26. -webkit-border-radius: 5px;
  27. -moz-border-radius: 5px;
  28. border-radius: 5px;
  29. color: #fff;
  30. -webkit-transition: width .55s ease;
  31. -moz-transition: width .55s ease;
  32. -ms-transition: width .55s ease;
  33. -o-transition: width .55s ease;
  34. transition: width .55s ease;
  35. }
  36. #search-block-form .icon {
  37. position: absolute;
  38. top: 50%;
  39. margin-left: 17px;
  40. margin-top: 17px;
  41. z-index: 1;
  42. color: #4f5b66;
  43. left: 0;
  44. }
  45. .form-item-search-block-form input:-webkit-input-placeholder {
  46. color: #65737e;
  47. }
  48. .form-item-search-block-form input:-moz-placeholder {
  49. color: #65737e;
  50. }
  51. .form-item-search-block-form input:-ms-input-placeholder {
  52. color: #65737e;
  53. }
  54. .form-item-search-block-form input.form-text:focus,
  55. .form-item-search-block-form input.form-text:active {
  56. outline: none;
  57. width: 300px;
  58. }
  59. .form-item-search-block-form:hover input.form-text {
  60. width: 300px;
  61. cursor: pointer;
  62. cursor: hand;
  63. }
  64. #search-block-form:hover .icon {
  65. color: #93a2ad;
  66. }