search.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. .search {
  2. &--static {
  3. height: 45px;
  4. background: #ebebeb;
  5. border-radius: 25px 0 0 25px;
  6. padding-left: 50px;
  7. padding-right: 0;
  8. display: -webkit-flex;
  9. display: -ms-flex;
  10. display: flex;
  11. flex-direction: row;
  12. justify-content: center;
  13. align-content: center;
  14. align-items: center;
  15. margin-bottom: 40px;
  16. position: relative;
  17. }
  18. &--filter {
  19. padding: 0 5px;
  20. width: 180px;
  21. }
  22. &--float {
  23. display: -webkit-flex;
  24. display: -ms-flex;
  25. display: flex;
  26. flex-direction: row;
  27. justify-content: center;
  28. align-content: center;
  29. align-items: center;
  30. height: 30px;
  31. padding: 0 10px;
  32. }
  33. &__inputcase {
  34. position: relative;
  35. &--float {
  36. display: -webkit-flex;
  37. display: -ms-flex;
  38. display: flex;
  39. flex-direction: row;
  40. justify-content: center;
  41. align-content: center;
  42. align-items: center;
  43. form {
  44. height: auto;;
  45. }
  46. }
  47. }
  48. &--static &__iconzoom {
  49. position: absolute;
  50. right: 0;
  51. top: 0;
  52. width: 30px;
  53. height: 30px;
  54. background: url('../img/icon_zoom_search@2x.png') 0 0 / cover no-repeat;
  55. border-radius: 0 25px 25px 0 / 0 25px 25px 0;
  56. cursor: pointer;
  57. overflow: hidden;
  58. display: none;
  59. }
  60. &--filter &__iconzoom {
  61. position: absolute;
  62. right: 0;
  63. top: 0;
  64. width: 30px;
  65. height: 30px;
  66. background: url('../img/icon_news_titl@2x.png') 0 -60px / 30px 90px no-repeat #e65e26;
  67. border-radius: 15px;
  68. cursor: pointer;
  69. overflow: hidden;
  70. &:hover {
  71. background-color: #eb914e;
  72. }
  73. }
  74. &--float &__iconzoom {
  75. position: absolute;
  76. right: 0;
  77. top: 0;
  78. width: 30px;
  79. height: 30px;
  80. background: url('../img/icon_news_titl@2x.png') 0 -60px / 30px 90px no-repeat #e65e26;
  81. border-radius: 15px;
  82. cursor: pointer;
  83. overflow: hidden;
  84. &:hover {
  85. background-color: #eb914e;
  86. }
  87. }
  88. input,
  89. &__input {
  90. background: #ffffff;
  91. height: 30px;
  92. line-height: 25px;
  93. border-radius: 15px;
  94. padding: 0 12px;
  95. width: calc(100% - 24px);
  96. color: #929292;
  97. opacity: 1;
  98. font-size: 11px;
  99. &::-webkit-input-placeholder {
  100. color: #929292;
  101. opacity: 1;
  102. }
  103. &::-moz-placeholder {
  104. color: #929292;
  105. opacity: 1;
  106. }
  107. &:-moz-placeholder {
  108. color: #929292;
  109. opacity: 1;
  110. }
  111. &:-ms-input-placeholder {
  112. color: #929292;
  113. opacity: 1;
  114. }
  115. &:focus::-webkit-input-placeholder {
  116. color: transparent;
  117. opacity: 1;
  118. }
  119. &:focus::-moz-placeholder {
  120. color: transparent;
  121. opacity: 1;
  122. }
  123. &:focus:-moz-placeholder {
  124. color: transparent;
  125. opacity: 1;
  126. }
  127. &:focus:-ms-input-placeholder {
  128. color: transparent;
  129. opacity: 1;
  130. }
  131. }
  132. &--static input:focus + &__iconzoom,
  133. &--static &__input:focus + &__iconzoom {
  134. display: block;
  135. }
  136. }