search-bar.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .searchbar {
  2. height: 50px;
  3. box-sizing: border-box;
  4. padding: 0 8px;
  5. overflow: hidden;
  6. position: relative;
  7. display: -webkit-box;
  8. display: -ms-flexbox;
  9. display: -webkit-flex;
  10. display: flex;
  11. -webkit-box-align: center;
  12. -ms-flex-align: center;
  13. -webkit-align-items: center;
  14. align-items: center;
  15. background-color: #FFF;
  16. }
  17. html.pixel-ratio-2 .searchbar:after {
  18. -webkit-transform: scaleY(.5);
  19. transform: scaleY(.5)
  20. }
  21. html.pixel-ratio-3 .searchbar:after {
  22. -webkit-transform: scaleY(.33);
  23. transform: scaleY(.33)
  24. }
  25. .searchbar .searchbar-input {
  26. width: 100%;
  27. height: 28px;
  28. position: relative;
  29. -webkit-flex-shrink: 1;
  30. -ms-flex: 0 1 auto;
  31. flex-shrink: 1;
  32. }
  33. .searchbar input[type=search],
  34. .searchbar input[type=text]
  35. {
  36. box-sizing: border-box;
  37. width: 100%;
  38. height: 100%;
  39. display: block;
  40. border: none;
  41. text-align: left;
  42. -webkit-appearance: none;
  43. -moz-appearance: none;
  44. -ms-appearance: none;
  45. appearance: none;
  46. border-radius: 5px;
  47. font-family: inherit;
  48. color: #000;
  49. font-size: 14px;
  50. font-weight: 400;
  51. padding: 0 28px;
  52. background-color: #fff;
  53. background-repeat: no-repeat;
  54. background-position: 8px center;
  55. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD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AElFTkSuQmCC");
  56. -webkit-background-size: 13px 13px;
  57. background-size: 13px 13px;
  58. background-color: #F2F3F5;
  59. }
  60. .searchbar input[type=search]::-webkit-input-placeholder {
  61. color: #939398;
  62. opacity: 1
  63. }
  64. .searchbar input[type=search]::-webkit-search-cancel-button {
  65. /*-webkit-appearance: none*/
  66. }
  67. .searchbar .searchbar-clear {
  68. position: absolute;
  69. width: 28px;
  70. height: 28px;
  71. right: 0;
  72. top: 0;
  73. opacity: 0;
  74. pointer-events: none;
  75. background-position: center;
  76. background-repeat: no-repeat;
  77. /*background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%238e8e93'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E");*/
  78. background-image: url(../../../images/delete01_pre.png);
  79. -webkit-background-size: 16px 16px;
  80. background-size: 16px 16px;
  81. -webkit-transition-duration: .3s;
  82. transition-duration: .3s;
  83. cursor: pointer
  84. }
  85. .searchbar .searchbar-cancel {
  86. -webkit-transition-duration: .3s;
  87. transition-duration: .3s;
  88. -webkit-transform: translate3d(0,0,0);
  89. transform: translate3d(0,0,0);
  90. font-size: 17px;
  91. cursor: pointer;
  92. opacity: 0;
  93. -webkit-flex-shrink: 0;
  94. -ms-flex: 0 0 auto;
  95. flex-shrink: 0;
  96. margin-left: 0;
  97. pointer-events: none;
  98. display: none;
  99. color: #75BF00;
  100. padding-left: 10px;
  101. }
  102. .searchbar.searchbar-active .searchbar-cancel {
  103. margin-left: 8px;
  104. opacity: 1;
  105. pointer-events: auto
  106. }
  107. .searchbar.searchbar-active .searchbar-cancel.active-state,html:not(.watch-active-state) .searchbar.searchbar-active .searchbar-cancel:active {
  108. opacity: .3;
  109. -webkit-transition-duration: 0s;
  110. transition-duration: 0s
  111. }