You are here

increase_icon_size.css in Better Search Block 7

Same filename and directory in other branches
  1. 8 css/increase_icon_size.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 {
  vertical-align: middle;
  white-space: nowrap;
  position: relative;
}

.form-item-search-block-form input.form-text {
  height: 3em;
  background: #666;
  border: none;
  font-size: .8em;
  float: left;
  color: #262626;
  padding-left: 45px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  color: #fff;
}

#search-block-form .icon {
  position: absolute;
  top: 50%;
  margin-left: 1em;
  margin-top: .75em;
  z-index: 1;
  color: #4f5b66;
  left: 0;
  -webkit-transition: all .55s ease;
  -moz-transition: all .55s ease;
  -ms-transition: all .55s ease;
  -o-transition: all .55s ease;
  transition: all .55s ease;
}

.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;
}

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

#search-block-form:hover .icon {
  margin-top: .75em;
  color: #93a2ad;
  -webkit-transform:scale(1.25); /* Safari and Chrome */
  -moz-transform:scale(1.25); /* Firefox */
  -ms-transform:scale(1.25); /* IE 9 */
  -o-transform:scale(1.25); /* Opera */
   transform:scale(1.25);
}

File

css/increase_icon_size.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. vertical-align: middle;
  13. white-space: nowrap;
  14. position: relative;
  15. }
  16. .form-item-search-block-form input.form-text {
  17. height: 3em;
  18. background: #666;
  19. border: none;
  20. font-size: .8em;
  21. float: left;
  22. color: #262626;
  23. padding-left: 45px;
  24. -webkit-border-radius: 5px;
  25. -moz-border-radius: 5px;
  26. border-radius: 5px;
  27. color: #fff;
  28. }
  29. #search-block-form .icon {
  30. position: absolute;
  31. top: 50%;
  32. margin-left: 1em;
  33. margin-top: .75em;
  34. z-index: 1;
  35. color: #4f5b66;
  36. left: 0;
  37. -webkit-transition: all .55s ease;
  38. -moz-transition: all .55s ease;
  39. -ms-transition: all .55s ease;
  40. -o-transition: all .55s ease;
  41. transition: all .55s ease;
  42. }
  43. .form-item-search-block-form input:-webkit-input-placeholder {
  44. color: #65737e;
  45. }
  46. .form-item-search-block-form input:-moz-placeholder {
  47. color: #65737e;
  48. }
  49. .form-item-search-block-form input:-ms-input-placeholder {
  50. color: #65737e;
  51. }
  52. .form-item-search-block-form input.form-text:focus,
  53. .form-item-search-block-form input.form-text:active {
  54. outline: none;
  55. }
  56. .form-item-search-block-form:hover input.form-text {
  57. cursor: pointer;
  58. cursor: hand;
  59. }
  60. #search-block-form:hover .icon {
  61. margin-top: .75em;
  62. color: #93a2ad;
  63. -webkit-transform:scale(1.25); /* Safari and Chrome */
  64. -moz-transform:scale(1.25); /* Firefox */
  65. -ms-transform:scale(1.25); /* IE 9 */
  66. -o-transform:scale(1.25); /* Opera */
  67. transform:scale(1.25);
  68. }