searchbar.scss 711B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @import "../../themes/ionic.globals";
  2. // Search Bar
  3. // --------------------------------------------------
  4. ion-searchbar {
  5. position: relative;
  6. display: flex;
  7. align-items: center;
  8. width: 100%;
  9. }
  10. .searchbar-icon {
  11. // Don't let them tap on the icon
  12. pointer-events: none;
  13. }
  14. .searchbar-input-container {
  15. position: relative;
  16. display: block;
  17. flex-shrink: 1;
  18. width: 100%;
  19. }
  20. .searchbar-input {
  21. @include appearance(none);
  22. display: block;
  23. width: 100%;
  24. border: 0;
  25. font-family: inherit;
  26. }
  27. .searchbar-clear-icon {
  28. @include margin(0);
  29. @include padding(0);
  30. display: none;
  31. min-height: 0;
  32. }
  33. .searchbar-has-value.searchbar-has-focus .searchbar-clear-icon {
  34. display: block;
  35. }